Rip (H3C) for ospf advanced applications)

Source: Internet
Author: User


Rip (H3C) Case 1: 1 job requirements: re-distribute the Routes learned by rip to ospf. Inject the default route into the rip and direct it to ospf to achieve route Summary (summarized on the ABR). Configure the peripheral area and complete the peripheral area.
2. Topology

3. device Introduction: vswitch: huawei quidway S2000 serials router: huawei quidway R2621
4. device Configuration: www.2cto.com switch Configuration: [Quidway] vlan 10 [Quidway-vlan10] description in [Quidway-vlan10] port e0/3 to e0/6 [Quidway-vlan10] quit [Quidway] int Vlan-interface 10 [Quidway-Vlan-interface10] ip add 192.168.1.1 255.255.255.0 [Quidway] vlan 20 [Quidway-vlan20] description out [Quidway-vlan20] port e0/1 [Quidway-vlan20] quit [Quidway] int vlan 20 // enter vlan [Quidway-Vlan-interface20] ip add 192.168.2.1 255.255.255.0 // IP Address Allocation
[Quidway-Vlan-interface20] quit [Quidway] ospf // mode Please note: [Quidway-ospf] area 2 // enter the area of the network to be advertised [Quidway-ospf-area-0.0.0.2] network 192.168.1.0 0.0.0.255 // advertised network [Quidway-ospf-area-0.0.0.2] network 192.168.2.0 0.0.0.255
Vror3 R3 Configuration: www.2cto.com [R3] int e1 [R3-Ethernet1] ip add 192.168.2.2 255.255.255.0 [R3-Ethernet1] int s0 [R3-Serial0] ip add 192.168.3.1 255.255.255.255.0 [R3-Serial0] quit [R3] ospf enable // enable OSPF Protocol [r3] int s0 // enable ospf (all interfaces must be enabled) [R3-Serial0] ospf enable area 0 [R3-Serial0] int e1 [R3-Ethernet1] ospf enable area 2
Vro10 R10 Configuration: www.2cto.com [R10] int s0 [R10-Serial0] ip address 192.168.3.2 24 [R10-Serial0] int s1 [R10-Serial1] ip add 192.168.4.1 24 [R10-Serial1] int e1 [R10-Ethernet1] ip add 192.168.5.1 24 [R10] ospf enable [R10] int s1 [R10-Serial1] ospf enable area 1 [R10-Serial1] int s0 [R10-Serial0] ospf enable area 0 [R10] rip // start rip Protocol [R10-rip] network 192.168.5.0 [r10] int s0 // reset the last end of the serial port! [R10-Serial0] shutdown [r10-Serial0] undo shutdow
Router R5 configuration: [R5] int s1 [R5-Serial1] ip add 192.168.4.2 24 [R5] int loo 1 www.2cto.com // since no wiring, so set loopback interface [R5-LoopBack1] ip add 192.168.8.1 24 // Master Address [R5-LoopBack1] ip add 192.168.9.1 24 sub // configure secondary ip address (to achieve route summary) [R5-LoopBack1] ip add 192.168.10.1 24 sub [R5-LoopBack1] ip add 192.168.11.1 24 sub [R5-LoopBack1] quit [R5] int s1 [R5-Serial1] ospf enable area 1 [R5-Serial1] int lo 1 [R5-LoopBack1] ospf enable area 1 [R5] int s1 www.2cto.com [R5-Serial1] shut [R5-Serial1] undo shut router R9 Configuration: [Router] sysname r9 [r9] int e1 [r9-Ethernet1] ip add 192.168.5.2 24 [r9-Ethernet1] int s0 [r9-Serial0] ip add 192.168.6.1 24 [r9-Serial0] qu [r9] rip // Enabled rip Protocol waiting... RIP is running [r9-rip] network 192.168.5.0 // advertised network [r9-rip] network 192.168.6.0 router R12 Configuration: [r12-Ethernet0] int s0 [r12-Serial0] ip add 192.168.6.2 24 [r12-Serial0] int e1 [r12-Ethernet0] ip add 192.168.7.1 24 [r12] ripwaiting... RIP is running [r12-rip] network 192.168.6.0 [r12-rip] network 192.168.7.0 [r12] int s0 // This interface is reset, otherwise [r12-Serial0] shutdown [r12-Serial0] undo shutdow www.2cto.com 5. route redistribution: [R10] ospf enable [R10-ospf] import-route direct // publish a direct connection route [R10-ospf] import-route rip // send the route information learned by rip to OSPF [R10] int null 0 // you must first create NULL0 [R10] ip route 0.0.0.0 0 null 0 // use a default route to point to this interface, [R10] rip [R10-rip] import static publish route table information: [r9] dis ip routRouting Tables: destination/Mask Proto Pref Metric Nexthop Interface0.0.0.0/0 RIP 100 1 192.168.5.1 failed/8 Direct 0 0 127.0.0.1 failed/32 Direct 0 0 127.0.0.1 LoopBack0192.168.5.0/24 Direct 0 0 192.168.5.2 ethernet1192.165.2/32 Direct 0 0 127.0.0.1 LoopBack0192.168.6.0/24 Direct 0 0 192.168.6.2 Serial0192.168.6.1/32 Direct 0 0 127.0.0.1 failed/32 Direct 0 0 192.168.6.2 Serial0 <Quidway> dis ip rout www.2cto.com Routing Table: public netDestination/Mask Protocol Pre Cost Nexthop Interface127.0.0.0/8 DIRECT 0 0 127.0.0.1 Mask/32 DIRECT 0 127.0.0.1 Mask/24 DIRECT 0 0 192.168.2.1 Vlan-interface20192.168.2.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0192.168.3.0/24 OSPF 10 1572 192.168.2.2 Vlan-interface20192.168.3.1/32 O_ASE 150 1 192.168.2.2 Vlan-interface20192.168.4.0/24 OSPF 10 3134 192.168.2.2 Vlan-interface20192.168.4.2/32 O_ASE 150 1 192.168.2.2 Vlan-interface20192.168.5.0/24 O_ASE 150 1 192.168.2.2 Vlan-interface20192.168.6.0/24 O_ASE 150 1 192.168.2.2 Vlan-interface20192.168.8.0/ 24 OSPF 10 4696 192.168.2.2 Vlan-interface20192.168.9.0/24 OSPF 10 4696 192.168.2.2 Vlan-interface20192.168.10.0/24 OSPF 10 4696 192.168.2.2 Vlan-interface20192.168.11.0/24 OSPF 10 4696 192.168.2.2 Vlan-interface20 6. configure the peripheral area: [Quidway] ospf [Quidway-ospf] area 2 [Quidway-ospf-area-0.0.0.2] stub [R3] ospf [R3-ospf] stub cost 100 area 2 [R10-ospf] abr-summary 192.168.8.0 mask 255.252.0 area 1 view route table: [R3] dis ip routRouting Tables: destination/Mask Proto Pref Metric Nexthop failed/8 Direct 0 0 127.0.0.1 failed/32 Direct 0 0 127.0.0.1 failed/24 Direct 0 0 192.168.2.2 ethernet1192.162.2/32 Direct 0 0 127.0.0.1 LoopBack0192.168.3.0/24 Direct 0 0 0 192.168.3.2 Serial0192.168.3.1/32 Direct 0 0 127.0.0.1 random/32 Direct 0 0 192.168.3.2 random/24 OSPF 10 3124 192.168.3.2 Serial0192.168.4.2/32 O_ASE 150 1 192.168.3.2 Serial0192.168.5.0/24 O_ASE 150 1 192.168.3.2 Serial0192.168.6.0/24 o_ASE 150 1 192.168.3.2 Serial0192.168.8.0/22 OSPF 10 4686 192.168.3.2 Serial0 7. configure the full ending area on the ABR: [R3-ospf] stub cost 100 area 2 no-summary [Quidway] dis ip routRouting Table: public netDestination/Mask Protocol Pre Cost Nexthop Interface0.0.0.0/0 OSPF 10 110 192.168.2.2 Vlan-interface20127.0.0.0/8 DIRECT 0 0 127.0.0.1 Mask/32 DIRECT 0 0 127.0.0.1 InLoopBack0192.168.2.0/24 DIRECT 0 0 192.168.2.1 Vlan-interface20192.168.2.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
8. Test: www.2cto.com local machine:


C: \ Users \ Administrator & gt; ping 192.168.7.253 pinging 192.168.7.253 data with 32 bytes: reply from 192.168.7.253: byte = 32 time = 41 ms TTL = 59 reply from 192.168.7.253: byte = 32 time = 37 ms TTL = 59 reply from 192.168.7.253: byte = 32 time = 37 ms TTL = 59 reply from 192.168.7.253: bytes = 32 time = 37 ms TTL = 59192.168.7.253 Ping statistics: Packet: Sent = 4, received = 4, lost = 0 (0% lost ), estimated round-trip time (in milliseconds): Minimum = 37 ms, maximum = 41 ms, average = 38 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.