It is reffered from www.3anetwork.com/blog/
Open Shortest Path First (OSPF) is a routing protocol for Internet Protocol (IP) networks. It
uses a link state routing algorithm and falls into the group of interior
routing protocols, being defined as OSPF Version 2 in RFC 2328 for IPv4. The
updates for IPv6 are
specified as OSPF Version 3 in RFC 5340,
operating within a single autonomous system (AS). OSPF
is perhaps the most widely used interior gateway protocol (IGP) in large enterprise networks.
IS-IS, another link-state dynamic routing protocol, is more common in large
service provider networks. The most widely used exterior gateway protocol is
the Border Gateway Protocol (BGP), the principal routing protocol
between autonomous systems on the Internet.
The advantage of
shortest path first algorithms is that they results in smaller more frequent
updates everywhere. They converge quickly, thus preventing such problems as
routing loops and Count-to-Infinity (when routers continuously increment the
hop count to a particular network). This makes for a stable network.
Note
This scenario is recommended to deploy in the small
network environment, we recommend using the OSPF routing protocolwhen routers are not
all Cisco devices. When routers are all Cisco devices, we suggest the EIGRP routing protocol.
Procedure
Step1: Configure router1 and
the configuration commands are shown as below.
en
conf t
no ip domain-lookup
usern cisco pr 15
pass cisco
line vty 0 4
logi loca
logg sy
exec-tim 0 0
exit
int f 0/0
ip add 192.168.1.1
255.255.255.0
no shu
int f 0/1
ip add 192.168.0.1
255.255.255.0
no shu
int lo 0
ip add 1.1.1.1 255.255.255.0
no shu
exit
router ospf 110
router-id 1.1.1.1
network 192.168.0.0
0.0.0.255 area 0
network 192.168.1.0
0.0.0.255 area 0
network 1.1.1.0
0.0.0.255 area 0
end
Step2: Configure router2 and
the configuration commands are shown as below.
en
conf t
no ip domain-lookup
usern cisco pr 15
pass cisco
line vty 0 4
logi loca
logg sy
exec-tim 0 0
exit
int f 0/0
ip add 192.168.1.2
255.255.255.0
no shu
int f 0/1
ip add 192.168.2.1
255.255.255.0
no shu
int lo 0
ip add 2.2.2.2 255.255.255.0
no shu
exit
router ospf 110
router-id 2.2.2.2
network 192.168.1.0
0.0.0.255 area 0
network 192.168.2.0
0.0.0.255 area 0
network 2.2.2.0
0.0.0.255 area 0
end
Step3: Configure router3 and
the configuration commands are shown as below.
en
conf t
no ip domain-lookup
usern cisco pr 15
pass cisco
line vty 0 4
logi loca
logg sy
exec-tim 0 0
exit
int f 0/1
ip add 192.168.2.2
255.255.255.0
no shu
int f 0/0
ip add 192.168.3.1
255.255.255.0
no shu
int lo 0
ip add 3.3.3.3 255.255.255.0
no shu
exit
router ospf 110
router-id 3.3.3.3
network 192.168.2.0
0.0.0.255 area 0
network 192.168.3.0
0.0.0.255 area 0
network 3.3.3.0
0.0.0.255 area 0
end
Step4: Configure router4 and
the configuration commands are shown as below.
en
conf t
no ip domain-lookup
usern cisco pr 15
pass cisco
line vty 0 4
logi loca
logg sy
exec-tim 0 0
exit
int f 0/0
ip add 192.168.3.2
255.255.255.0
no shu
int f 0/1
ip add 192.168.4.2
255.255.255.0
no shu
int lo 0
ip add 4.4.4.4 255.255.255.0
no shu
exit
router ospf 110
router-id 4.4.4.4
network 192.168.3.0
0.0.0.255 area 0
network 192.168.4.0
0.0.0.255 area 0
network 4.4.4.0
0.0.0.255 area 0
end
Then, the results are shown as
below.
The more information
about technical support you can consult with our
CCIE expert – Bill, and his e-mail address is: bill@3anetwork.com





No comments:
Post a Comment