12
CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT

CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT

Embed Size (px)

Citation preview

Page 1: CSE 304 COMPUTER NETWORK LAB LECTURE 02 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT

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

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

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

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

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

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

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

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

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

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

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

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#