0% found this document useful (0 votes)
10 views

Experiment No 3

Uploaded by

suresh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Experiment No 3

Uploaded by

suresh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Ex No: 5

LINK STATE ROUTING PROTOCOL-Open Shortest Path First

Aim : to design and implement OSPF routing protocol

Procedure:
Create the topology
In each router configure ospf
Click the router
Type :enable
Type :config T
Type :router ospf <process id> #give an id no
#enter directly connected network address
Type :network <network address >< wildcard address> area <area no>
Type: exit
Type: exit
Type: show ip route
Now you can see all directly connected (C) and indirectly connected through ospf (O) networks
EXAMPLE:
Router>ENABLE
Router#CONFIG T
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router ospf 25

Router(config-router)#network 192.168.1.0 0.0.0.255 area 561


Router(config-router)#network 10.0.0.0 0.255.255.255 area 561
Router(config-router)#network 30.0.0.0 0.255.255.255 area 561
Router(config-router)#exit
Router(config)#exit
Router#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
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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 10.0.0.0/8 is directly connected, Serial2/0


O 20.0.0.0/8 [110/128] via 10.0.0.2, 00:01:35, Serial2/0
[110/128] via 30.0.0.2, 00:01:35, Serial3/0
C 30.0.0.0/8 is directly connected, Serial3/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
O 192.168.2.0/24 [110/65] via 10.0.0.2, 00:01:35, Serial2/0
O 192.168.3.0/24 [110/65] via 30.0.0.2, 00:01:35, Serial3/0

Design Topology
ROUTER MECH
System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)
Copyright (c) 2000 by cisco Systems, Inc.
PT 1001 (PTSC2005) processor (revision 0x200) with 60416K/5120K bytes of memory

Readonly ROMMON initialized

Self decompressing the image :


########################################################################## [OK]

Restricted Rights Legend

Use, duplication, or disclosure by the Government is


subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

cisco Systems, Inc.


170 West Tasman Drive
San Jose, California 95134-1706

Cisco Internetwork Operating System Software


IOS (tm) PT1000 Software (PT1000-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 27-Apr-04 19:01 by miwang

PT 1001 (PTSC2005) processor (revision 0x200) with 60416K/5120K bytes of memory


.
Processor board ID PT0123 (0123)
PT2005 processor: part number 0, mask 01
Bridging software.
X.25 software, Version 3.0.0.
4 FastEthernet/IEEE 802.3 interface(s)
2 Low-speed serial(sync/async) network interface(s)
32K bytes of non-volatile configuration memory.
63488K bytes of ATA CompactFlash (Read/Write)

--- System Configuration Dialog ---

Continue with configuration dialog? [yes/no]: n

Press RETURN to get started!

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#exit
Router(config)#interface Serial2/0
Router(config-if)#ip address 10.0.0.1 255.0.0.0
Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial2/0, changed state to down


Router(config-if)#clock rate 64000
Router(config-if)#exit
Router(config)#interface Serial3/0
Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial3/0, changed state to down


Router(config-if)#no ip address
Router(config-if)#exit
Router(config)#interface Serial2/0
Router(config-if)#exit
Router(config)#interface Serial3/0
Router(config-if)#ip address 30.00.0.1 255.0.0.0
Router(config-if)#exit
Router(config)#interface Serial3/0
Router(config-if)#clock rate 64000
%LINK-5-CHANGED: Interface Serial2/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up

%LINK-5-CHANGED: Interface Serial3/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up

Router con0 is now available

Press RETURN to get started.

Router>ENABLE
Router#CONFIG T
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router ospf 25

Router(config-router)#network 192.168.1.0 0.0.0.255 area 561


Router(config-router)#network 10.0.0.0 0.255.255.255 area 561
Router(config-router)#network 30.0.0.0 0.255.255.255 area 561
Router(config-router)#exit
Router(config)#exit
Router#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
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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 10.0.0.0/8 is directly connected, Serial2/0


C 30.0.0.0/8 is directly connected, Serial3/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
Router#
%SYS-5-CONFIG_I: Configured from console by console

01:06:47: %OSPF-5-ADJCHG: Process 25, Nbr 192.168.2.1 on Serial2/0 from LOADING to FULL,
Loading Done

01:06:47: %OSPF-5-ADJCHG: Process 25, Nbr 192.168.3.1 on Serial3/0 from LOADING to FULL,
Loading Done
Router#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
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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 10.0.0.0/8 is directly connected, Serial2/0


O 20.0.0.0/8 [110/128] via 10.0.0.2, 00:01:35, Serial2/0
[110/128] via 30.0.0.2, 00:01:35, Serial3/0
C 30.0.0.0/8 is directly connected, Serial3/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
O 192.168.2.0/24 [110/65] via 10.0.0.2, 00:01:35, Serial2/0
O 192.168.3.0/24 [110/65] via 30.0.0.2, 00:01:35, Serial3/0
Router#

Router COMP

Press RETURN to get started!


Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Serial2/0
Router(config-if)#ip address 10.0.0.2 255.0.0.0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up

Router(config-if)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#exit
Router(config)#interface Serial3/0
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#clock rate 64000
This command applies only to DCE interfaces
Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial3/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up

ROUTER COMP OSPF CONFIGURATION

Router con0 is now available

Press RETURN to get started.


Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#router ospf 50
Router(config-router)#network 192.168.2.0 0.0.0.255 area 561
Router(config-router)#network 10.0.0.0 255.255.255.0 area 561
Router(config-router)#network 20.0.0.0 255.255.255.0 area 561
Router(config-router)#exit
Router(config)#exit
Router#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
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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 10.0.0.0/8 is directly connected, Serial2/0


C 20.0.0.0/8 is directly connected, Serial3/0
C 192.168.2.0/24 is directly connected, FastEthernet0/0

Router#
%SYS-5-CONFIG_I: Configured from console by console

01:06:41: %OSPF-5-ADJCHG: Process 50, Nbr 192.168.3.1 on Serial3/0 from LOADING to FULL,
Loading Done

01:06:41: %OSPF-5-ADJCHG: Process 50, Nbr 192.168.1.1 on Serial2/0 from LOADING to FULL,
Loading Done

Router#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
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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 10.0.0.0/8 is directly connected, Serial2/0


C 20.0.0.0/8 is directly connected, Serial3/0
O 30.0.0.0/8 [110/128] via 10.0.0.1, 00:01:35, Serial2/0
[110/128] via 20.0.0.2, 00:01:35, Serial3/0
O 192.168.1.0/24 [110/65] via 10.0.0.1, 00:01:35, Serial2/0
C 192.168.2.0/24 is directly connected, FastEthernet0/0
O 192.168.3.0/24 [110/65] via 20.0.0.2, 00:01:35, Serial3/0

ROUTER ETRX
System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)
Copyright (c) 2000 by cisco Systems, Inc.
PT 1001 (PTSC2005) processor (revision 0x200) with 60416K/5120K bytes of memory

