Assigning An Ip Address And Encapsulation Type To An Ethernet Interface; Setting The Port Speed And Port Name On An Ethernet Interface - Cisco RJ-45-to-AUX Brochure

Cisco switch brochure
Table of Contents

Advertisement

Router>
3.
Enter Global Configuration mode with the following commands:
Router> enable
Router# configure terminal
Warning When you make changes in this mode, they must be saved to NVRAM. Otherwise, the next
time you recycle the switch, the changes will be lost. The command to save changes is copy
running−config startup−config.
4.
Assign the RSM a unique hostname with the following command. Call it RSM1:
Router>(config)# hostname RSM1
RSM1>(config)#
Tip
The hostname can be up to 255 characters, using alphanumeric characters only. Although in this
example we use uppercase to identify the hostname, in some instances when you connect to the
switch with different software, the hostname may appear in lowercase.
Assigning an IP Address and Encapsulation Type to an Ethernet
Interface
To assign an IP address and a trunking encapsulation type to an Ethernet interface so interVLAN routing can
take place, follow these steps:
1.
To enter Interface Configuration mode for Ethernet on the subinterface that needs to be configured,
enter the following command in Global Configuration mode:
Catalyst5000(config)#interface ethernet 3/1.2
In this example, 3 indicates the module number/slot number, 1 indicates the port number, and 2
indicates the number of the subinterface to be configured.
Note No changes take effect until the no shutdown command is issued.
2.
Once in Interface Configuration mode, you can configure the port for the encapsulation type and
identify the VLAN number that will be carried by the port. The most common encapsulation type is
ISL; this will be the encapsulation type configured in our example. Configure the interface for VLAN
2. Each VLAN packet destined for a non−local network is tagged with a VLAN ID within the packet
header, to help identify the VLAN to the subinterface:
Coriolis5000(config−if)#encapsulation isl 2
3.
Assign the subinterface its own unique IP address and subnet mask. To do this, use the following
commands followed by a no shutdown command to apply the changes and exit:
Coriolis5000(config−if)#ip address 130.77.20.18 255.255.254.0
Coriolis5000(config−if)#no shutdown
Coriolis5000(config−if)#exit

Setting the Port Speed and Port Name on an Ethernet Interface

Here is an example of setting the port speed and port name:
Coriolis5000> (enable) set port speed 2/3 auto
Port 2/3 speed set to auto detect.
Coriolis5000> (enable) set port name 2/3 VLAN 1 FileServer1
Port 2/3 name set.
Coriolis5000> (enable) show port 2/3
Port Name
Status
Vlan Level
Duplex Speed Type
125

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents