CCNP experiment: tunneling technology solves the problem of OSPF region segmentation

Source: Internet
Author: User

[Experimental environment] veryhuo.com

C3640-IK9O3S-M Version 12.4 (10) veryhuo.com

[PURPOSE]

Fire Network

The tunneling technology solves the problem of OSPF region segmentation.

[Experiment topology]

Liehuo.net

Veryhuo.com

[Experiment description]

Liehuo.net

Area 2 is not directly connected to Area 0. By creating a tunnel interface on R1 and R2, R2 directly accesses Area 0 through a tunnel to solve the problem of Area segmentation. Veryhuo.com

[Tutorial] liehuo.net

1. Basic R1 Configuration

Liehuo.net

!
Interface Loopback0
Ip address 1.1.1.1 255.255.255.255
!
Interface Serial0/0
Ip address 12.0.0.1 255.255.255.0
Clock rate 64000
!
Router ospf 110
Router-id 1.1.1.1
Network 1.1.1.1 0.0.0.0 area 0
Network 12.0.0.0 0.0.0.255 area 1
! Liehuo.net

2. R2 basic configuration veryhuo.com

!
Interface Serial0/0
Ip address 12.0.0.2 255.255.255.0
!
Interface Serial0/1
Ip address 23.0.0.1 255.255.255.0
Clock rate 64000
!
Router ospf 110
Router-id 2.2.2.2
Network 12.0.0.0 0.0.0.255 area 1
Network 23.0.0.0 0.0.0.255 area 2
!

Veryhuo.com

3. R3 basic configuration veryhuo.com

!
Interface Loopback0
Ip address 3.3.3.3 255.255.255.255
!
Interface Serial0/1
Ip address 23.0.0.2 255.255.255.0
!
Router ospf 110
Router-id 3.3.3.3
Log-adjacency-changes
Network 3.3.3.3 0.0.0.0 area 2
Network 23.0.0.0 0.0.0.255 area 2
! Powerful fireworks

In this case, Area 2 cannot obtain route information because it is not directly connected to Area 0.

4. Create a tunnel interface on R1 pointing to R2 liehuo.net

// Create a tunnel interface with any interface id
Interface Tunnel1
// Set the logical address for the tunnel interface, which is in the same network segment as the Peer logical interface.
Ip address 192.168.1.1 255.255.255.0
// Set the tunnel source as a local Interface
Tunnel source 12.0.0.1
// Set the tunnel purpose as the peer interface
Tunnel destination 12.0.0.2 liehuo.net

5. Create a tunnel interface on R2 pointing to R1

Lie # fire # Network

Interface Tunnel1
Ip address 192.168.1.2 255.255.255.0
Tunnel source 12.0.0.2
Tunnel destination 12.0.0.1 liehuo.net

6. Test Tunnel

Lie-fire-network

// Ping the logic address of the Peer tunnel on R2. The tunnel can be created as long as there is a route between the tunnel source and the destination. In this case, R2 is directly attached to R1.
R2 # ping 192.168.1.1
Type 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 = 16/33/84 MS fire net

7. On R2, the tunnel interface is declared as ospf area 0 strong # fire # Network

Router ospf 110
Network 192.168.1.0 0.0.0.255 area 0

8. Check the R1 route table and observe that Area 2 has changed to IA, which proves the conclusion above.
Strong & fire & Network

R1 # sh ip ro veryhuo.com

1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O ia 3.3.3.3 [110/129] via 12.0.0.2, 00:00:30, Serial0/0
23.0.0.0/24 is subnetted, 1 subnets
O ia 23.0.0.0 [110/128] via 12.0.0.2, 00:00:30, Serial0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, Tunnel1 Fire Network

9. Check the R3 route table. Similarly, liehuo.net

R3 # sh ip ro le'fire' Network

3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
23.0.0.0/24 is subnetted, 1 subnets
C 23.0.0.0 is directly connected, Serial0/1
12.0.0.0/24 is subnetted, 1 subnets
O ia 12.0.0.0 [110/128] via 23.0.0.1, 00:00:46, Serial0/1
O ia 192.168.1.0/24 [110/11175] via 23.0.0.1, 00:00:46, Serial0/1 veryhuo.com

10. Modify the default bandwidth of the tunnel interface.

R1 # sh int tunnel 1
Tunnel1 is up, line protocol is up
Hardware is Tunnel
Internet address is 192.168.1.1/24
MTU 1514 bytes, BW 9 Kbit, DLY 500000 usec,
Reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel source 12.0.0.1, destination 12.0.0.2

Lie # fire # Network

The default tunnel interface bandwidth is only 9 Kbit. In actual applications, you can use the ip ospf cost under the interface to modify the measured value of veryhuo.com under ospf.

R1 (config) # int tunnel 1
R1 (config-if) # ip ospf cost 10 liehuo.net

R2 (config) # int tunnel 1
R2 (config-if) # ip ospf cost 10 veryhuo.com

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.