RETIRED! Exam
The commands used for configuring the switch ports ip address and to enable the interface
SW1>enable
SW1#configure terminal
SW1(config)#interface fastethernet 0/1
SW1(config-if)#ip address 192.168.100.1 255.255.255.0
SW1(config-if)#no shutdown
Command to configure trunking on the switch
SW1>enable
SW1#configure terminal
SW1(config)#interface fastethernet
0/11 (here 0/11 is the port number)
SW1(config-if)#switchport mode trunk
Use the "show interface trunk" command to determine the trunking status of a link and VLAN status. This command lists port, its mode, encapsulation and whether it is trunking enabled.
The following commands are used for configuring the switch ports.
Set the port speed to 100 mbps, and inter-switch communication to full-duplex on Switch 2950 of ports fa 0/2
2950>enable
2950#configure terminal
2950(config)#interface fastethernet
0/2
2950(config-if)#duplex full
2950(config-if)#speed 100
The MAC address table of a switch would be empty to begin with. However, it builds the MAC table learning from the frames that arrive at its ports by adding the MAC address and the corresponding port that it had arrived to the MAC table.
The syntax for setting port speed on an IOS switch is:speed { 10 | 100 | auto }
For setting the speed to 10mbps on module 1 port 5, the command is : speed 10
Similarly, to set the duplex mode on a switch: duplex { auto | full | half}
For setting the duplex to half, use the command: duplex half
1. Flash memory: IOS files are stored in the Flash memory. When the switch boots, the IOS files are read from the Flash memory.
2. Network servers: External locations can hold IOS image file or configuration files. This is useful for upgrade or backup purpose. You can load files from external file systems such as network servers using TFTP, and FTP.
3. NVRAM: NVRAM contains the switch configuration files. These files are used during boot-up for proper configuration of the switch.
4. RAM: The switch configuration is stored in RAM during run-time. Any configuration commands entered are first reflected in RAM. You need to use save config startup-config running-config to save them to NVRAM.