Basic Switch Configuration Nasir Majeed Assistant Professor PTCL Academy Islamabad 1 2 Switches Accessing The Switch CLI Modes Command History Buffer Auto-MDIX Basic Switch Configuration Switches are dedicated, specialized computers; with 3 Central Processing Unit (CPU) Random Access Memory (RAM) Non-Volatile Random Access Memory (NVRAM) Flash Read Only Memory (ROM) Operating System (IOS) Step 1. Before starting the switch, verify: ◦All network cable connections are secure. ◦Your PC is connected to the console port. ◦Your terminal emulator application, such as HyperTerminal, is running and configured correctly. 4 Step 2. Attach the power cable plug to the switch power supply socket. ◦Some Catalyst switches, including the Cisco Catalyst 2960 series, do not have power buttons. Step 3. Observe the boot sequence: ◦When the switch is on, the POST begins. ◦During POST, the LEDs blink while a series of tests determine that the switch is functioning properly. ◦If the switch fails POST, the SYST LED turns amber. 5 6 7 8 9 10 11 12 13 The auto-MDIX feature is enabled by default on switches running Cisco IOS Release 12.2(18)SE or later. For releases between Cisco IOS Release 12.1(14)EA1 and 12.2(18)SE, the auto-MDIX feature is disabled by default. Table Link Conditions and Auto-MDIX Settings Local Side Auto-MDIX On Remote Side AutoMDIX On With Correct Cabling Link up With Incorrect Cabling Link up On Off Link up Link up Off On Link up Link up Off Off Link up Link down “correct cabling” means a cross-over cable and “incorrect cabling” means a straight-through cable Switch# configure terminal Switch(config)# interface gigabitethernet0/1 Switch(config-if)# mdix auto Switch(config-if)# end 14 Switch#show mac address-table The maximum size of the MAC address table varies with different switches. –For example, the Catalyst 2960 series switch can store up to 8,192 MAC addresses. 15 16 Switch#configure terminal Switch(config)#hostname ALSwitch ALSwitch(config)#exit ALSwitch(config)#line console 0 ALSwitch(config-line)#password cisco ALSwitch(config-line)#login ALSwitch(config-line)#exit ALSwitch(config)#line vty 0 15 ALSwitch(config-line)#password cisco ALSwitch(config-line)#login ALSwitch(config-line)#exit ALSwitch(config)#enable secret class ALSwitch(config)#interface VLAN 1 ALSwitch(config-if)#ip address 192.168.1.2 255.255.255.0 ALSwitch(config-if)# no shutdown ALSwitch(config-if)#exit ALSwitch(config)#ip default-gateway 192.168.1.1 ALSwitch(config)#exit 17 ALSwitch#copy running-config startup-config ALSwitch#show interface VLAN 1 ALSwitch#show running-config ALSwitch#show startup-config 18