GAR router OSPF Experiment

Source: Internet
Author: User

GAR router OSPF experiment R1: ZXR10_R1 # configure terminal // enter global configuration mode ZXR10_R1 (config) # interface loopback1 // enter port configuration mode ZXR10_R1 (config-if) # ip adderss 10.1.1.1 255.255.255.255 // configure loopback1 address ZXR10_R1 (config-if) # exit // return global configuration mode ZXR10_R1 (config) # interface fei_1/1 // enter the port configuration mode ZXR10_R1 (config-if) # ip adderss 192.168.1.1 255.255.255.0 // configure the port connected to R2 with the ip address ZXR10_R1 (config-if) # exit // return global configuration mode ZXR10_R1 (config) # interface fei_0/1 // access end Port Configuration Mode ZXR10_R1 (config-if) # ip adderss 192.168.2.1 255.255.255.0 // configure the port connected to PC1 with the ip address ZXR10_R1 (config-if) # exit // return global configuration mode ZXR10_R1 (config) # router ospf 10 // enter the ospf route configuration mode. The process number is 10ZXR10_R1 (config-router) # router-id 10.1.1.1 // configure loopback1 as an ospf router-idZXR10_R1 (config-router) # network 192.168.1.0 0.0.0.255 area 0 // Add the port (which can be a port address or network segment) connected to R2 to the ospf backbone domain area 0, the backbone domain must be ZXR10_R1 (config-router) in ospf # redistribute connected // Re-distribution direct link (R2.) R2: similar to R1, The loopback1 address on R2. It is set to 10.1.2.1/32. Pay attention to the changes in the IP address of the corresponding port as shown in the experiment diagram. Experiment 2: based on experiment 1, add the ports connecting R1/R2 and PC to ospf area 20/30 respectively. R1: ZXR10_R1 # configure terminal // enter global configuration mode ZXR10_R1 (config) # interface loopback1 // enter port configuration mode ZXR10_R1 (config-if) # ip adderss 10.1.1.1 255.255.255.255 // configure loopback1 address ZXR10_R1 (config) # interface fei_1/1 // enter the port configuration mode ZXR10_R1 (config-if) # ip adderss 192.168.1.1 255.255.255.0 // configure the port connected to R2 with the ip address ZXR10_R1 (config-if) # exit // return the global configuration mode ZXR10_R1 (config) # interface fei_0/1 // enter the port configuration mode ZXR10_R1 (config-if) # ip adderss 192.168.2.1 255.255.0 // configure the port connected to PC1 with the IP address ZXR10_R1 (config-if) # exit // return to global configuration mode ZXR10_R1 (config) # router ospf 10 // enter the ospf route configuration mode, process number is 10ZXR10_R1 (config-router) # router-id 10.1.1.1 // configure loopback1 as the ospf router-idZXR10_R1 (config-router) # network 192.168.1.0 0.0.0.255 area 0 // Add the port (which can be a port address or network segment) connected to R2 to the ospf backbone domain area 0, the backbone domain must be ZXR10_R1 (config-router) in ospf # network 192.168.2.0 0.0.0.255 area 20 // Add the port connected to PC1 to ospf area 20R2: And R1 Similarly, the loopback1 address on R2 is set to 10.1.2.1/32. Pay attention to the changes in the IP address of the corresponding port as shown in the experiment diagram. Add the port connecting to PC2 to ospf area 30. 14.7 verification method Experiment 1: ZXR10_R1 # sho ip ospf neighbor // view ospf neighbor relationship establishment OSPF Router with ID (10.1.1.1) (Process ID 100) neighbor 10.1.2.1In the area 0.0.0.0via interface fei_1/1 192.168.1.2Neighbor is DRState FULL, priority 1, Cost 1 Queue count: Retransmit 0, DD 0, LS Req 0 Dead time: 00: 00: 37In Full State for 00:00:35 // FULL State indicates successful creation. Note: If a router does not manually configure a router ID, the system automatically selects one from the IP address of the current interface. The selection principle is as follows: if the router is configured with the loopback interface, the loopback interface is preferred; if there is no loopback interface, the minimum IP address of the interface is selected from the physical interface that has been UP. For this principle, you can verify it on the vro. Because the automatically elected Router ID changes with the IP address, this will interfere with the normal operation of the Protocol. Therefore, we strongly recommend that you manually specify the Router ID. ZXR10_R1 # show ip route IPv4 Routing Table: dest Mask Gw Interface Owner pri metric192.168.1.0 255.255.255.0 192.168.1.1 fei_1/1 direct 0 0192.168.1.1 255.192.168.1.1 fei_1/1 address 0 0192.168.2.0 255.255.255.0 192.168.2.1 255./ 1 direct 0 0192.168.2.1 255.192.168.2.1 255./ 1 address 0 0192.168.3.0 255.255. 192.168.1.2 fei_1/1 ospf 110 20ZXR10_R1 # debug ip ospf // view he Send and receive OSPF adjacency events debugging is on 03: 35: 34: OSPF: Rcv hello from 192.168.1.2 area 0.0.0.0 on intf 192.168.1.103: 35: 34: OSPF: End of hello processing03: 35: 41: OSPF: Send hello to area 0.0.0.0 for all nbrs of intf 192.168.1.1 fei_1/1 Experiment 2: ZXR10_R1 # show ip routeIPv4 Routing Table: dest Mask Gw Interface Owner pri metric192.168.1.0 255.255.255.0 192.168.1.1 fei_1/1 direct 0 0192.168.1.1 255.25 5.20.255 192.168.1.1 fei_1/1 address 0 0192.168.2.0 255.255.255.0 192.168.2.1 fei_0/1 direct 0 0192.168.2.1 255.192.168.2.1 fei_0/1 address 0 0192.168.3.1 255.192.168.1.2 fei_1/1 ospf 110 2 can be seen and the routing metric in Experiment different values, do you know why? For other tasks, refer to Lab 1's verification. 14.8 TIPS we recommend that you use the loopback address as the router-id of ospf.

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.