Sie sind auf Seite 1von 98

HYPERTERMINAL SESSION

STEP 1 : Verify that you have a console cable attached to your Cisco device
console port .The other end of the cable should be attached to your PC
serial communication port with DB-9 Conector.

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

STEP 2 : Open Hyperterminal

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

STEP 3 : In the following window, name your connection int name field and
select the telephone icon.Click OK button.

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

STEP 4 : Select the communication serial port and click OK button.

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

STEP 5 : Select bit per second 9600, databits 8, parity None, stop bits 1 and click
OK button.

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

STEP 6 : The cisco device prompt in the window.

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

HOST NAME CONFIGRATION


Router>enable
Router#configure terminal
Router(config)#hostname Corvit
Corvit(config)#exit
Corvit#
TO SET SYSTEM CLOCK, DATE & TIME ON ROUTER
Corvit>enable
Corvit#clock set 12:45:25 ?
<1-31> Day of the month
MONTH Month of the year
Corvit#clock set 12:45:25 8 Feb ?
<1993-2035> Year
Corvit#clock set 12:45:25 8 Feb 2004
Corvit#show clock
12:46:09.817 UTC Sun Feb 8 2004

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

TO SET BANNER ON ROUTER


Corvit>enable
Corvit#configure terminal
Corvit(config)#banner motd # Welcome To Corvit-Marson #
Corvit#exit
Welcome To Corvit-Marson
Router>enable
DISPLAY RUNNING CONFIGURATION
Corvit#show running-config
Building configuration...
Current configuration:
!
! Last configuration change at 16:29:31 UTC Mon Feb 2 2004
!
version 11.3
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
service udp-small-servers
service tcp-small-servers
!

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

hostname Corvit

LINE CONSOLE PASSWORD


Corvit>enable
Corvit#configure terminal
Corvit(config)#line console 0
Corvit(config-line)#login
Corvit(config-line)#password corvit
Corvit(config-line)#exit
Corvit(config)#exit
Corvit#exit
RESULT
Corvit con0 is now available
Press RETURN to get started.
welcome to Corvit
User Access Verification
Password:

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

PASSWORD FOR PRIVILEGED MODE


Corvit>enable
Corvit#configure terminal
Corvit(config)#enable password corvit
Corvit(config)#exit
Corvit#exit
ENCRYPTED PASSWORD FOR PRIVILEGED MODE
Corvit>enable
Corvit#configure terminal
Corvit(config)#enable secret cisco
Corvit(config)#exit
Corvit#exit
LINE VTY PASSWORD
Corvit#configure terminal
Corvit(config)#line vty 0 4

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

10

Corvit(config-line)#login
Corvit(config-line)#password cisco

Corvit(config-line)#exit
Corvit(config)#exit
Corvit#exit
REMOVE CONSOLE PASSWORD
Corvit>enable
Corvit#configure terminal
Corvit(config)#line console 0
Corvit(config-line)#no login
Corvit(config-line)#no password
Corvit(config-line)#exit
Corvit(config)#exit
Corvit#exit
REMOVE PASSWORD FOR EXECUTIVE MODE
Corvit>enable
Corvit#configure terminal

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

11

Corvit(config)#no enable password


Corvit(config)#exit
Corvit#exit

REMOVE SECRET PASSWORD


Corvit>enable
Corvit#configure terminal
Corvit(config)#no enable secret
Corvit(config)#exit
HOW TO CHECK CONFIGRATION REGISTER VALUE
Corvit#show version
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-IS56I-M), Version 12.0(4)T, RELEASE
SOFTWARE (fc1)
Copyright (c) 1986-1999 by cisco Systems, Inc.
Compiled Wed 28-Apr-99 19:07 by kpma
Image text-base: 0x80008088, data-base: 0x80B24B60
ROM: System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)
Corvit uptime is 2 hours, 39 minutes
System restarted by power-on
System image file is "flash:c2600-is56i-mz.120-4.T.bin"
cisco 2610 (MPC860) processor (revision 0x203) with 26624K/6144K bytes of
memory.
X.25 software, Version 3.0.0.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial(sync/async) network interface(s)

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

12

2 Voice FXO interface(s)


2 Voice FXS interface(s)
32K bytes of non-volatile configuration memory.
8192K bytes of processor board System flash (Read/Write)
Configuration register is 0x2102

HOW TO CHECK FLASH


Corvit#show flash
System flash directory:
File Length Name/status
1 6114816 c2600-is56i-mz.120-4.T.bin
[6114880 bytes used, 2273728 available, 8388608 total]
8192K bytes of processor board System flash (Read/Write)

HOW TO ADMINISTRATIVELY SHUTDOWN ROUTERS INTERFACE


Corvit#configure terminal
Corvit(config)#int s0/0
Corvit(config-if)#shutdown

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

13

HOW TO CHECK ADMINISTRATIVELY SHUTDOWN ROUTERS


INTERFACE
Corvit#show interface s0/0
Serial0/0 is administratively down, line protocol is down
Hardware is PowerQUICC Serial
Internet address is 1.1.1.1/8
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input 00:01:36, output 00:01:31, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 1/1000/64/0 (size/max total/threshold/drops)
Conversations 1/2/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
2099 packets input, 132701 bytes, 0 no buffer
Received 1275 broadcasts, 0 runts, 0 giants, 0 throttles
1 input errors, 0 CRC, 1 frame, 0 overrun, 0 ignored, 0 abort
4662 packets output, 327532 bytes, 0 underruns
0 output errors, 0 collisions, 6 interface resets
0 output buffer failures, 0 output buffers swapped out
4 carrier transitions

DCD=up DSR=up DTR=down RTS=down CTS=up

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

14

TO ENABLE ROUTERS SERIAL INTERFACE


Corvit#configure terminal
Corvit(config)#int s0/0
Corvit(config-if)#no shutdown
TO CHECK SERIAL INTERFACE
Corvit#show interfaces s0/0
Serial0/0 is up, line protocol is up
Hardware is PowerQUICC Serial
Internet address is 1.1.1.1/8
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
Keepalive set (10 sec)
Last input 00:00:05, output 00:00:02, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/2/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

15

2104 packets input, 133491 bytes, 0 no buffer


Received 1280 broadcasts, 0 runts, 0 giants, 0 throttles
1 input errors, 0 CRC, 1 frame, 0 overrun, 0 ignored, 0 abort
4678 packets output, 329768 bytes, 0 underruns
0 output errors, 0 collisions, 7 interface resets
0 output buffer failures, 0 output buffers swapped out
4 carrier transitions

DCD=up DSR=up DTR=up RTS=up CTS=up

TO SET CLOCK RATE ON ROUTERS SERIAL INTERFACE


Corvit#configure terminal
Corvit(config)#interface s0/0
Corvit(config-if)#clock rate 64000
DTE/DCE STATUS
Corvit#sh controllers s0/0
Interface Serial0/0
Hardware is PowerQUICC MPC860

DCE V.35, clock rate 64000


idb at 0x8118E084, driver data structure at 0x811935FC
SCC Registers:
General [GSMR]=0x2:0x00000030, Protocol-specific [PSMR]=0x8
Events [SCCE]=0x0000, Mask [SCCM]=0x001F, Status [SCCS]=0x06
Transmit on Demand [TODR]=0x0, Data Sync [DSR]=0x7E7E
Interrupt Registers:
Config [CICR]=0x00367F80, Pending [CIPR]=0x00000A00
Mask [CIMR]=0x30200440, In-srv [CISR]=0x00000000
Command register [CR]=0x680
Port A [PADIR]=0x4400, [PAPAR]=0xFFFF
[PAODR]=0x0000, [PADAT]=0x99FB
Port B [PBDIR]=0x0630F, [PBPAR]=0x0900E
[PBODR]=0x0000E, [PBDAT]=0x30CCD

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

16

