07-24-2012 12:32 AM - edited 03-07-2019 07:56 AM
hi ,
i put the command on my router
#
ip address 10.160.150.3 255.255.255.0
when i type #show ip route
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.160.150.0/24 is directly connected, GigabitEthernet1/1
L 10.160.150.3/32 is directly connected, GigabitEthernet1/1
as u see above , it gives me directly connedted /24 and locally connected /32
my question is why the locally connected /32 has bee displayed ???
in habit i dont see locally connected ???
regrads
Solved! Go to Solution.
07-24-2012 01:22 AM
Hello Ahmed,
yes on newer IOS we should see this. So if you have routers with different IOS versions some may show this L code and others may do not show this code.
Hope to help
Giuseppe
07-24-2012 01:07 AM
Hi Ahmed,
Please see the below comments which would clarify about the Local host (L) in your routing table.
Having local host routes in the IPv4 and IPv6 routing table for IP addresses of the router's interfaces, is normal. Their purpose is to create a corresponding CEF entry, which is a receive entry, so that the packets destined to this IP address can be procesed by the router itself. These routes cannot be redistributed into any routing protocol.
For more information go through the below link about Local host in routing table. Thanks.
https://supportforums.cisco.com/docs/DOC-16385
Please do rate if the given information helps.
By
Karthik
07-24-2012 01:09 AM
Hello Ahmed,
this is a newer version of IP routing table. The code L locally connected has been introduced to indicate the IP address of a router interface and you see the netmask is /32.
This is done to reflect how CEF works within the device: CEF mantains several tables including a neighbor cache, that is a list of IP next-hops to be used to build CEF entries.
For the node knowing what IP addresses belong to its own interfaces has a value, because for example when sending a packet out of an interface the source MAC address that has to be used is that of the interface itself and the destination MAC address is that of the end host or that of an IP next-hop.
So you can see these entries as pointers to other information that the node uses internally to perform packet switching.
Hope to help
Giuseppe
07-24-2012 01:12 AM
thanks very much
i want to ask , the newer routing table depends on ios or router model ??
regards
07-24-2012 01:22 AM
Hello Ahmed,
yes on newer IOS we should see this. So if you have routers with different IOS versions some may show this L code and others may do not show this code.
Hope to help
Giuseppe
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide