ក្រុមការងារយើងខ្ញុំនិងខិតខំសិក្សារស្រាវជ្រាវចំនេះដឹងបន្ថែមទៀតសំរាប់លោកអ្នក សូមអរគុណសំរាប់ការគាំទ្រ !

Static Route Configuration with Exit Interface

Static Route Configuration with Exit Interface
Overview
If you configured static route purpose to outgoing interface, forwarding router assume destination address is directly
connected to it interface and router can try and notice the layer 2 address of the destination by causing arp request out
of the interface to the destination address just in case of ethernet or searching for a static/dynamic map entry within the
mapping table in case of frame-relay.
Example: IP route 2.2.2.0 255.255.255.0 s0/0
For routing packet to the destination address 2.2.2.2, router assumes host 2.2.2.2 is directly connected to the interface
s0/0 and it needs layer 2 mac address 2.2.2.2.
In general, interfaces will be point to point or multi-point. The higher than mentioned conditions work otherwise in
situations of point to point and multipoint interface.
In point to point interface, by definition 2 devices are directly connected, therefore just in case if you configure static
route inform to outgoing interface or next hop IP address doesn’t create a distinction, router uses layer 2 address of
next hop IP address of interface for routing packet to each destination address.
In multipoint interface, by definition interface will have multiple devices connected to that. therefore as mention higher
than in purpose variety 2, if you put together static route point to next-hop, router want layer 3 to layer 2 resolution for
every destination prefixes. LAN is AN example of multi-point interfaces whereas Frame-relay and ATM will be multipoint
interface or point to point looking on the configuration.
Topology




Configuration
R1
Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 1/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#ip route 192.168.3.0 255.255.255.0 serial 1/0
R2
Router>enable
Router#configure terminal
Router(config)#hostname R2
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 1/1
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#ip route 192.168.1.0 255.255.255.0 serial 1/1
Verified Connectivity
Ping from PC1 to PC2
Connection should be successful


EmoticonEmoticon