By default, you need to pay special attention to how to effectively configure static routes. Here we will give you a detailed introduction to this problem. Default route: the default route (default route) is a special type of static route.
When the destination to which a data packet is routed does not have corresponding entries in the routing table, or it is difficult to maintain more routing information in the route table, the default route can be used. the command Iproute is still used to define the default route, but the target network and subnet mask use special parameters. The target network uses 0.0.0.0 (indicating a non-existent network, and uses a special subnet mask to indicate the default network ), the subnet mask uses 0.0.0.0 (representing the Special mask of the default route ). command showiproute to view the route table. You can verify the static route or configure the static route by default.
Configure static route R1
- Router> enable
- Router # configt
- Router (config) # hostnameR1
- R1 (config) # interfacee0
- R1 (config-if) # ipadd172.16.3.1255.255.255.0
- R1 (config-if) # noshutdown
- R1 (config-if) # exit
- R1 (config) # ints0
- R1 (config-if) # ipadd172.16.1.1255.255.255.0
- R1 (config-if) # clockrate56000
- R1 (config-if) # noshutR1 (config-if) # exit
- R1 (config) # iproute0.0.0.00.0.0.0172.16.1.2 Add the default route
-
Configure static Route 2
- Router>enable
- Router#configterminal
- Router(config)#hostnameR2
- R2(config)#interfacee0
- R2(config-if)#ipadd172.16.4.1255.255.255.0
- R2(config-if)#noshut
- R2(config-if)#exit
- R2(config)#interfaces0
- R2(config-if)#ipadd172.16.1.2255.255.255.0
- R2(config-if)#noshut
- R2(config-if)#ints1
- R2(config-if)#ipadd172.16.2.1255.255.255.0
- R2(config-if)#noshut
- R2(config-if)#clockrate56000
- R2(config-if)#exit
- R2(config)#iproute172.16.3.0255.255.255.0172.16.1.1
- R2(config)#iproute172.16.5.0255.255.255.0172.16.2.2
-
Configure Static Routing 3
- Router> enable
- Router # configt
- Router (config) # hostR3
- R3 (config) # inte0
- R3 (config-if) # ipadd172.16.5.1255.255.255.0
- R3 (config-if) # noshut
- R3 (config-if) # exit
- R3 (config) # ints0
- R3 (config-if) # ipadd172.16.2.22.16255.255.0
- R3 (config-if) # clockrate56000
- R3 (config-if) # noshutdown
- R3 (config-if) # exit
- R3 (config) # iproute0.0.0.00.0.0.0171_2.1 Add the default route
Tip: in the simulator. The clock is set in each vro, but in reality it is not required. The clock is provided by the carrier, and the clock is set on the DCE. DTE: dateterminalequipment (data terminal device). DTE provides or accepts data. PC is a DTE. DTE and DCE determine the method: DTE: is a data terminal device, such as a terminal, is a broad concept. A pc can also be a terminal. (Generally, the DTE devices in the WAN are routers and terminal hosts.) DCE is a data communication device, such as Modem, which connects to the DTC device. Generally, DEC devices in the WAN include CSU/DSU, Wan switch, and Modem)