The OSPF routing protocol is currently the mainstream IGP protocol, recognized by the majority of customers and actually used in a wide range of industries, such as education, finance, health care, government, carriers, enterprises, etc., regardless of the complexity or simplicity of the network model, the number of devices, the number of routing entries, OSPF can be very good to meet the various types of needs, he has a wealth of routing policy control functions, hierarchical design is also a big part of the His rich routing policy control functions, hierarchical design is also a major advantage, so in the network deployment of IGP protocols, you can give priority to OSPF networking.
1, topology diagram 2, the purpose of the experiment: the whole network routers running ospf protocol, so that the whole network can be reached by routing3, configuration ideas:
?1) build a good topology diagram environment, marked out the planned IP address
?2) modify the default name of the network device, configure the IP address
?3) configure the OSPF route, so that the network segments to achieve interoperability between each other.
?3) Configure OSPF routing, so that the network segments can realize mutual access
? 4, the configuration process:
Step 1: modify the default name of the network device, configure the IP address
?1) Configure the PC information? (omitted)
2) Configure the default name and interface IP of router AR1
<Huawei>sys //Enter system view mode
Enter system view, return user view with Ctrl+Z.
[Huawei] sysname AR1 //Change the name for the device
[AR1]int g0/0/0 ? //enter interface mode
[AR1-GigabitEthernet0/0/0]ip add 192.168.1.2 24
[AR1-GigabitEthernet0/0/0]int g0/0/1
[AR1-GigabitEthernet0/ 0/1]ip add 192.168.12.1 24
3) Configure router AR2 default name and interface IP
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[ Huawei]sysname AR2
[AR2]int g0/0/0
[AR2-GigabitEthernet0/0/0]i add 192.168.12.2 24
[AR2-GigabitEthernet0/0/0]int g0/0/ 1
[AR2-GigabitEthernet0/0/1]ip add 192.168.23.1 24
[AR2-GigabitEthernet0/0/1]quit
4) Configure the router AR3 default name and interface IP
< Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR3
[AR3]int g0/0/0
[AR3- GigabitEthernet0/0/0]ip?add 192.168.23.2 24
[AR3-GigabitEthernet0/0/0]int g0/0/1
[AR3-GigabitEthernet0/0/1]ip add 192.168. 2.2 24
[AR3-GigabitEthernet0/0/1]quit
Step 2: Configure RIP routes to enable interconnection between network segments over the link
1) Configure OSPF routes for router AR1
[AR1]ospf router-id 1.1. 1.1.1 //Enable OSPF with router id 1.1.1.1
[AR1-ospf-1]area 0 //Area 0
[AR1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.0.255 //Publish the directly connected network segment with the wildcard
[AR1-ospf-1-area-0.0.0.0]network 192.168.12.0 0.0.0.0.255
Note: The wildcard 0.0.0 indicates that this segment should be exactly the same as 192.168.1, and the last is 255 to indicate that it can be a value in the range of 1-255, i.e. 192.168. .1.0/24
2) Configure OSPF routing for router AR2
[AR2]ospf router-id 2.2.2.2
[AR2-ospf-1]area 0
[AR2-ospf-1-area-0.0.0.0]network 192.168.12.0 0.0.0.255
[AR2-ospf-1-area-0.0.0.0]area 1
[AR2-ospf-1-area-0.0.0.1]network 192.168.23.0 0.0.0.255
The presence of this message indicates that the neighbor was successfully established
3) Configure OSPF routing for router AR3
[AR3]ospf router-id 3.3.3.3
[AR3-ospf-1]area 1
[AR3-ospf-1-area-0.0.0.1] network 192.168.23.0 0.0.0.255
[AR3-ospf-1-area-0.0.0.1]network 192.168.2.0 0.0.0.0.255
1. To view the routing table of each router, enter the command dis ip routing-table p>
1) Router AR1: [AR1]dis ip routing-table
2) Router AR2: [AR2]dis ip routing-table
3) Router AR3: [AR3]dis ip routing-table
4) Test two hosts Connectivity:
5) Finally, take a look at the packet capture information:
Through the packet capture information, you can see that the hello message issued by OSPF is also a multicast message, and the multicast address is 224.0.0.5
So far, the OSPF routing infrastructure configuration is complete
[if !supportLists]1, ? [endif]Scope of application: Applied to moderate-sized networks that can support up to several hundred NEs. such as small and medium-sized enterprise networks.
[if !supportLists]2, ? [endif]Convergence speed: Convergence speed is fast, less than 1s.
[if !supportLists]3, ? [endif]scalability: by dividing the area to extend the network support capacity.
[if !supportLists]4.? [endif]No self-loop: Since OSPF uses the shortest path tree algorithm to calculate routes based on the collected link states, the algorithm itself ensures that no self-loop routes are generated.
[if !supportLists]5, ? [endif] Area Division: Allows the network of an autonomous system to be divided into areas for management. Routing information transmitted between areas is further abstracted, thus reducing the occupied network bandwidth.
[if !supportLists]6.? [endif]Multicast sending: protocol messages are sent on certain types of links with multicast addresses, reducing interference with other devices.