In-depth introduction to configuring static routes by default

Source: Internet
Author: User

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

 
 
  1. Router> enable
  2. Router # configt
  3. Router (config) # hostnameR1
  4. R1 (config) # interfacee0
  5. R1 (config-if) # ipadd172.16.3.1255.255.255.0
  6. R1 (config-if) # noshutdown
  7. R1 (config-if) # exit
  8. R1 (config) # ints0
  9. R1 (config-if) # ipadd172.16.1.1255.255.255.0
  10. R1 (config-if) # clockrate56000
  11. R1 (config-if) # noshutR1 (config-if) # exit
  12. R1 (config) # iproute0.0.0.00.0.0.0172.16.1.2 Add the default route
  13.  

Configure static Route 2

 
 
  1. Router>enable  
  2. Router#configterminal  
  3. Router(config)#hostnameR2  
  4. R2(config)#interfacee0  
  5. R2(config-if)#ipadd172.16.4.1255.255.255.0  
  6. R2(config-if)#noshut  
  7. R2(config-if)#exit  
  8. R2(config)#interfaces0  
  9. R2(config-if)#ipadd172.16.1.2255.255.255.0  
  10. R2(config-if)#noshut  
  11. R2(config-if)#ints1  
  12. R2(config-if)#ipadd172.16.2.1255.255.255.0  
  13. R2(config-if)#noshut  
  14. R2(config-if)#clockrate56000  
  15. R2(config-if)#exit  
  16. R2(config)#iproute172.16.3.0255.255.255.0172.16.1.1  
  17. R2(config)#iproute172.16.5.0255.255.255.0172.16.2.2  
  18.  

Configure Static Routing 3

 
 
  1. Router> enable
  2. Router # configt
  3. Router (config) # hostR3
  4. R3 (config) # inte0
  5. R3 (config-if) # ipadd172.16.5.1255.255.255.0
  6. R3 (config-if) # noshut
  7. R3 (config-if) # exit
  8. R3 (config) # ints0
  9. R3 (config-if) # ipadd172.16.2.22.16255.255.0
  10. R3 (config-if) # clockrate56000
  11. R3 (config-if) # noshutdown
  12. R3 (config-if) # exit
  13. 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)
 

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.