CSE 304 Computer network lab lecture 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT
Lab Requirements Setting IP address and Default Gateway of a switch Console, Auxiliary, VTY line password Configuration backup Configuration restore Using CISCO file system Configure Telnet remote access
1. Setting IP address of a switch IP address of a switch is used to telnet a switch from remote device. SW1>enable SW1#configure terminal SW1(config)#interface vlan1 SW1(config-if)#ip address 192.168.72.11 255.255.255.0 SW1(config-if)#no shutdown SW1(config-if)#exit SW1(config)#ip default-gateway 192.168.72.1 SW1(config)#exit SW1#disable
2. Console, Auxiliary, VTY line password Console password: SW1>enable SW1#configure terminal SW1(config)#line console 0 SW1(config-line)#login SW1(config-line)#password cisco SW1(config-line)#exit SW1(config)#exit
2. Console, Auxiliary, VTY line password (continued) VTY(Virtual Type Terminal) line password: SW1>enable SW1#configure terminal SW1(config)#line vty 0 ? <0-15>last line number SW1(config)#line vty 0 15 SW1(config-line)#login SW1(config-line)#password cisco SW1(config-line)#exit
2. Console, Auxiliary, VTY line password (continued) Auxiliary password: SW1>enable SW1#configure terminal SW1(config)#line auxiliary 0 SW1(config-line)#login SW1(config-line)#password cisco SW1(config-line)#exit SW1(config)#exit *line auxiliary command is not supported by packet tracer.
3. Configuration backup SW1>enable SW1#copy running-config tftp Address or name of remote host []? 192.168.75.5 Destination filename [SW1-config]?<press Enter> Writing… SW1#
4. Configuration restore SW1>enable SW1#copy tftp running-config Address or name of remote host []? 192.168.75.5 Source filename []?SW1-config Destination filename [running-config]?<press Enter> Accessing tftp://192.168.75.5/SW1-config… SW1#
5. CISCO file system SW1#dir Directory of flash:/ 1 –rw- ………. SW1#dir nvram Directory of nvram:/
6. Configure Telnet remote access Configuration of router R1: Router>enable Router#config terminal Router(config)#hostname R1 R1(config)#enable secret cisco R1(config)#line vty 0 4 R1(config-line)#login R1(config-line)#password cisco R1(config-line)#exit R1(config)#interface serial 2/0 R1(config-if)#ip address 192.168.12.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#no shutdown
6. Configure Telnet remote access (continued) Configuration of router R2: Router>enable Router#config terminal Router(config)#hostname R2 R2(config)#interface serial 2/0 R2(config-if)#ip address 192.168.12.2 255.255.255.0 R2(config-if)#no shutdown
6. Configure Telnet remote access (continued) Commands for telneting from R2 to R1: R2#telnet 192.168.12.1 Trying 192.168.12.1 … open User access verification Password:cisco R1>enable R1#