Static Routing details

Source: Internet
Author: User


The static route configuration is clear to everyone. If you do not know Baidu, you can enter the destination address and mask, you can enter the IP address of the next hop router direct connection interface or enter the outbound interface of the local router. The problem is here !! First, let's talk about the differences between the two Commands: www.2cto.com 1: If you fill in the IP address of the next hop router's direct connection interface, the Management Distance of the router is 1; if you enter the outbound interface of the local router, the Management Distance of the router is 0. -- This is not the focus.
2: Local router egress commands can only be used on point-to-point links, such as serial lines. Protocols encapsulated by serial lines on the data link layer generally use HDLC or PPP. If the encapsulated Frame Relay protocol is used because the frame relay link is a non-broadcast Multi-Channel Access link and a multi-channel access link such as Ethernet, the router will not know which router to send the package, the router does not know which IP address to send, so it cannot complete the ARP resolution process. If you do not know the MAC address of the next hop device, it is certainly unable to complete the data encapsulation of the ping package.
The principle of www.2cto.com is the two above, but the outgoing interface of the local router can also be connected, because Cisco has the proxy ARP and static routing of the Ethernet interface. If proxy ARP is cleared, note that the ARP cache should be clear if the original device is used. Actual configuration: The simulator does not support no ip proxy-arp. The actual device connection is usually a static route first, and both are the outbound interfaces of the local router. After all of them are passed ...... Configuration on router1: Router # show ip route -- you can view the route table at the beginning of the ping operation.
Codes: C-connected, S-static, R-RIP, M-mobile, B-BGP
D-OSPF, EX-VPN external, O-OSPF, IA-OSPF inter area
N1-ospf nssa external type 1, N2-ospf nssa external type 2
E1-OSPF external type
I-IS, su-IS summary, L1-IS-level-1, L2-IS level-2
Ia-IS inter area, *-candidate default, U-per-user static route
O-ODR, P-periodic downloaded static route Gateway of last resort is not setS 1.0.0.0/8 is directly connected, FastEthernet0/1
C 2.0.0.0/8 is directly connected, FastEthernet0/1
C 3.0.0.0/8 is directly connected, FastEthernet0/0

Router # clear arp -- clear ARP cache
Router (config) # int f0/1
Router (config-if) # no ip proxy-arp -- clear proxy ARP
Router (config-if) # exit
Router (config-if) # no shut
Router (config-if) # exit
Router (config) # exit
Router # show ip route
Codes: C-connected, S-static, R-RIP, M-mobile, B-BGP
D-OSPF, EX-VPN external, O-OSPF, IA-OSPF inter area
N1-ospf nssa external type 1, N2-ospf nssa external type 2
E1-OSPF external type 1, E2-OSPF external type 2
I-IS, su-IS summary, L1-IS-level-1, L2-IS level-2
Ia-IS inter area, *-candidate default, U-per-user static route
O-ODR, P-periodic downloaded static route Gateway of last resort C 3.0.0.0/8 is directly connected, FastEthernet0/0 -- only directly connected to the network
Www.2cto.com
After the same configuration is done on another vro, it will be disconnected. This is the diagram of the previous ping time: PC1 → PC0 this is the diagram after clearing:

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.