OSPF applications-single-region and multi-region (CISCO)

Source: Internet
Author: User


OSPF applications-single-region and multi-region (CISCO) Single-region: 1. job Requirements! Three methods for injecting default Routes 2. Topology
1. the device configuration is as follows: R1 (config) # int s1/0R1 (config-if) # ip add 192.168.1.1 255.255.255.0R1 (config-if) # no shutR1 (config-if) # int s1/1R1 (config-if) # ip add 192.168.3.1 255.255.255.0R1 (config-if) # no shutR1 (config) # line cons 0R1 (config-line) # logging SynchronousR1 (config-line) # exec-timeout 0 0R1 (config) # router ospf 223R1 (config-router) # network 192.168.3.0 0.0.255 area 0R1 (config) # router VPN 223R1 (config-router) # network 192.168.1.0R2 (config) # int s1/0R2 (config-if) # ip add 192.168.1.2 255.255.255.0R2 (config-if) # no shut R2 (config-if) # int s1/2R2 (config-if) # ip add 192.168.2.1 255.255.255.0R2 (config-if) # no shutR2 (config) # int lo 1R2 (config-if) # ip add 192.168.5.1 255.255.255.0R2 (config-if) # no shutR2 (config) # router VPN 223R2 (config-router) # network 192.168.1.0R2 (config-router) # network 192.168.2.0R2 (config-router) # network 192.168.5.0R3 (config) # int s 1/2R3 (config-if) # ip add 192.168.2.2 255.255.255.0R3 (config-if) # no shutR3 (config) # int lo 1R3 (config-if) # ip add 192.168.6.1 255.255.255.0R3 (config) # router VPN 223R3 (config-router) # network 192.168.2.0R3 (config-router) # network 192.168.6.0 view the route table on R3 as follows: D 192.168.5.0/24 [90/2297856] via 192.168.2.1, 00:22:57, serial1/2C 192.168.6.0/24 is directly connected, Loopback1D 192.168.1.0/24 [90/2681856] via 192.168.2.1, 00:31:30, Serial1/2C 192.168.2.0/24 is directly connected, Serial1/2R3 # R4 (config) # int s1/1R4 (config-if) # ip add 192.168.3.2 255.255.255.0R4 (config-if) # no shutR4 (config-if) # int s1/3R4 (config-if) # ip add 192.168.4.1 255.255.255.0R4 (config-if) # no shutR4 (config-if) # int lo1R4 (config-if) # ip add 192.168.7.1 255.255.255.0R4 (config-if) # exit R4 (config) # router ospf 223R4 (config-router) # network 192.168.3.0 0.0.0.255 area 0R4 (config-router) # network 192.168.4.0 0.0.0.255 area 0R4 (config-router) # network 192.168.7.0 0.0.0.255 area 0R5 (config) # int s1/3R5 (config-if) # ip add 192.168.4.2 255.255.255.0R5 (config-if) # no shutR5 (config-if) # int lo 1R5 (config-if) # ip add 192.168.8.1 255.255.255.0R5 (config-if) # no shutR5 (config-if) # router ospf 223R5 (config-router) # network 192.168.4.0 0.0.0.255 area 0R5 (config-router) # network 192.168.8.0 0.0.0.255 area 0
View R5 router route table: www.2cto.com C 192.168.8.0/24 is directly connected, Loopback1C 192.168.4.0/24 is directly connected, Serial1/3192.168.7.0/32 is subnetted, 1 subnetsO 192.168.7.1 [110/65] via 192.168.4.1, 00:01:33, Serial1/3O 192.168.3.0/24 [110/128] via 192.168.4.1, 00:01:33, Serial1/3R5 #4. test and view the route table of the R1 router (before route redistribution) (because R1 is a VBR, it is not only running the OSPF protocol, but also in OSPF, so the route table is complete) 192.168.8.0/32 is subnetted, 1 subnetsO 192.168.8.1 [110/129] via 192.168.3.2, 00:05:47, Serial1/1O 192.168.4.0/24 [110/128] via 192.168.3.2, 00:05:47, serial1/1D 192.168.5.0/24 [90/2297856] via 192.168.1.2, 00:22:19, Serial1/0D 192.168.6.0/24 [90/2809856] via 192.168.1.2, 00:30:21, Serial1/0192.168.7.0/32 is subnetted, 1 subnetsO 192.168.7.1 [110/65] via 192.168.3.2, 00:05:47, Serial1/1C 192.168.1.0/24 is directly connected, Serial1/0D 192.168.2.0/24 [90/2681856] via 192.168.1.2, 00:35:05, serial1/0C 192.168.3.0/24 is directly connected, Serial1/1R1 # R1 (config) # router ospf 223R1 (config-router) # redistribute VPN 223 metric 200 // resend the network to the MongoDB instance. For more information, see the classful networks will be redistributedR5 route table: C 192.168.8.0/24 is directly connected, Loopback1C 192.168.4.0/24 is directly connected, serial1/3O E2 192.168.5.0/24 [110/200] via 192.168.4.1, 00:02:23, Serial1/3O E2 192.168.6.0/24 [110/200] via 192.168.4.1, 00:02:23, Serial1/3192.168.7.0/32 is subnetted, 1 subnetsO 192.168.7.1 [110/65] via 192.168.4.1, 00:02:23, Serial1/3O E2 192.168.1.0/24 [110/200] via 192.168.4.1, 00:02:23, Serial1/3O E2 192.168.2.0/24 [110/200] via 192.168.4.1, 00:02:23, Serial1/3O 192.168.3.0/24 [110/128] via 192.168.4.1, 00:02:24, Serial1/3R5 # three methods for injecting default routes into the MongoDB: First method: R1 (config) # ip route 0.0.0.0 0.0.0.0 s1/1R1 (config) # router VPN 223R1 (config-router) # route table of network 0.0.0.0R1: 192.168.8.0/32 is subnetted, 1 subnetsO 192.168.8.1 [110/129] via 192.168.3.2, 00:06:41, Serial1/1O 192.168.4.0/24 [110/128] via 192.168.3.2, 00:06:41, Serial1/1D 192.168.5.0/24 [90/2297856] via 192.168.1.2, 00:35:10, serial1/0D 192.168.6.0/24 [90/2809856] via 192.168.1.2, 00:43:11, Serial1/0192.168.7.0/32 is subnetted, 1 subnetsO 192.168.7.1 [110/65] via 192.168.3.2, 00:06:41, serial1/1C 192.168.1.0/24 is directly connected, Serial1/0D 192.168.2.0/24 [90/2681856] via 192.168.1.2, 00:47:56, Serial1/0C 192.168.3.0/24 is directly connected, serial1/1 S * 0.0.0.0/0 is directly connected, Serial1/1R1 # route table of www.2cto.com R3: D 192.168.5.0/24 [90/2297856] via 192.168.2.1, 00:37:04, serial1/2C 192.168.6.0/24 is directly connected, Loopback1D 192.168.1.0/24 [90/2681856] via 192.168.2.1, 00:45:37, Serial1/2C 192.168.2.0/24 is directly connected, serial1/2D 192.168.3.0/24 [90/3193856] via 192.168.2.1, 00:03:12, Serial1/2D * 0.0.0.0/0 [90/3193856] via 192.168.2.1, 00:03:12, Serial1/2R3 #
Type 2: R1 (config) # ip route 0.0.0.0 0.0.0.0 s1/1R1 (config) # router VPN 223R1 (config-router) # redistribute static view the route table on R3: D 192.168.5.0/24 [90/2297856] via 192.168.2.1, 01:00:35, Serial1/2C 192.168.6.0/24 is directly connected, Loopback1D 192.168.1.0/24 [90/2681856] via 192.168.2.1, 01:09:09, serial1/2C 192.168.2.0/24 is directly connected, Serial1/2D * EX 0.0.0.0/0 [170/3193856] via 192.168.2.1 2, Serial1/2R3 # www.2cto.com 3: R1 (config) # ip default-network 192.168.3.0R1 (config) # ip route 192.168.3.0 255.255.255.0 null0R1 (config) # router VPN 223R1 (config-router) # The route table of network 192.168.3.0R2 is as follows: C 192.168.5.0/24 is directly connected, Loopback1D 192.168.6.0/24 [90/2297856] via 192.168.2.2, 01:17:34, serial1/2C 192.168.1.0/24 is directly connected, Serial1/0C 192.168.2.0/24 is directly connected, Serial1/2D * 192.168.3.0/24 [90/2681856] via 192.168.1.1, 00:00:09, Serial1/0R2 # R3 # ping 192.168.8.1Type escape sequence to abort. sending 5, 100-byte ICMP Echos to 192.168.8.1, timeout is 2 seconds :!!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 56/84/120 msR3 # ping 192.168.4.2Type escape sequence to abort. sending 5, 100-byte ICMP Echos to 192.168.4.2, timeout is 2 seconds :!!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 64/80/124 msR3 # R1 (config) # ip default-network 0.0.0.0R1 (config) # ip route 0.0.0.0 0.0.0.0 null0R1 (config) # fig (config-router) # network 0.0.0.0C 192.168.5.0/24 is directly connected, Loopback1D 192.168.6.0/24 [90/2297856] via 192.168.2.2, 00:11:52, serial1/2C 192.168.1.0/24 is directly connected, Serial1/0C 192.168.2.0/24 is directly connected, Serial1/2D 192.168.3.0/24 [90/2681856] via 192.168.1.1, 00:03:14, serial1/0D * 0.0.0.0/0 [90/2681856] via 192.168.1.1, 00:00:11, Serial1/0R2 # R1 (config) # router VPN 223R1 (config-router) # redistribute ospf 223 metric 1000 100 255 10 1500192.168.8.0/32 is subnetted, 1 subnetsD EX 192.168.8.1 [170/3609600] via 192.168.2.1, 00:00:27, Serial1/2D EX 192.168.4.0/24 [170/3609600] via 192.168.2.1, 00:00:27, Serial1/2D 192.168.5.0/24 [90/2297856] via 192.168.2.1, 00:17:24, Serial1/2C 192.168.6.0/24 is directly connected, loopback1194257.0/32 is subnetted, 1 subnetsD EX 192.168.7.1 [170/3609600] via 192.168.2.1, 00:00:27, Serial1/2D 192.168.1.0/24 [90/2681856] via 192.168.2.1, 00:17:24, Serial1/2C 192.168.2.0/24 is directly connected, serial1/2D 192.168.3.0/24 [90/3193856] via 192.168.2.1, 00:10:11, Serial1/2
Multi-region: 1. job Requirements: & lt; 1 knowledge about the VPN protocol & lt; 2. Route redistribution on the ASBR. n. Route information learned by ospf is sent in the routing mode. n inject the default route into ospf (this is done for learning purposes, and is generally not used in reality) 2. topology

