GAR router Static Routing experiment R1: zxr10_R1 # configure terminal // enter the global configuration mode zxr10-R1 (config) # interface fei_1/1 // enter the port configuration mode, this port is connected to the R2zxr10-R1 (config-if) # ip address 10.1.1.2 255.255.255.0 // configure the IPzxr10-R1 of the port (config-if) # exit // return the global configuration mode zxr10-R1 (config) # interface fei_0/1 // This port is connected to the PC1zxr10-R1 (config-if) # ip address 30.1.1.1 255.255.255.0zxr10-R1 (config-if) # exitzxr10-R1 (config) # ip route 0.0.0.0 0.0.0.0 10.1.1.1 // configure the default route to access all network addresses The next hop is 10.1.1.1R2: zxr10-R2 # configure terminalzxr10-R2 (config) # interface fei_0/1 // The port is connected to the R1zxr10-R2 (config-if) # ip address 10.1.1.1 255.255.255.0zxr10-R2 (config-if) # exitzxr10-R2 (config) # interface fei_1/1 // This port is connected to the PC2zxr10-R2 (config-if) # ip address 255.1.1.1 255.255.255.0zxr10-R2 (config-if) # exitzxr10-R2 (config) # interface fei_2/1 // This port is connected to the PC3zxr10-R2 (config-if) # ip address 40.1.1.1 255.255.255.0zxr10-R2 (config-if) # Exitzxr10-R2 (config) # ip route 30.1.1.0 route 255.255.0 10.1.1.2 // configure Static Routing, the next hop to access the 30.1.1.0 CIDR block is 10.1.1.212.7 verification method Zxr10-R1 # show ip route // view the created route entries, where static represents a static route IPv4 Routing Table: dest Mask Gw Interface Owner pri 255.0.0.0.0 10.1.1.2 fei_1/1 static 1 010.1.1.0 255.255.255.0 10.1.1.2 fei_1/1 direct 0 0 10.1.1.2 255.10.1.1.2 fei_1/1 address 0 0 30.1.1.0 255.255.255.0 30.1.1.1 /1 direct 0 0 30.1.1.1 255.255.255.255 30.1.1.1 fei_0/1 address 0 0ZXR10-R2 # show ip route IPv4 Routing Table: dest Mask Gw Interface Owner pri 255.255.255.255.0 10.1.1.1 255./ 1 direct 0 010.1.1.1 255.10.1.1.1 255./ 1 address 0 255.255.255.255.0 255.1.1.1 fei_1/1 direct 0 0255.1.1.1 255.1.1.1 fei_1/1 address 0 255.255.255.255.255.0 10.1.1.1 fei_0/1 static 1 40.1.1.0 255.255.0 40.1.1.1 fei_2/1 direct 0 040.1.1.1 255.255.255.255 40.1.1.1 fei_2/1 address 0 Note: From the experiment, we can see that the priority of static routes is 1, and the priority of direct Connect routes is 0, the priority of a static route is smaller than that of a directly connected route. the default route is also called the default route. It is also a special static route. When all other routes in the route table fail to be selected, the default route is used. the default route on router R1 can also be configured as two Static Routing ip addresses route 1.1.0 255.255.255.0 10.1.1.1 and ip route 40.1.1.0 255.255.255.0 10.1.1.1. You can try it. 12.8 experiment conclusion PC 1 can communicate with PC 2 and PC 3.