Port C [PCDIR]=0x00C, [PCPAR]=0x000


[PCSO]=0x280, [PCDAT]=0xC30, [PCINT]=0x00F
Receive Ring
rmd(68012330): status 9000 length 18 address 1B252A4
rmd(68012338): status 9000 length 18 address 1B2BAA4
rmd(68012340): status 9000 length 18 address 1B2B424
rmd(68012348): status 9000 length 18 address 1B2ADA4

TO SAVE RUNNING CONFIGURATION


Corvit#copy running-config startup-config
Building configuration...
[OK]
Corvit#
IOS UPLOADING FROM ROUTER TO TFTP SERVER
Corvit#copy flash: tftp
Source filename [no]? c2600-is56i-mz.120-4.T.bin
Address or name of remote host []? 192.168.2.2
Destination filename [c2600-is56i-mz.120-4.T.bin]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

17

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6114816 bytes copied in 87.123 secs (70285 bytes/sec)

BACKUP STARTUP CONFIGURATION TO TFTP


Corvit#copy startup-config tftp
Address or name of remote host []? 192.168.2.2
Destination filename [startup-config]?
!!
1107 bytes copied in 0.56 secs
TO SAVE RUNNING CONFIGURATION
Corvit#write memory
Building configuration...
[OK]
Corvit#
DELETION OF NVRAM CONFIGURATION
Corvit#write erase
[OK]

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

18

TO CHECK NVRAM CONFIGURATION


Corvit#show startup-config
%% Non-volatile configuration memory has not been set up or has bad
checksum
Corvit#

PASSWORD RECOVERY

1) Turn the power switch off and back on to recycle the power.
2) Press the Break key or key sequence to put the router into ROM Monitor mode. The
Break key varies by computer or terminal software. The sequence might be CTRL-D,
CTRL-Break or another combination.
3) At the > prompt, type o to record the current value of the configuration register (usually
0x2102, or 0x102):
>o
Configuration register = 0x2102 at last boot
Bit#
Configuration register option settings:
15
Diagnostic mode disabled
4) Type o/r 0x2142 to tell the router to boot from flash without loading the configuration in
NVRAM at the next reload.
5) Type i to have the router reboot. The router ignores the configuration in NVRAM.
6) The router runs the Setup Dialog. Type no or press Ctrl-C to skip the Initial Setup
Dialog.

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

19

7) Type enable at the Router> prompt to go to privileged exec mode.


8) Copy the startup configuration to the running configuration by using the configure
memory or copy startup-config running-config commands. Do not type configure
terminal. If you use the configure terminal command, you overwrite the configuration
stored in NVRAM.
9) View the configuration by typing write terminal or show running-config. View the
configured line, vty and enable passwords. Any encrypted passwords need to be changed.
10) Enter configuration mode by typing configure terminal. Change the line or enable
passwords as necessary.
11) All interfaces are in a shutdown state. Issue the no shutdown command on every
interface that is to be used.
12) Type config-register 0x2102 to return the router to normal operation at the next reload.
13) Exit configuration mode by pressing Ctrl-z.
14) Save your changes by typing write memory or copy running-config startup-config.
15) Reload the router and verify the passwords.

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

20

EXTENDED PING

RouterA#ping
Protocol [ip]:
Target IP address: 1.1.1.2
Repeat count [5]:
Datagram size [100]:

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

21

Timeout in seconds [2]:


Extended commands [n]: yes
Source address or interface: 3.1.1.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/39/57 ms

RouterA#ping
Protocol [ip]:
Target IP address: 5.1.1.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: yes
Source address or interface: 3.1.1.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/38/56 ms

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

22

CISCO DISCOVERY PROTOCOL (CDP)

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

23

CDP INFORMATION
RouterA#show cdp ?
entry
Information for specific neighbor entry
interface CDP interface status and configuration
neighbors CDP neighbor entries
traffic CDP statistics

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

24

CDP NEIGHBORS
RouterA#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID
RouterC
RouterB

Local Intrfce
Ser 0/0
Ser 0/1

Holdtme
140
153

Capability Platform Port ID


R
2500
Ser 0
R
2610
Ser 0/1

CDP INTERFACE
RouterA#show cdp interface
Ethernet0/0 is up, line protocol is down
Encapsulation ARPA
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Serial0/0 is up, line protocol is up
Encapsulation HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Serial0/1 is up, line protocol is up
Encapsulation HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds

NEIGHBORS DETAIL INFORMATION


RouterA#show cdp neighbors detail
Device ID: RouterC
Entry address(es):

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

25