Readonly ROMMON initialized

Self decompressing the image :


########################################################################## [OK]

Restricted Rights Legend

Use, duplication, or disclosure by the Government is


subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

cisco Systems, Inc.


170 West Tasman Drive
San Jose, California 95134-1706

Cisco Internetwork Operating System Software


IOS (tm) PT1000 Software (PT1000-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 27-Apr-04 19:01 by miwang
PT 1001 (PTSC2005) processor (revision 0x200) with 60416K/5120K bytes of memory
.
Processor board ID PT0123 (0123)
PT2005 processor: part number 0, mask 01
Bridging software.
X.25 software, Version 3.0.0.
4 FastEthernet/IEEE 802.3 interface(s)
2 Low-speed serial(sync/async) network interface(s)
32K bytes of non-volatile configuration memory.
63488K bytes of ATA CompactFlash (Read/Write)

--- System Configuration Dialog ---

Continue with configuration dialog? [yes/no]: n

Press RETURN to get started!

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.168.3.1 255.255.255.0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config)#interface Serial2/0
Router(config-if)#ip address 20.0.0.2 255.0.0.0
Router(config-if)#clock rate 64000
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up

Router(config-if)#exit
Router(config)#interface Serial3/0
Router(config-if)#ip address 30.0.0.2 255.0.0.0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface Serial3/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up


Router con0 is now available

Press RETURN to get started.

Router>enable
Router#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
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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 20.0.0.0/8 is directly connected, Serial2/0


C 30.0.0.0/8 is directly connected, Serial3/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
ROUTER ETRX OSPF CONFIGURATION

Router(config)#router ospf 75
Router(config-router)#network 192.168.3.0 0.0.0.255 area 561
Router(config-router)#network 20.0.0.0 0.255.255.255 area 561
Router(config-router)#network 30.0.0.0 0.255.255.255 area 561
Router(config-router)#
%SYS-5-CONFIG_I: Configured from console by console

01:06:36: %OSPF-5-ADJCHG: Process 75, Nbr 192.168.2.1 on Serial2/0 from LOADING to FULL,
Loading Done

01:06:36: %OSPF-5-ADJCHG: Process 75, Nbr 192.168.1.1 on Serial3/0 from LOADING to FULL,
Loading Done

Router#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
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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

O 10.0.0.0/8 [110/128] via 20.0.0.1, 00:01:35, Serial2/0


[110/128] via 30.0.0.1, 00:01:35, Serial3/0
C 20.0.0.0/8 is directly connected, Serial2/0
C 30.0.0.0/8 is directly connected, Serial3/0
O 192.168.1.0/24 [110/65] via 30.0.0.1, 00:01:35, Serial3/0
O 192.168.2.0/24 [110/65] via 20.0.0.1, 00:01:45, Serial2/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
Router#

Note :Now ping between PC) ,PC1 And PC2 .it should reply properly

Conclusion:
Thus we have studied OSPF configuration and verified

You might also like