Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

OSPF Advanced configuration

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

OSPF Advanced configuration-protocols required for labs-

Default routing protocol, static routing protocol, RIP protocol, OSPF protocol

-detailed configuration of the GNS3 topology-

1. Pull up six routers (right-click to select Configure, select Slots to add a port NM-1FE-TX, in which R3 needs to add 2 NM-1FE-TX, click OK)

2. Pull out four PCs (VPCS)

3. Change the icon of R6 to cloud (operator)

-detailed operation-first, enter the port configuration address

R1 detailed configuration:

R1#conf tRI# (config) int f0/0R1# (config-if) ip add 192.168.10.1 255.255.255.0R1# (config-if) no shutR1# (config-if) int f0/1R1# (config-if) ip add 192.168.20.1 255.255.255.0R1# (config-if) no shutR1# (config-if) exR1# (config) ip router 0.0.0.0 0.0.0 192.168.20.2 / in The stub network configures a default route and points to the next address

R2 detailed configuration:

R2#conf t R2 (config) # int f0LPG 1 R2 (config-if) # ip add 192.168.20.2 255.255.255.255.0 R2 (config-if) # no shut R2 (config-if) # ex R2 (config) # int f0Plus 0 R2 (config-if) # ip add 192.168.30.1 255.255.255.0 R2 (config-if) # no shut R2 (config-if) # ex R2 (config) # router ospf 1 (/ / enable the OSPF1 process ) R2 (config-router) # router-id 2.2.2.2 (/ / label route-id 2.2.2.2) R2 (config-router) # network 192.168.30.0 0.0.0.255 area1 (/ / 30 segments are declared in area1) R2 (config-router) # ex R2 (config) # ip route 192.168 .10.0 255.255.255.0 192.168.20.1 R2 (config) # router ospf 1 (/ / enable OSPF1 process) R2 (config-router) # redistribute connected subnets (/ / inject 20 paragraphs of directly connected network segment) R2 (config-router) ) # redistribute static subnets (/ / inject 10 paragraphs of static network segment) R2 (config-router) # ex

R3 detailed configuration:

R3#conf tR3 (config) # int f0/0R3 (config-if) # ip add 192.168.30.2 255.255.255.0R3 (config-if) # no shutR3 (config-if) # int f0/1R3 (config-if) # ip add 192.168.40.1 255.255.255.0R3 (config-if) # no shutR3 (config-if) # int f1/0R3 (config-if) # ip add 12.0.0.1 255.255.255.0R3 (config-if) No shutR3 (config-if) # int f2/0R3 (config-if) # ip add 192.168.70.1 255.255.255.0R3 (config-if) # no shutR3 (config-if) # do show ip int bInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.30.2 YES manual up up FastEthernet0/1 192.168.40.1 YES manual up up FastEthernet1/0 12.0.0.1 YES manual up up FastEthernet2/0 192.168.70.1 YES manual up up R3 (config-if) # ex R3 (config) # ip route 0.0.0.0 0.0.0.0 12.0.0.2 (/ / configure default route and point to next hop address) R3 (config) # router ospf 1 (/ / Enable OSPF1 process) R3 (config-router) # router-id 3.3.3.3 (/ / label router-id 3.3.3.3) R3 (config-router) # network 192.168.30.0 0.0.255 area1 (/ / declare 30 paragraph address in area1) R3 (config-router) # network 192.168.40.0 0.0.0. 255 area0 (/ / announce 40-paragraph address in area0) R3 (config-router) # network 192.168.70.0 0.0.0.255 area0 (/ / announce 70-paragraph address in area0) R3 (config-router) # default-information originate (/ / inject external default route) R3 (config-router) # ex

R4 detailed configuration:

R4#conf t R4 (config) # int f0config-if 0 R4 (config-if) # ip add 192.168.40.2 255.255.255.255.0 R4 (config-if) # no shut R4 (config-if) # int f0Plus 1 R4 (config-if) # ip add 192.168.50.1 255.255.255.0 R4 (config-if) # no shut R4 (config-if) # ex R4 (config-router) # router rip (/ / configure rip protocol) R4 (config-router) # ver 2 R4 (config-router) # no atuo-summary R4 (config-router) # network 192.168.50.0 R4 (config-router) # ex R4 (config-router) # router ip R4 (config-router) # redistribute ospf 1 metric 5 (/ / injecting process numbers and metrics into OSPF protocol) R4 (config-router) # ex R4 (config-router) # router ospf 1 (/ / start the OSPF1 process) R4 (config-router) # router-id 4.4.4.4 (/ / tagged router-id 4.4.4.4) R4 (config-router) # network 192.168.40.0 0.0.0.255 area 0 R4 (config-router) # redistribute rip subnets (/ / inject rip protocol) R4 (config-router) # ex

R5 detailed configuration:

R5#conf tR5 (config) # int f0/0R5 (config) # ip add 192.168.50.2 255.255.255.0R5 (config) # no shutR5 (config) # int f0/1R5 (config) # ip add 192.168.60.1 255.255.255.0R5 (config-if) # no shutR5 (config-if) # ex (/ / configure rip protocol) R5 ( Config-if) # router ripR5 (config-router) # ver 2R5 (config-router) # no antuo-summaryR5 (config-router) # network 192.168.50.0R5 (config-router) # network 192.168.60.0R5 (config-router) # ex

R6 detailed configuration:

R6#conf tR6 (config) # int f0/0R6 (config-if) # ip add 12.0.0.2 255.255.255.0R6 (config-if) # no shutR6 (config-if) # exR6 (config) # int f0/1R6 (config-if) # ip add 13.0.0.1 255.255.255.0R6 (config-if) # no shutR6 (config-if) # exR6 (config) # ip route 192.168.0.0 255.255.255.0 12.0.0. 1 (/ / configure static route)

Second, configure the IP address and gateway on the PC side

1 、 PC1:192.168.10.2 192.168.10.1

2 、 PC2:192.168.70.2 192.168.70.1

3 、 PC3:13.0.0.13 13.0.0.1

4 、 P4:192.168.60.2 192.169.60.1

Third, Enter network interoperability test PC1 > ip 192.168.10.2 192.168.10.1Checking for duplicate address...PC1: 192.168.10.2 255.255.255.0 gateway 192.168.10.1PC1 > ping 192.168.70.2192.168.70.2 icmp_seq=1 timeout192.168.70.2 icmp_seq=2 timeout84 bytes from 192.168.70.2 icmp_seq=3 ttl=61 time=93.680 ms84 bytes from 192.168.70.2 icmp_seq=4 ttl=61 time=93.717 ms84 bytes from 192 .168.70.2 icmp_seq=5 ttl=61 time=93.722 msPC1 > ping 13.0.0.1313.0.13 icmp_seq=1 timeout13.0.0.13 icmp_seq=2 timeout84 bytes from 13.0.0.13 icmp_seq=3 ttl=60 time=124.965 ms84 bytes from 13.0.0.13 icmp_seq=4 ttl=60 time=124.858 ms84 bytes from 13.0.0.13 icmp_seq=5 ttl=60 time=125.056 msPC1 > ping 192.168.60.2192.168.60.2 icmp_seq=1 timeout84 bytes from 192.168.60.2 Icmp_seq=2 ttl=59 time=156.210 ms84 bytes from 192.168.60.2 icmp_seq=3 ttl=59 time=157.946 ms84 bytes from 192.168.60.2 icmp_seq=4 ttl=59 time=166.144 ms84 bytes from 192.168.60.2 icmp_seq=5 ttl=59 time=156.238 msPC1 >

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report