IP address: 3.1.1.1
Platform: cisco 2500, Capabilities: Router
Interface: Serial0/0, Port ID (outgoing port): Serial0
Holdtime : 151 sec
Version :
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-IS56I-L), Version 11.3(11b)T1, RELEASE
SOFTWARE (
fc2)
TAC Support: http://www.cisco.com/cgi-bin/ibld/view.pl?i=support
Copyright (c) 1986-2001 by cisco Systems, Inc.
Compiled Thu 08-Mar-01 02:58 by cmong
advertisement version: 1
Device ID: RouterB
Entry address(es):
IP address: 1.1.1.2
Platform: cisco 2610, Capabilities: Router
Interface: Serial0/1, Port ID (outgoing port): Serial0/1
Holdtime : 146 sec
Version :
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-IS56I-M), Version 12.0(4)T, RELEASE
SOFTWARE (fc
advertisement version: 2

STATIC ROUTE CONFIGURATION

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

26

L0 192.168.1.0

RouterA
1.1.1.1
S0/1

S0/0
3.1.1.2

S0/1 1.1.1.2

S0 3.1.1.1
S0/0 2.1.1.1

S1 2.1.1.2

RouterB

RouterC

L0 192.168.2.0

L0 192.168.3.0

RouterA#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

27

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP


i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route, o - ODR, P - periodic downloaded static route
T - traffic engineered route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/1
C 3.0.0.0/8 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, Loopback0
NOTE:(Configuring Static Route on RouterA)
RouterA#configure terminal
RouterA(config)#ip route 2.0.0.0 255.0.0.0 1.1.1.2
RouterA(config)#ip route 192.168.2.0 255.255.255.0 1.1.1.2
RouterA(config)#ip route 192.168.3.0 255.255.255.0 3.1.1.1
RouterA(config)#exit
RouterA#
RouterA#show ip route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/1
S 2.0.0.0/8 [1/0] via 1.1.1.2
C 3.0.0.0/8 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, Loopback0
S 192.168.2.0/24 [1/0] via 1.1.1.2
S 192.168.3.0/24 [1/0] via 3.1.1.1

RouterB#show ip route
Gateway of last resort is not set

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

28

C 1.0.0.0/8 is directly connected, Serial0/1


C 2.0.0.0/8 is directly connected, Serial0/0
C 192.168.2.0/24 is directly connected, Loopback0
NOTE:(Configuring Static Route on RouterB)
RouterB#configure terminal
RouterB(config)#ip route 3.0.0.0 255.0.0.0 1.1.1.1
RouterB(config)#ip route 192.168.1.0 255.255.255.0 1.1.1.1
RouterB(config)#ip route 192.168.3.0 255.255.255.0 2.1.1.2
RouterB(config)#exit
RouterB#show ip route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/1
C 2.0.0.0/8 is directly connected, Serial0/0
S 3.0.0.0/8 [1/0] via 1.1.1.1
S 192.168.1.0/24 [1/0] via 1.1.1.1
C 192.168.2.0/24 is directly connected, Loopback0
S 192.168.3.0/24 [1/0] via 2.1.1.2
RouterC#show ip route
Gateway of last resort is not set
C 2.0.0.0/8 is directly connected, Serial1
C 3.0.0.0/8 is directly connected, Serial0
C 192.168.3.0/24 is directly connected, Loopback0

NOTE:(Configuring Static Route on RouterC)

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

29

RouterC#configure terminal
RouterC(config)#ip route 1.0.0.0 255.0.0.0 2.1.1.1
RouterC(config)#ip route 192.168.2.0 255.255.255.0 2.1.1.1
RouterC(config)#ip route 192.168.1.0 255.255.255.0 3.1.1.2
RouterC#show ip route
Gateway of last resort is not set
S 1.0.0.0/8 [1/0] via 2.1.1.1
C 2.0.0.0/8 is directly connected, Serial1
C 3.0.0.0/8 is directly connected, Serial0
S 192.168.1.0/24 [1/0] via 3.1.1.2
S 192.168.2.0/24 [1/0] via 2.1.1.1
C 192.168.3.0/24 is directly connected, Loopback0

RIP CONFIGURATION
.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

30

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

31

RouterA#show ip route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/1
C 3.0.0.0/8 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, Loopback0
NOTE:(Configuring Rip on RouterA)
RouterA#configure terminal
RouterA(config)#router rip
RouterA(config-router)#network 3.0.0.0
RouterA(config-router)#network 1.0.0.0
RouterA(config-router)#network 192.168.1.0
RouterA(config-router)#exit
RouterA(config)#
RouterA#show ip route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/1
R 2.0.0.0/8 [120/1] via 1.1.1.2, Serial0/1
[120/1] via 3.1.1.1, Serial0/0
C 3.0.0.0/8 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, Loopback0
R 192.168.2.0/24 [120/1] via 1.1.1.2, Serial0/1
R 192.168.3.0/24 [120/1] via 3.1.1.1, Serial0/0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

32

RouterA#show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 16 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Redistributing: rip
Default version control: send version 1, receive any version
Routing for Networks:
1.0.0.0
3.0.0.0
192.168.1.0
Routing Information Sources:
Gateway
Distance
Last Update
3.1.1.1
120
00:00:16
1.1.1.2
120
00:00:20
Distance: (default is 120)
RouterB#show ip route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/1
C 2.0.0.0/8 is directly connected, Serial0/0
C 192.168.2.0/24 is directly connected, Loopback0
NOTE:(Configuring Rip on RouterB)
RouterB#configure terminal
RouterA(config)#router rip
RouterB(config-router)#network 1.0.0.0
RouterB(config-router)#network 2.0.0.0
RouterB(config-router)#network 192.168.2.0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

33

RouterB#show ip route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/1
C 2.0.0.0/8 is directly connected, Serial0/0
R 3.0.0.0/8 [120/1] via 1.1.1.1, Serial0/1
[120/1] via 2.1.1.2, Serial0/0
R 192.168.1.0/24 [120/1] via 1.1.1.1, Serial0/1
C 192.168.2.0/24 is directly connected, Loopback0
R 192.168.3.0/24 [120/1] via 2.1.1.2, Serial0/0
RouterC#show ip route
Gateway of last resort is not set
C 2.0.0.0/8 is directly connected, Serial1
C 3.0.0.0/8 is directly connected, Serial0
C 192.168.3.0/24 is directly connected, Loopback0
NOTE:(Configuring RIP on RouterC)
RouterC#configure terminal
RouterA(config)#router rip
RouterC(config-router)#network 2.0.0.0
RouterC(config-router)#network 3.0.0.0
RouterC(config-router)#network 192.168.3.0
RouterC(config-router)#exit

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

34

RouterC#show ip route
Gateway of last resort is not set
R 1.0.0.0/8 [120/1] via 2.1.1.1, 00:00:23, Serial1
[120/1] via 3.1.1.2, 00:00:14, Serial0
C 2.0.0.0/8 is directly connected, Serial1
C 3.0.0.0/8 is directly connected, Serial0
R 192.168.1.0/24 [120/1] via 3.1.1.2, 00:00:14, Serial0
R 192.168.2.0/24 [120/1] via 2.1.1.1, 00:00:23, Serial1
C 192.168.3.0/24 is directly connected, Loopback0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

35

IGRP CONFIGURATION

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

36

RouterA#show ip route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/1
C 3.0.0.0/8 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, Loopback0
NOTE:(Configuring igrp on RouterA)
RouterA#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
RouterA(config)#router igrp 10
RouterA(config-router)#network 1.0.0.0
RouterA(config-router)#network 3.0.0.0
RouterA(config-router)#network 192.168.1.0
RouterA#show ip route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/1
I 2.0.0.0/8 [100/10476] via 1.1.1.2, Serial0/1
[100/10476] via 3.1.1.1, Serial0/0
C 3.0.0.0/8 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, Loopback0
I 192.168.2.0/24 [100/8976] via 1.1.1.2, Serial0/1
I 192.168.3.0/24 [100/8976] via 3.1.1.1, Serial0/0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

37

RouterA#show ip protocols
Routing Protocol is "igrp 10"
Sending updates every 90 seconds, next due in 50 seconds
Invalid after 270 seconds, hold down 280, flushed after 630
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
IGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
IGRP maximum hopcount 100
IGRP maximum metric variance 1
Redistributing: igrp 10
Routing for Networks:
1.0.0.0
3.0.0.0
192.168.1.0
Routing Information Sources:
Gateway
Distance
Last Update
3.1.1.1
100
00:01:15
1.1.1.2
100
00:00:42
Distance: (default is 100)
RouterB#show ip route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/1
C 2.0.0.0/8 is directly connected, Serial0/0
C 192.168.2.0/24 is directly connected, Loopback0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

38

NOTE:(Configuring igrp on RouterB)


RouterB#configure terminal
RouterB(config)#router igrp 10
RouterB(config-router)#network 1.0.0.0
RouterB(config-router)#network 2.0.0.0
RouterB(config-router)#network 192.168.2.0
RouterB#show ip route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/1
C 2.0.0.0/8 is directly connected, Serial0/0
I 3.0.0.0/8 [100/10476] via 1.1.1.1, Serial0/1
[100/10476] via 2.1.1.2, Serial0/0
I 192.168.1.0/24 [100/8976] via 1.1.1.1, Serial0/1
C 192.168.2.0/24 is directly connected, Loopback0
I 192.168.3.0/24 [100/8976] via 2.1.1.2, Serial0/0
RouterC#show ip route
Gateway of last resort is not set
C 2.0.0.0/8 is directly connected, Serial1
C 3.0.0.0/8 is directly connected, Serial0
C 192.168.3.0/24 is directly connected, Loopback0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

39

NOTE:(Configuring igrp on RouterC)


RouterC#configure terminal
RouterC(config)#router igrp 10
RouterC(config-router)#network 2.0.0.0
RouterC(config-router)#network 3.0.0.0
RouterC(config-router)#network 192.168.3.0
RouterC#show ip route
Gateway of last resort is not set
I

1.0.0.0/8 [100/10476] via 2.1.1.1, 00:00:03, Serial1


[100/10476] via 3.1.1.2, 00:00:03, Serial0
C 2.0.0.0/8 is directly connected, Serial1
C 3.0.0.0/8 is directly connected, Serial0
I 192.168.1.0/24 [100/8976] via 3.1.1.2, 00:00:03, Serial0
I 192.168.2.0/24 [100/8976] via 2.1.1.1, 00:00:03, Serial1
C 192.168.3.0/24 is directly connected, Loopback0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

40

EIGRP CONFIGURATION

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

41

RouterA#show ip route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/1
C 3.0.0.0/8 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, Loopback0
NOTE:(Configuring Eigrp on RouterA)
RouterA#configure terminal
RouterA(config)#router eigrp 100
RouterA(config-router)#network 1.0.0.0
RouterA(config-router)#network 3.0.0.0
RouterA(config-router)#network 192.168.1.0
RouterA#show ip route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/1
D 2.0.0.0/8 [90/2681856] via 1.1.1.2, Serial0/1
[90/2681856] via 3.1.1.1, Serial0/0
C 3.0.0.0/8 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, Loopback0
D 192.168.2.0/24 [90/2297856] via 1.1.1.2, Serial0/1
D 192.168.3.0/24 [90/2297856] via 3.1.1.1, Serial0/0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

42

RouterA#show ip protocols
Routing Protocol is "eigrp 100"
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
EIGRP maximum hopcount 100
EIGRP maximum metric variance 1
Redistributing: eigrp 100
Automatic network summarization is in effect
Automatic address summarization:
1.0.0.0/8 for Serial0/0, Loopback0
3.0.0.0/8 for Serial0/1, Loopback0
192.168.1.0/24 for Serial0/0, Serial0/1
Routing for Networks:
1.0.0.0
3.0.0.0
192.168.1.0
Routing Information Sources:
Gateway
Distance
Last Update
3.1.1.1
90
00:03:04
1.1.1.2
90
00:03:04
Distance: internal 90 external 170
RouterB#show ip route
Gateway of last resort is not set

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

43

C 1.0.0.0/8 is directly connected, Serial0/1


C 2.0.0.0/8 is directly connected, Serial0/0
C 192.168.2.0/24 is directly connected, Loopback0

NOTE:(Configuring Eigrp on RouterB)


RouterB#configure terminal
RouterB(config)#router eigrp 100
RouterB(config-router)#network 2.0.0.0
RouterB(config-router)#network 1.0.0.0
RouterB(config-router)#network 192.168.2.0
RouterB(config-router)#exit
RouterB(config)#
RouterB#show ip route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Serial0/1
C 2.0.0.0/8 is directly connected, Serial0/0
D 3.0.0.0/8 [90/2681856] via 1.1.1.1, Serial0/1
[90/2681856] via 2.1.1.2, Serial0/0
D 192.168.1.0/24 [90/2297856] via 1.1.1.1, Serial0/1
C 192.168.2.0/24 is directly connected, Loopback0
D 192.168.3.0/24 [90/2297856] via 2.1.1.2, Serial0/0
RouterC#show ip route
Gateway of last resort is not set
C 2.0.0.0/8 is directly connected, Serial1

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

44

C 3.0.0.0/8 is directly connected, Serial0


C 192.168.3.0/24 is directly connected, Loopback0

NOTE:(Configuring Eigrp on RouterC)


RouterC#configure terminal
RouterC(config)#router eigrp 100
RouterC(config-router)#network 2.0.0.0
RouterC(config-router)#network 3.0.0.0
RouterC(config-router)#network 192.168.3.0
RouterC#show ip route
Gateway of last resort is not set
D 1.0.0.0/8 [90/2681856] via 3.1.1.2, 00:00:16, Serial0
[90/2681856] via 2.1.1.1, 00:00:16, Serial1
C 2.0.0.0/8 is directly connected, Serial1
C 3.0.0.0/8 is directly connected, Serial0
D 192.168.1.0/24 [90/2297856] via 3.1.1.2, 00:00:16, Serial0
D 192.168.2.0/24 [90/2297856] via 2.1.1.1, 00:00:16, Serial1
C 192.168.3.0/24 is directly connected, Loopback0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

45

OSPF SINGLE AREA CONFIGURATION

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

46

RouterA#configure terminal
RouterA(config)#router ospf 10
RouterA(config-router)#network 1.0.0.0 0.255.255.255 area 0
RouterA(config-router)#network 3.0.0.0 0.255.255.255 area 0
RouterA(config-router)#network 192.168.1.0 0.0.0.255 area 0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

47

RouterA#show ip protocols
Routing Protocol is "ospf 10"
Sending updates every 0 seconds
Invalid after 0 seconds, hold down 0, flushed after 0
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Redistributing: ospf 10
Routing for Networks:
1.0.0.0
3.0.0.0
192.168.1.0
Routing Information Sources:
Gateway
Distance
Last Update
192.168.3.1
110
00:00:50
192.168.2.1
110
00:00:50
Distance: (default is 110)

RouterA#show ip ospf interface


Serial0/0 is up, line protocol is up
Internet Address 3.1.1.2/8, Area 0
Process ID 10, Router ID 192.168.1.1, Network Type POINT_TO_POINT, Cost:
64
Transmit Delay is 1 sec, State POINT_TO_POINT,

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

48

Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:09
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 192.168.3.1
Suppress hello for 0 neighbor(s)
RouterA#show ip ospf neighbor
Neighbor ID
192.168.3.1
192.168.2.1

Pri State
1 FULL/ 1 FULL/ -

Dead Time Address


00:00:34
3.1.1.1
00:00:35
1.1.1.2

Interface
Serial0/0
Serial0/1

RouterA#show ip route ospf


O 2.0.0.0/8 [110/128] via 1.1.1.2, Serial0/1
[110/128] via 3.1.1.1, Serial0/0
192.168.2.0/32 is subnetted, 1 subnets
O
192.168.2.1 [110/65] via 1.1.1.2, Serial0/1
192.168.3.0/32 is subnetted, 1 subnets
O
192.168.3.1 [110/65] via 3.1.1.1, Serial0/0

RouterB#configure terminal
RouterB(config)#router ospf 20
RouterB(config-router)#network 1.0.0.0 0.255.255.255 area 0
RouterB(config-router)#network 2.0.0.0 0.255.255.255 area 0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

49

RouterB(config-router)#network 192.168.2.0 0.0.0.255 area 0


RouterB# show ip ospf neighbor
Neighbor ID
192.168.3.1
192.168.1.1

Pri State
1 FULL/ 1 FULL/ -

Dead Time Address


00:00:39 2.1.1.2
00:00:36 1.1.1.1

Interface
Serial0/0
Serial0/1

RouterB#show ip route ospf


O 3.0.0.0/8 [110/128] via 2.1.1.2, Serial0/0
[110/128] via 1.1.1.1, Serial0/1
192.168.1.0/32 is subnetted, 1 subnets
O
192.168.1.1 [110/65] via 1.1.1.1, Serial0/1
192.168.3.0/32 is subnetted, 1 subnets
O
192.168.3.1 [110/65] via 2.1.1.2, Serial0/0
RouterC#configure terminal
RouterC(config)#router ospf 30
RouterC(config-router)#network 3.0.0.0 0.255.255.255 area 0
RouterC(config-router)#network 2.0.0.0 0.255.255.255 area 0
RouterC(config-router)#network 192.168.3.0 0.0.0.255 area 0

OSPF MULTIPLE AREA CONFIGURATION

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

50

RouterA(config)#router ospf 10
RouterA(config-router)#network 1.0.0.0 0.255.255.255 area 0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

51

RouterA(config-router)#network 3.0.0.0 0.255.255.255 area 2


RouterA(config-router)#network 192.168.1.0 0.0.0.255 area 2
RouterA#show ip protocols
Routing Protocol is "ospf 10"
Sending updates every 0 seconds
Invalid after 0 seconds, hold down 0, flushed after 0
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Redistributing: ospf 10
Routing for Networks:
1.0.0.0
3.0.0.0
192.168.1.0
Routing Information Sources:
Gateway
Distance
Last Update
192.168.3.1
110
00:01:41
192.168.2.1
110
00:01:56
Distance: (default is 110)
RouterA#show ip ospf interface
Serial0/0 is up, line protocol is up
Internet Address 3.1.1.2/8, Area 2
Process ID 10, Router ID 192.168.1.1, Network Type POINT_TO_POINT,
Cost: 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:09
Index 1/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec

RouterA#show ip ospf neighbor

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

52

Neighbor ID
192.168.3.1
192.168.2.1

Pri State
1 FULL/ 1 FULL/ -

Dead Time Address


00:00:36 3.1.1.1
00:00:33 1.1.1.2

Interface
Serial0/0
Serial0/1

RouterA#show ip route ospf


O 2.0.0.0/8 [110/128] via 1.1.1.2, Serial0/1
192.168.2.0/32 is subnetted, 1 subnets
O
192.168.2.1 [110/65] via 1.1.1.2, Serial0/1
192.168.3.0/32 is subnetted, 1 subnets
O IA 192.168.3.1 [110/129] via 1.1.1.2, Serial0/1

RouterB#configure terminal
RouterB(config)#router ospf 20
RouterB(config-router)#network 1.0.0.0 0.255.255.255 area 0
RouterB(config-router)#network 2.0.0.0 0.255.255.255 area 0
RouterB(config-router)#network 192.168.2.0 0.0.0.255 area 0
RouterB#show ip route ospf
O IA 3.0.0.0/8 [110/128] via 1.1.1.1, Serial0/1
[110/128] via 2.1.1.2, Serial0/0
192.168.1.0/32 is subnetted, 1 subnets
O IA 192.168.1.1 [110/65] via 1.1.1.1, Serial0/1
192.168.3.0/32 is subnetted, 1 subnets
O IA 192.168.3.1 [110/65] via 2.1.1.2, Serial0/0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

53

RouterC#configure terminal
RouterC(config)#router ospf 30
RouterC(config-router)#network 3.0.0.0 0.255.255.255 area 2
RouterC(config-router)#network 2.0.0.0 0.255.255.255 area 0
RouterC(config-router)#network 192.168.3.0 0.0.0.255 area 1
RouterC#show ip route ospf
O 1.0.0.0/8 [110/128] via 2.1.1.1, 00:08:42, Serial1
192.168.1.0/32 is subnetted, 1 subnets
O
192.168.1.1 [110/65] via 3.1.1.2, 00:09:00, Serial0
192.168.2.0/32 is subnetted, 1 subnets
O
192.168.2.1 [110/65] via 2.1.1.1, 00:08:42, Serial1

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

54

HOSTNAME CONFIGURATION
>enable
#configure terminal
(config)#hostname Switch-A
Switch-A(config)#exit
Switch-A#exit
LINE CONSOLE PASSWORD
Switch-A#configure terminal
Switch-A(config)#line console 0
Switch-A(config-line)#password corvit
Switch-A(config-line)#exit
Switch-A(config)#exit
Switch-A#exit
Switch-A con0 is now available

Press RETURN to get started.

User Access Verification


Password:
Switch-A>

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

55

PASSWORD FOR PRIVILEGED MODE


Switch-A>enable
Switch-A#configure terminal
Switch-A(config)#enable password cisco
Switch-A(config)#exit
Switch-A#
Switch-A#disable
Switch-A>enable
Password:
Switch-A#
ENCRYPTED FOR PRIVILEGED MODE
Switch-A>enable
Switch-A#configure terminal
Switch-A(config)#enable secret cisco
Switch-A(config)#exit
Switch-A#
Switch-A#disable
Switch-A>enable
Password:
Switch-A#
REMOVE LINE CONSOLE PASSWORD
Switch-A#configure terminal
Switch-A(config)#line console 0
Switch-A(config-line)#no password
Switch-A(config-line)#exit
Switch-A(config)#exit
Switch-A#exit

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

56

REMOVE PREVILIDEGE MODE PASSWORD


Switch-A>enable
Switch-A#configure terminal
Switch-A(config)#no enable password
Switch-A(config)#exit
Switch-A#
Switch-A#disable
Switch-A>enable
Switch-A#
REMOVE SECRET PASSWORD
Switch-A>enable
Switch-A#configure terminal
Switch-A(config)#no enable secret
Switch-A(config)#exit
Switch-A#
Switch-A#disable
Switch-A>enable
Switch-A#
ASSIGN IP ADDRESS
Switch-A#configure terminal
Switch-A(config)#interface vlan 1
Switch-A(config-if)#ip address 10.0.0.1 255.0.0.0
Switch-A(config-if)#exit
Switch-A(config)#exit
Switch-A#

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

57

ASSIGN DEFULT GATEWAY


Switch-A#configure terminal
Switch-A(config)#ip default-gateway 10.0.0.20
Switch-A#show running-config
Building configuration...
!
interface FastEthernet0/1
no ip address
!
interface FastEthernet0/2
no ip address
!
<OUTPUT OMITTED>
interface FastEthernet0/11
no ip address
!
interface FastEthernet0/12
no ip address
!
interface Vlan1
ip address 10.0.0.1 255.0.0.0
no ip route-cache
!
ip default-gateway 10.0.0.20
ip http server
!
!

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

58

line con 0
login

SWITCH HARDWARE INFORMATION


Switch-A#show version
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(12c)EA1, RELEASE
SOFTWARE
(fc1)
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Sun 24-Nov-02 23:31 by antonino
Image text-base: 0x80010000, data-base: 0x80562000
ROM: Bootstrap program is CALHOUN boot loader
Switch-A uptime is 48 minutes
System returned to ROM by power-on
System image file is "flash:/c2950-i6q4l2-mz.121-12c.EA1.bin"
cisco WS-C2950-12 (RC32300) processor (revision H0) with 21002K bytes of
memory.
Processor board ID FOC0711X0KR
Last reset from system-reset
Running Standard Image
12 FastEthernet/IEEE 802.3 interface(s)
32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:0C:85:34:4F:80
Motherboard assembly number: 73-5782-11
Power supply part number: 34-0965-01
Motherboard serial number: FOC071018SH
Power supply serial number: PHI070400N%
Model revision number: H0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

59

Motherboard revision number: A0


Model number: WS-C2950-12

INFORMATION ABOUT FASTETHERNET INTERFACE


Switch-A#show interface fastEthernet 0/1
FastEthernet0/1 is up, line protocol is up
Hardware is Fast Ethernet, address is 000c.8534.4f81 (bia 000c.8534.4f81)
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Auto-duplex, Auto-speed
input flow-control is off, output flow-control is off
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:49:37, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
1 packets input, 64 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
1 packets output, 64 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

60

DESCRIPTION ON INTERFACE
Switch-A#configure terminal
Switch-A(config)#interface fastethernet 0/1
Switch-A(config-if)#description This interface belongs to Corvit-marson lab
Switch-A(config-if)#exit
Switch-A(config)#

Switch-A#show interface fastethernet 0/1


FastEthernet0/1 is up line protocol is up
Hardware is Fast Ethernet, address is 000c.8534.4f81 (bia 000c.8534.4f81)
Description: This interface belongs to Corvit-marson lab
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Auto-duplex, Auto-speed
input flow-control is off, output flow-control is off
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:57:26, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
1 packets input, 64 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

61

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored


0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected

DUPLEX MODE ON INTERFACE


Switch-A#configure terminal
Switch-A(config)#interface fastethernet 0/1
Switch-A(config-if)#speed ?
10 Force 10 Mbps operation
100 Force 100 Mbps operation
auto Enable AUTO speed configuration
Switch-A(config-if)#speed 100
Switch-A(config-if)#duplex ?
auto Enable AUTO duplex configuration
full Force full duplex operation
half Force half-duplex operation
Switch-A(config-if)#duplex full
Switch-A(config-if)#exit
Switch-A(config)#

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

62

SWITCH PORT STATUS


Switch-A#show interfaces status
Port Name
Fa0/1
Fa0/2
Fa0/3
Fa0/4
Fa0/5
Fa0/6
Fa0/7
Fa0/8
Fa0/9
Fa0/10
Fa0/11
Fa0/12

Status
notconnect
notconnect
notconnect
connected
notconnect
connected
notconnect
notconnect
notconnect
notconnect
notconnect
notconnect

Vlan
Duplex Speed Type
1
auto auto 10/100BaseTX
1
auto auto 10/100BaseTX
1
auto auto 10/100BaseTX
1
a-full a-100 10/100BaseTX
1
auto auto 10/100BaseTX
1
a-full a-100 10/100BaseTX
1
auto auto 10/100BaseTX
1
auto auto 10/100BaseTX
1
auto auto 10/100BaseTX
1
auto auto 10/100BaseTX
1
auto auto 10/100BaseTX
1
auto auto 10/100BaseTX

MAC ADDRESS TABLE


Switch-A#sh mac-address-table
Mac Address Table
-----------------------------------------Vlan Mac Address
Type
Ports
---- -----------------1 000c.ceb9.f104 DYNAMIC Fa0/4

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

63

000c.ceb9.f107

DYNAMIC

Fa0/7

Total Mac Addresses for this criterion: 2

SWITCH PORT SECURITY


Switch-A#show running-config
!
interface FastEthernet0/1
switchport mode access
switchport port-security
switchport port-security mac-address 0200.3111.2222
no ip address
!
interface FastEthernet0/2
switchport mode access
switchport port-security
switchport port-security mac-address sticky
no ip address

Switch-A#show port-security interface fastEthernet 0/1


Port Security : Enabled
Port status : SecureUp
Violation mode : Shutdown
Maximum MAC Addresses : 1
Total MAC Addresses : 1

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

64

Configured MAC Addresses : 1


Sticky MAC Addresses : 0
Aging time : 0 mins
Aging type : Absolute
SecureStatic address aging : Disabled
Security Violation count : 0

Switch-A#show port-security interface fastEthernet 0/2


Port Security : Enabled
Port status : SecureUp
Violation mode : Shutdown
Maximum MAC Addresses : 1
Total MAC Addresses : 1
Configured MAC Addresses : 0
Sticky MAC Addresses : 1
Aging time : 0 mins
Aging type : Absolute
SecureStatic address aging : Disabled
Security Violation count : 0

Switch-A#show running-config
interface FastEthernet0/2
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security mac-address sticky 0200.1111.2222
no ip address

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

65

SPANNING TREE PROTOCOL

Switch-A#show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 000c.8534.4f80
Cost
19
Port
11 (FastEthernet0/11)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 000c.ceb9.f100

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

66

Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec


Aging Time 300
Interface
Sts Cost
Prio.Nbr Type
---------------- ---- --- --------- -------- -------------------------------Fa0/11
FWD 19
128.11 P2p
Fa0/12
BLK 19
128.12 P2p

CREATE A VLAN
Switch-A#vlan database
Switch-A(vlan)#vlan 2 name corvit
VLAN 2 added:
Name: corvit
Switch-A(vlan)#?
VLAN database editing buffer manipulation commands:
abort Exit mode without applying the changes
apply Apply current changes and bump revision number
exit Apply changes, bump revision number, and exit mode
no Negate a command or set its defaults
reset Abandon current changes and reread current database
show Show database information
vlan Add, delete, or modify values associated with a single VLAN
vtp Perform VTP administrative functions.
Switch-A(vlan)#exit

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

67

APPLY completed.
Exiting....

DISPLAY A VLAN
Switch-A#show vlan
VLAN Name
Status Ports
---- -------------------------------- --------- ------------------------------1 default
active
Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
2 corvit
active
1002 fddi-default
active
1003 token-ring-default
active
1004 fddinet-default
active
1005 trnet-default
active
VLAN Type SAID
MTU Parent RingNo BridgeNo Stp BrdgMode Trans1
Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ -----1 enet 100001
1500 - - 0
0
2 enet 100002
1500 - - 0
0
1002 fddi 101002 1500 - - 0
0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

68

1003 tr 101003
1004 fdnet 101004
1005 trnet 101005

1500 1500 1500 -

- - srb
ieee ibm -

0
0
0

0
0
0

Remote SPAN VLANs


-----------------------------------------------------------------------------Primary Secondary Type

Ports

VLAN MEMBERSHIP
Switch-A#configure terminal
Switch-A(config)#int fastEthernet 0/1
Switch-A(config-if)#switchport mode access
Switch-A(config-if)#switchport access vlan 2
Switch-A(config)#int fastEthernet 0/3
Switch-A(config-if)#switchport mode access
Switch-A(config-if)#switchport access vlan 2

Switch-A#show vlan
VLAN Name
Status Ports
---- -------------------------------- --------- ------------------------------1 default
active Fa0/2, Fa0/4, Fa0/5, Fa0/6
Fa0/7, Fa0/8, Fa0/9, Fa0/10

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

69

Fa0/11, Fa0/12
2 corvit
1002 fddi-default
1003 token-ring-default
1004 fddinet-default
1005 trnet-default

active
active
active
active
active

Fa0/1, Fa0/3

VTP INFORMATION
Switch#show vtp status
VTP Version
:2
Configuration Revision
:0
Maximum VLANs supported locally : 64
Number of existing VLANs
:6
VTP Operating Mode
: Server
VTP Domain Name
:
VTP Pruning Mode
: Disabled
VTP V2 Mode
: Disabled
VTP Traps Generation
: Disabled
MD5 digest
: 0xE0 0x2D 0x90 0xFF 0x12 0x58 0x21 0x3
Configuration last modified by 0.0.0.0 at 3-1-93 00:45:42
Local updater ID is 0.0.0.0 (no valid interface found)

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

70

VTP DOMAIN
Switch(config)#vtp domain corvit
Switch#show vtp status
VTP Version
:2
Configuration Revision
:0
Maximum VLANs supported locally : 64
Number of existing VLANs
:6
VTP Operating Mode
: Server
VTP Domain Name
: corvit
VTP Pruning Mode
: Disabled
VTP V2 Mode
: Disabled
VTP Traps Generation
: Disabled
MD5 digest
: 0x14 0x9A 0xF0 0x35 0xD3 0xB3 0x0B
0x25

VTP PASSWORD
Switch(config)#vtp password cisco
Switch#show vtp status
VTP Version
:2
Configuration Revision
:0
Maximum VLANs supported locally : 64
Number of existing VLANs
:6
VTP Operating Mode
: Server
VTP Domain Name
: corvit
VTP Pruning Mode
: Disabled
VTP V2 Mode
: Disabled
VTP Traps Generation
: Disabled
MD5 digest
: 0x2F 0xAB 0xD3 0xCD 0xC4 0x29 0x73

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

71

VTP CLIENT
Switch(config)#vtp mode client
Switch#show vtp status
VTP Version
:2
Configuration Revision
:0
Maximum VLANs supported locally : 64
Number of existing VLANs
:6
VTP Operating Mode
: Client
VTP Domain Name
: corvit
VTP Pruning Mode
: Disabled
VTP V2 Mode
: Disabled
VTP Traps Generation
: Disabled
MD5 digest
: 0x2F 0xAB 0xD3 0xCD 0xC4 0x29 0x73

STANDARD IP ACCESS CONTROL LIST

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

72

RouterA#configure terminal
RouterA(config)#access-list 1 remark stop all trafic whose source ip 1.1.1.2
RouterA(config)#access-list 1 deny 1.1.1.2 0.0.0.0
RouterA(config)#access-list 1 permit any
RouterA(config)#int s0/0
RouterA(config-if)#ip access-group 1 in
RouterA#show access-lists
Standard IP access list 1
deny 1.1.1.2
permit any

RouterA#show ip int s0/0


Serial0/0 is up, line protocol is up
Internet address is 1.1.1.1/8
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is not set
Inbound access list is 1
Proxy ARP is enabled
Security level is default
Split horizon is enabled
ICMP redirects are always sent

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

73

ICMP unreachables are always sent


ICMP mask replies are never sent
IP fast switching is enabled
IP fast switching on the same interface is enabled
IP Flow switching is disabled
IP Feature Fast switching turbo vector
IP multicast fast switching is disabled
IP multicast distributed fast switching is disabled
Router Discovery is disabled
IP output packet accounting is disabled
TCP/IP header compression is disabled
RTP/IP header compression is disabled
Probe proxy name replies are disabled
Policy routing is disabled
Network address translation is disabled
WCCP Redirect outbound is disabled
WCCP Redirect exclude is disabled
BGP Policy Mapping is disabled

RouterB#ping
Protocol [ip]:
Target IP address: 1.1.1.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: yes
Source address or interface: 1.1.1.2
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

74

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
U.U.U
Success rate is 0 percent (0/5)
RouterB#ping
Protocol [ip]:
Target IP address: 1.1.1.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: yes
Source address or interface: 5.1.1.1
Type of service [0]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/28/32 ms

EXTENDED IP ACCESS CONTROL LIST

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

75

RouterA(config)#access-list 103 remark stop telnet to routerA whose source ip


1.1.1.2
RouterA(config)#access-list 103 deny tcp host 1.1.1.2 host 1.1.1.1 eq 23
RouterA(config)#access-list 103 permit ip any any
RouterA(config)#int s0/0
RouterA(config-if)#ip access-group 103 in
RouterA#show access-lists
Extended IP access list 103
deny tcp host 1.1.1.2 host 1.1.1.1 eq telnet (2 matches)
permit ip any any (160 matches)

RouterA#show ip int s0/0


Serial0/0 is up, line protocol is up
Internet address is 1.1.1.1/8

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

76

Broadcast address is 255.255.255.255


Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is not set
Inbound access list is 103
Proxy ARP is enabled
Security level is default
Split horizon is enabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is enabled
IP fast switching on the same interface is enabled
IP Flow switching is disabled
IP Feature Fast switching turbo vector
IP multicast fast switching is disabled
IP multicast distributed fast switching is disabled
Router Discovery is disabled
IP output packet accounting is disabled
TCP/IP header compression is disabled
RTP/IP header compression is disabled
Probe proxy name replies are disabled
Policy routing is disabled
Network address translation is disabled
WCCP Redirect outbound is disabled
WCCP Redirect exclude is disabled
BGP Policy Mapping is disabled

RouterB#ping
Protocol [ip]:
Target IP address: 1.1.1.1

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

77

Repeat count [5]:


Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: yes
Source address or interface: 1.1.1.2
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/37/53 ms

RouterB#telnet 1.1.1.1
Trying 1.1.1.1 ...
% Destination unreachable; gateway or host down

NAMED IP ACCESS CONTROL LIST


.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

78

RouterA(config)#ip access-list extended corvit


RouterA(config-ext-nacl)#deny tcp host 1.1.1.2 host 1.1.1.1 eq 23
RouterA(config-ext-nacl)#permit ip any any
RouterA(config)#int s0/0
RouterA(config-if)#ip access-group corvit in

RouterA#show access-lists
Extended IP access list corvit
deny tcp any host 1.1.1.1 eq telnet
permit ip any any (156 matches)

RouterA#show ip int s0/0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

79

Serial0/0 is up, line protocol is up


Internet address is 1.1.1.1/8
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is not set
Inbound access list is corvit
Proxy ARP is enabled
Security level is default
Split horizon is enabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is enabled
IP fast switching on the same interface is enabled
IP Flow switching is disabled
IP Feature Fast switching turbo vector
IP multicast fast switching is disabled
IP multicast distributed fast switching is disabled
Router Discovery is disabled
IP output packet accounting is disabled
TCP/IP header compression is disabled
RTP/IP header compression is disabled
Probe proxy name replies are disabled
Policy routing is disabled
Network address translation is disabled
WCCP Redirect outbound is disabled
WCCP Redirect exclude is disabled
BGP Policy Mapping is disabled

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

80

RouterB#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/38/52 ms

RouterB#telnet 1.1.1.1
Trying 1.1.1.1 ...
% Destination unreachable; gateway or host down

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

81

STATIC INSIDE SOURCE ADDRESS TRANSLATION

ROUTER A
version 12.0
service timestamps debug uptime
no service password-encryption
!
ip nat inside source static 10.1.1.1 5.1.1.3
!
interface Loopback0
ip address 10.1.1.1 255.0.0.0
ip nat inside
!
interface Serial0/0
ip address 5.1.1.1 255.0.0.0
ip nat outside
ip route 12.1.1.1 255.255.255.255 5.1.1.2
no ip http server
!
<OUTPUT OMITTED>

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

82

RouterA#show ip nat translations


Pro Inside global
Inside local
--5.1.1.3
10.1.1.1

Outside local
---

Outside global
---

RouterA#debug ip nat
IP NAT debugging is on
RouterA#ping
Protocol [ip]:
Target IP address: 12.1.1.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: yes
Source address or interface: 10.1.1.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/29/32 ms
01:00:24: NAT: s=10.1.1.1->5.1.1.3, d=12.1.1.1 [20]
01:00:24: NAT: s=12.1.1.1, d=5.1.1.3->10.1.1.1 [20]
01:00:24: NAT: s=10.1.1.1->5.1.1.3, d=12.1.1.1 [21]
01:00:24: NAT: s=12.1.1.1, d=5.1.1.3->10.1.1.1 [21]
01:00:24: NAT: s=10.1.1.1->5.1.1.3, d=12.1.1.1 [22]
01:00:24: NAT: s=12.1.1.1, d=5.1.1.3->10.1.1.1 [22]

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

83

DYNAMIC INSIDE SOURCE ADDRESS TRANSLATION

version 12.0
service timestamps debug uptime
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
ip nat pool corvit 5.1.1.3 5.1.1.5 netmask 255.0.0.0
ip nat inside source list 1 pool Corvit
!
interface Ethernet0/0
ip address 10.1.1.1 255.0.0.0 secondary
ip address 10.1.1.2 255.0.0.0 secondary
ip address 10.1.1.3 255.0.0.0 secondary
ip address 10.1.1.4 255.0.0.0
ip nat inside

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

84

no ip http server
!
!
interface Serial0/0
ip address 5.1.1.1 255.0.0.0
ip nat outside
ip route 12.1.1.1 255.255.255.255 5.1.1.2
!
access-list 1 permit 10.1.1.2
access-list 1 permit 10.1.1.3
access-list 1 permit 10.1.1.1
!
line con 0
transport input none
line aux 0
line vty 0 4
no login
!
end

RouterA#debug ip nat
IP NAT debugging is on

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

85

RouterA#ping
Protocol [ip]:
Target IP address: 12.1.1.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: yes
Source address or interface: 10.1.1.3
Type of service [0]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/29/32 ms
1.From router A, ping 12.1.1.1 using source address 10.1.1.3
2.From router A, ping 12.1.1.1 using source address 10.1.1.2
3.From router A, ping 12.1.1.1 using source address 10.1.1.1
01:20:43: NAT: s=10.1.1.3->5.1.1.3, d=12.1.1.1 [20]
01:21:59: NAT: s=10.1.1.2->5.1.1.4, d=12.1.1.1 [25]
01:22:43: NAT: s=10.1.1.1->5.1.1.5, d=12.1.1.1 [30]
RouterA#show ip nat translations
Pro Inside global
Inside local
--- 5.1.1.3
10.1.1.3
--- 5.1.1.5
10.1.1.1
--- 5.1.1.4
10.1.1.2

Outside local
-------

Outside global
-------

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

86

OVERLOADING AN INSIDE GLOBAL ADDRESS

version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname RouterA
!
ip nat pool corvit 5.1.1.3 5.1.1.3 netmask 255.0.0.0
ip nat inside source list 1 pool corvit overload
!
interface Ethernet0/0
ip address 10.1.1.1 255.0.0.0 secondary

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

87

ip address 10.1.1.2 255.0.0.0 secondary


ip address 10.1.1.3 255.0.0.0 secondary
ip address 10.1.1.4 255.0.0.0
ip nat inside

!
interface Serial0/0
ip address 5.1.1.1 255.0.0.0
ip nat outside
ip classless
ip route 12.1.1.1 255.255.255.255 5.1.1.2
no ip http server
!
access-list 1 permit 10.1.1.2
access-list 1 permit 10.1.1.3
access-list 1 permit 10.1.1.1
!
line con 0
transport input none
line aux 0
line vty 0 4
no login
!
end
RouterA#debug ip nat
IP NAT debugging is on

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

88

1.From router A, ping 12.1.1.1 using source address 10.1.1.3


2.From router A, ping 12.1.1.1 using source address 10.1.1.2
3.From router A, ping 12.1.1.1 using source address 10.1.1.1
02:03:19: NAT: s=10.1.1.1->5.1.1.3, d=12.1.1.1 [50]
02:03:52: NAT: s=10.1.1.2->5.1.1.3, d=12.1.1.1 [55]
02:04:41: NAT: s=10.1.1.3->5.1.1.3, d=12.1.1.1 [60]

RouterA#show ip nat translations


Pro Inside global
Inside local
Outside local
Outside global
icmp 5.1.1.3:6821
10.1.1.3:6821
12.1.1.1:6821
12.1.1.1:6821
icmp 5.1.1.3:6820
10.1.1.3:6820
12.1.1.1:6820
12.1.1.1:6820
icmp 5.1.1.3:6819
10.1.1.3:6819
12.1.1.1:6819
12.1.1.1:6819
icmp 5.1.1.3:6818
10.1.1.3:6818
12.1.1.1:6818
12.1.1.1:6818
icmp 5.1.1.3:6817
10.1.1.3:6817
12.1.1.1:6817
12.1.1.1:6817

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

89

POINT-TO-POINT LEASED LINE IMPLEMENTATION

Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname KHI-CORVIT
!
username LHR-CORVIT password 0 azeem
!
interface Serial0/0
ip address 1.1.1.1 255.0.0.0
encapsulation ppp
ppp authentication chap
!
line con 0

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

90

transport input none


line aux 0
line vty 0 4
no login
!
end

Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname LHR-CORVIT
!
username KHI-CORVIT password 0 azeem
!
interface Serial0/0
ip address 1.1.1.2 255.0.0.0
encapsulation ppp
clock rate 64000
ppp authentication chap
!
ip classless
no ip http server
!
!
line con 0
transport input none
line aux 0
line vty 0 4
no login
!

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

91

end

INTEGRATED SERVICES DIGITAL NETWORK(ISDN)

ROUTER KHI-CORVIT
KHI-CORVIT#configure terminal
KHI-CORVIT (config)#isdn switch-type basic-net3
KHI-CORVIT (config)# dialer-list 1 protocol ip permit
KHI-CORVIT (config)#interface bri0
KHI-CORVIT (config-if)#ip address 1.1.1.1 255.0.0.0
KHI-CORVIT (config-if)#encapsulation ppp
KHI-CORVIT (config-if)#dialer-group 1
KHI-CORVIT (config-if)#dialer map ip 1.1.1.2 5717271
KHI-CORVIT (config-if)#dialer idle-timeout 180

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

92

ROUTER LHR-CORVIT
LHR-CORVIT#configure terminal
LHR -CORVIT (config)#isdn switch-type basic-net3
LHR -CORVIT (config)# dialer-list 1 protocol ip permit
LHR -CORVIT (config)#interface bri0
LHR -CORVIT (config-if)#ip address 1.1.1.2 255.0.0.0
LHR -CORVIT (config-if)#encapsulation ppp
LHR -CORVIT (config-if)#dialer-group 1
LHR -CORVIT (config-if)#dialer map ip 1.1.1.1 4380476
LHR -CORVIT (config-if)#dialer idle-timeout 180

Current configuration:
!
version 12.0
service timestamps debug uptime
no service password-encryption
!
hostname KHI-CORVIT
!
enable password cisco
!
isdn switch-type basic-net3

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

93

!
interface BRI 0
ip address 1.1.1.1 255.0.0.0
encapsulation ppp
dialer map ip 1.1.1.2 5717271
dialer-group 1
dialer idle-timeout 180
!
dialer-list 1 protocol ip permit
!
line con 0
end
Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname LHR-CORVIT
!
enable password cisco
!
isdn switch-type basic-net3
interface BRI 0
ip address 1.1.1.2 255.0.0.0
encapsulation ppp
dialer map ip 1.1.1.1 4380476
dialer-group 1
!
dialer-list 1 protocol ip permit
!
line con 0
transport input none
line aux 0
line vty 0 4

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

94

no login
!
end

LHR-ROUTER #debug dialer


LHR-ROUTER#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.115.0.135, timeout is 2 seconds:
BRI0: Dialing cause ip (s=1.1.1.2, d=1.1.1.1)
BRI0: Attempting to dial 4380476
%LINK-3-UPDOWN: Interface BRI0:1, changed state to up
dialer Protocol up for BR0:1.
%LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0:1, changed state to up!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 32/34/36 ms
%ISDN-6-CONNECT: Interface BRI0:1 is now connected to 4380476 LHR-ROUTER
LHR-ROUTER#sh int bri 0
BRI0:1 is up, line protocol is up
Hardware is BRI
MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation PPP, loopback not set, keepalive set (10 sec)
LCP Open
Open: IPCP, CDPCP

LHR-ROUTER#show dialer interface bri0


Dial String Successes
Failures
Last called

Last status

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

95

4380476
6
0
0 incoming call(s) have been screened.
BRI0: B-Channel 1
Idle timer (120 secs), Fast idle timer (20 secs)
Wait for carrier (30 secs), Re-enable (15 secs)
Dialer state is data link layer up
Dial reason: ip (s=1.1.1.2, d=1.1.1.2)

19 secs

Successful

FRAME RELAY CONFIGURATION

FRAME RELAY SWITCH


FRAMRELAY-SWITCH#configure terminal
FRAMRELAY-SWITCH(config)#frame-relay switching
FRAMRELAY-SWITCH(config)#int s0
FRAMRELAY-SWITCH(config-if)#no ip address
FRAMRELAY-SWITCH(config-if)#encapsulation frame-relay
FRAMRELAY-SWITCH(config-if)#clock rate 64000
FRAMRELAY-SWITCH(config-if)#frame-relay lmi-type ansi
FRAMRELAY-SWITCH(config-if)#frame-relay intf-type dce

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

96

FRAMRELAY-SWITCH(config-if)#frame-relay route 103 interface s1 301


FRAMRELAY-SWITCH(config-if)#exit
FRAMRELAY-SWITCH(config)#int s1
FRAMRELAY-SWITCH(config-if)#no ip address
FRAMRELAY-SWITCH(config-if)#encapsulation frame-relay
FRAMRELAY-SWITCH(config-if)#clock rate 64000
FRAMRELAY-SWITCH(config-if)#frame-relay lmi-type ansi
FRAMRELAY-SWITCH(config-if)#frame-relay intf-type dce
FRAMRELAY-SWITCH(config-if)#frame-relay route 301 interface s0 103

ROUTER A CONFIGURATION
RouterA#configure terminal
RouterA(config)#int s0/0
RouterA(config-if)#ip address 10.0.0.1 255.0.0.0
RouterA(config-if)#encapsulation frame-relay
RouterA(config-if)#frame-relay lmi-type ansi

ROUTER B CONFIGURATION
RouterB#configure terminal
RouterB(config)#int s0/1
RouterB(config-if)#ip address 10.0.0.2 255.0.0.0
RouterB(config-if)#encapsulation frame-relay
RouterB(config-if)#frame-relay lmi-type ansi

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

97

.......CORVIT MARSONS....
..
6th Floor Business Avenue, Shahra-e-Faisal, Karachi
Ph: 4382400, 4382402, Fax: 4380476
Email: khi@corvit.com

98

Das könnte Ihnen auch gefallen