3. equipment Description: vro: cisco 36204. device Configuration command: R1 (config) # int lo 1R1 (config-if) # ip add 192.168.1.1 255.255.255.0R1 (config-if) # no shut www.2cto.com R1 (config-if) # int s1/0R1 (config-if) # ip add 192.168.2.1 255.255.255.0R1 (config-if) # no shutR1 (config) # router ospf 223R1 (config-router) # network 192.168.1.0 0.0.0.255 area 1R1 (config-router) # network 192.168.2.0 0.0.0.255 area 1R2 (config) # int s1/0 R2 (config-if) # ip add 192.1 68.2.2 255.255.255.0R2 (config-if) # no shutR2 (config) # int s1/1R2 (config-if) # ip add 192.168.3.1 255.255.255.0R2 (config-if) # no shutR2 (config-if) # int s1/2R2 (config-if) # ip add 192.168.7.1 255.255.255.0R2 (config-if) # no shutR2 (config) # router ospf 223R2 (config-router) # network 192.168.2.0 0.0.255 area 1R2 (config-router) # network 192.168.3.0 0.0.0.255 area 0R2 (config) # router VPN 223R2 (config-router) # netwo Rk 192.168.7.0R3 (config) # int s1/1R3 (config-if) # ip add 192.168.3.2 255.255.255.0R3 (config-if) # no shut R3 (config-if) # int s1/2R3 (config-if) # ip add 192.168.4.1 255.255.255.0R3 (config-if) # no shutR3 (config) # router ospf 223R3 (config-router) # network 192.168.3.0 0.0.0.255 area 0R3 (config-router) # network 192.168.4.0 0.0.0.255 area 0R4 (config) # int s1/2R4 (config-if) # ip add 192.168.4.2 255.255.255.0R4 (config-I F) # no shutR4 (config-if) # int s1/3R4 (config-if) # ip add 192.168.5.1 255.255.255.0R4 (config-if) # no shutR4 (config) # router ospf 223R4 (config-router) # network 192.168.4.0 0.0.0.255 area 0R4 (config-router) # network 192.168.5.0 0.0.0.255 area 2R5 (config) # int s1/3 R5 (config-if) # ip add 192.168.5.2 255.255.255.0R5 (config-if) # no shutR5 (config-if) # int lo1R5 (config-if) # ip add 192.168.6.1 255.255.255.0R5 (config-if) # No shutR5 (config) # router ospf 223R5 (config-router) # network 192.168.5.0 0.0.255 area 2R5 (config-router) # network 192.168.6.0 0.0.0.255 area 2R6 (config) # int s1/2R6 (config-if) # ip add 192.168.7.2 255.255.255.0R6 (config-if) # no shutR6 (config-if) # int s1/3R6 (config-if) # ip add 192.168.8.1 255.255.255.0R6 (config-if) # no shutR6 (config-if) # router VPN 223R6 (config-router) # network 192.168.7.0R6 (config-router) # Network 192.168.8.0 R7 (config) # int s 1/3R7 (config-if) # ip add 192.168.8.2 255.255.255.0R7 (config-if) # no shutR7 (config-if) # int lo1R7 (config-if) # ip add 192.168.9.1 255.255.255.0R7 (config) # router VPN 223R7 (config-router) # network 192.168.8.0R7 (config-router) # network 192.168.9.0R4 route table: C 192.168.4.0/24 is directly connected, Serial1/2C 192.168.5.0/24 is directly connected, Serial1/3192.168.6.0/32 is Subnetted, 1 subnetsO 192.168.6.1 [110/65] via 192.168.5.2, 00:10:25, Serial1/3192.168.1.0/32 is subnetted, 1 subnetsO IA 192.168.1.1 [110/193] via 192.168.4.1, 00:10:25, serial1/2O IA 192.168.2.0/24 [110/192] via 192.168.4.1, 00:10:25, Serial1/2O 192.168.3.0/24 [110/128] via 192.168.4.1, 00:12:30, serial1/2R4 # www.2cto.com C 192.168.8.0/24 is directly connected, Serial1/3C 192.168.9.0/24 is direc Tly connected, Loopback1D 192.168.7.0/24 [90/2681856] via 192.168.8.1, 00:04:43, Serial1/3 R7 # D 192.168.8.0/24 [90/2681856] via 192.168.7.2, 00:00:24, serial1/2D 192.168.9.0/24 [90/2809856] via 192.168.7.2, 00:00:24, Serial1/2O 192.168.4.0/24 [110/128] via 192.168.3.2, 00:30:14, serial1/1O IA 192.168.5.0/24 [110/192] via 192.168.3.2, 00:30:10, Serial1/11920.6.0/32 is subnetted, 1 subnetsO IA 19 20176.1 [110/193] via 192.168.3.2, 00:28:05, Serial1/1C 192.168.7.0/24 is directly connected, Serial1/2192.168.1.0/32 is subnetted, 1 subnetsO 192.168.1.1 [110/65] via 192.168.2.1, 05:35:43, serial1/0C 192.168.2.0/24 is directly connected, Serial1/0C 192.168.3.0/24 is directly connected, Serial1/1R2 #5. route redistribution on the ASBR: R2 (config) # router VPN 223R2 (config-router) # redistribute ospf 223 metric 1000 100 255 1 1500C 192.168.8.0/24 is directly connected, Serial1/3 www.2cto.com C 192.168.9.0/24 is directly connected, Loopback1D EX 192.168.4.0/24 [170/3609600] via 192.168.8.1, 00:06:27, serial1/3D EX 192.168.5.0/24 [170/3609600] via 192.168.8.1, 00:06:27, Serial1/3192.168.6.0/32 is subnetted, 1 subnetsD EX 192.168.6.1 [170/3609600] via 192.168.8.1, 00:06:27, serial1/3D 192.168.7.0/24 [90/268 1856] via 192.168.8.1, 00:11:07, Serial1/3192.168.1.0/32 is subnetted, 1 subnetsD EX 192.168.1.1 [170/3609600] via 192.168.8.1, 00:06:28, Serial1/3D EX 192.168.2.0/24 [170/3609600] via 192.168.8.1, 00:06:28, Serial1/3D EX 192.168.3.0/24 [170/3609600] via 192.168.8.1, 00:06:28, Serial1/3R7 # R2 (config) # router ospf 223R2 (config-router) # default-information originate metric 200 alwaysO IA 192.168.4.0/2 4 [110/128] via 192.168.5.1, 00:43:46, Serial1/3C 192.168.5.0/24 is directly connected, Serial1/3C 192.168.6.0/24 is directly connected, loopback1191_1.0/32 is subnetted, 1 subnetsO IA 192.168.1.1 [110/257] via 192.168.5.1, 00:43:46, Serial1/3O IA 192.168.2.0/24 [110/256] via 192.168.5.1, 00:43:46, Serial1/3O IA 192.168.3.0/24 [110/192] via 192.168.5.1, at 00:43:46, Serial1/3O * E2 0.0.0.0/0 [110/2 00] via 192.168.5.1, 00:00:04, Serial1/3R5 # www.2cto.com 6. test: R5 # ping 192.168.9.1Type escape sequence to abort. sending 5, 100-byte ICMP Echos to 192.168.9.1, timeout is 2 seconds :!!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 80/163/324 msR7 # ping 192.168.1.1Type escape sequence to abort. sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds :!!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 28/77/160 MS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.