Describes in detail the specific settings of Static Routing Protocols. Comparison of Static Routing Protocols has been ongoing. Today, we will introduce the basic status, password settings, and IP address settings of the Static Routing Protocol. For vro settings, please refer to the relevant documentation. This article will not be detailed.
Let's look back at the created route table. There are six table items:
◆ 127.0.0.1 255.255.255.255 127.0.0.1 UH lo0
◆ 201.66.37.0 255.255.255.0 201.66.37.74 U eth0
◆ 201.66.39.0 255.255.255.0 201.66.39.21 U eth1
◆ Default 0.0.0.0 201.66.39.254 UG eth1
◆ 73.0.0.0 255.0.0.0 201.66.37.254 UG eth0
◆ 91.32.74.21 255.255.255.255 201.66.37.254 UGH eth0
Static Routing Protocol the network diagram is as follows:
Static Routing Protocol
How are these table items obtained? The first one is added by the routing software when the route table is initialized. The second and third are automatically created when the network adapter is bound to an IP address. The other three must be manually added. In a UNIX system, this is done by running the route command, which can be manually executed by the user or by running the rc Script at startup. The above method involves Static Routing, which is usually created at startup and will not be changed without manual intervention.
Static Routing Protocol
Both the host and gateway can use dynamic routing technology, which allows the route table to be dynamically changed. Dynamic Routing requires the routing protocol to add and delete route table items. The route table still works the same as static routing, but its addition and deletion are automatic.
Static Routing Protocol
There are two routing protocols: internal and external. Internal protocols are routed in self-made systems (AS), while external protocols are routed between self-made systems. Self-made systems are generally managed under unified control, such as large companies or universities. Small websites are often part of the self-developed systems of their Internet service providers.
Here we only discuss internal protocols, and few people even hear about external protocols. The most common External protocols are the External Gateway Protocol EGP (External Gateway Protocol) and the Border Gateway Protocol BGP (Border Gateway Protocol). BGP is a newer Protocol and is gradually replacing EGP.
Static Routing Protocol: ICMP redirection
ICMP is generally not regarded as a routing protocol, but ICMP redirection works in a similar way as the routing protocol, so we will discuss it here. Assume that the route table of the preceding six table items is available, and the group is sent to 201.66.43.33. Check the route table. Except for the default route, this does not match any route.
The Static Routing Protocol sends a route through 201.66.39.254 (trip 1). However, the router knows that all the packets sent to the subnet 201.66.43.0 should pass 201.66.39.253. Therefore, it forwards the group to the appropriate router (trip 2 ). However, if the host directly sends the group to 201.66.39.253, the efficiency will be improved (trip 3 ). For example:
Because the router sends the group back to the group from the same interface, it knows that there is a better route. The router can use ICMP redirection to instruct the host to use the new route. Although the vro knows that all groups sent to the .66.43.0 subnet should pass 201.66.39.253, it usually only sends ICMP redirection to specific hosts. In this example, 201.66.43.33 ). The host creates a new table item in the route table:
◆ 201.66.43.33 255.255.255.255 201.66.39.253 UGHD eth1
◆ Note Mark D. Set this flag for all routes created by ICMP redirection. In the future, such groups will be sent through a new route (trip 3 ).