cse 304 computer network lab lecture 02 md. mamunur rashid akand lecturer, department of cse, bubt
TRANSCRIPT
![Page 1: CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT](https://reader036.vdocuments.net/reader036/viewer/2022083007/56649e725503460f94b71acd/html5/thumbnails/1.jpg)
CSE 304COMPUTER NETWORK LABLECTURE 02Md. Mamunur Rashid Akand
Lecturer, Department of CSE, BUBT
![Page 2: CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT](https://reader036.vdocuments.net/reader036/viewer/2022083007/56649e725503460f94b71acd/html5/thumbnails/2.jpg)
Lab Requirements
1. Setting IP address and Default Gateway of a switch
2. Console, Auxiliary, VTY line password
3. Configuration backup4. Configuration restore5. Using CISCO file system6. Configure Telnet remote access
![Page 3: CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT](https://reader036.vdocuments.net/reader036/viewer/2022083007/56649e725503460f94b71acd/html5/thumbnails/3.jpg)
1. Setting IP address of a switch
IP address of a switch is used to telnet a switch from remote device.
SW1>enableSW1#configure terminalSW1(config)#interface vlan1SW1(config-if)#ip address 192.168.72.11 255.255.255.0SW1(config-if)#no shutdownSW1(config-if)#exitSW1(config)#ip default-gateway 192.168.72.1SW1(config)#exitSW1#disable
![Page 4: CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT](https://reader036.vdocuments.net/reader036/viewer/2022083007/56649e725503460f94b71acd/html5/thumbnails/4.jpg)
2. Console, Auxiliary, VTY line password
Console password:SW1>enableSW1#configure terminalSW1(config)#line console 0SW1(config-line)#loginSW1(config-line)#password ciscoSW1(config-line)#exitSW1(config)#exit
![Page 5: CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT](https://reader036.vdocuments.net/reader036/viewer/2022083007/56649e725503460f94b71acd/html5/thumbnails/5.jpg)
2. Console, Auxiliary, VTY line password (continued)
VTY(Virtual Type Terminal) line password:SW1>enableSW1#configure terminalSW1(config)#line vty 0 ?
<0-15>last line numberSW1(config)#line vty 0 15SW1(config-line)#loginSW1(config-line)#password ciscoSW1(config-line)#exit
![Page 6: CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT](https://reader036.vdocuments.net/reader036/viewer/2022083007/56649e725503460f94b71acd/html5/thumbnails/6.jpg)
2. Console, Auxiliary, VTY line password (continued)
Auxiliary password:SW1>enableSW1#configure terminalSW1(config)#line auxiliary 0SW1(config-line)#loginSW1(config-line)#password ciscoSW1(config-line)#exitSW1(config)#exit
*line auxiliary command is not supported by packet tracer.
![Page 7: CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT](https://reader036.vdocuments.net/reader036/viewer/2022083007/56649e725503460f94b71acd/html5/thumbnails/7.jpg)
3. Configuration backup
SW1>enableSW1#copy running-config tftpAddress or name of remote host []?
192.168.75.5Destination filename [SW1-config]?<press
Enter>Writing…SW1#
![Page 8: CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT](https://reader036.vdocuments.net/reader036/viewer/2022083007/56649e725503460f94b71acd/html5/thumbnails/8.jpg)
4. Configuration restore
SW1>enableSW1#copy tftp running-configAddress or name of remote host []?
192.168.75.5Source filename []?SW1-configDestination filename [running-config]?
<press Enter>Accessing tftp://192.168.75.5/SW1-
config…SW1#
![Page 9: CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT](https://reader036.vdocuments.net/reader036/viewer/2022083007/56649e725503460f94b71acd/html5/thumbnails/9.jpg)
5. CISCO file system
SW1#dirDirectory of flash:/
1 –rw- ……….SW1#dir nvramDirectory of nvram:/
![Page 10: CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT](https://reader036.vdocuments.net/reader036/viewer/2022083007/56649e725503460f94b71acd/html5/thumbnails/10.jpg)
6. Configure Telnet remote access
Configuration of router R1:Router>enableRouter#config terminalRouter(config)#hostname R1R1(config)#enable secret ciscoR1(config)#line vty 0 4R1(config-line)#loginR1(config-line)#password ciscoR1(config-line)#exitR1(config)#interface serial 2/0R1(config-if)#ip address 192.168.12.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#no shutdown
![Page 11: CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT](https://reader036.vdocuments.net/reader036/viewer/2022083007/56649e725503460f94b71acd/html5/thumbnails/11.jpg)
6. Configure Telnet remote access (continued) Configuration of router R2:Router>enableRouter#config terminalRouter(config)#hostname R2R2(config)#interface serial 2/0R2(config-if)#ip address 192.168.12.2
255.255.255.0R2(config-if)#no shutdown
![Page 12: CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT](https://reader036.vdocuments.net/reader036/viewer/2022083007/56649e725503460f94b71acd/html5/thumbnails/12.jpg)
6. Configure Telnet remote access (continued)
Commands for telneting from R2 to R1:R2#telnet 192.168.12.1Trying 192.168.12.1 … openUser access verificationPassword:ciscoR1>enablePassword:ciscoR1#