09-01-2020 02:26 AM
I have two routers in packet tracer
R1 and R2 having g0/1 ip address of 18.200.250.1 and 18.201.250.1 with both subnet mask of 255.255.255.0
Both routers have serial DCE cable connected
R1 with s0/0/1 with ip address of 192.168.2.1 255.255.255.252 and R2 with s0/0/0 with ip address 192.168.2.2 255.255.255.252
R2 has 2 loop addresses loop address 0, lo0 with ip address of 168.17.101.33 255.255.255.224 and loop address 1,lo1 with 168.17.101.65 255.255.255.224
Now i am trying to do static route on R1 for lo0 with next hop static route(recursive static route)
and directly connected static route on lo1 but not sure what command do i use for them both
I am confused and need help Thanks in advance
Solved! Go to Solution.
09-01-2020 03:27 AM
Hello @hussainabbas1442 ,
when you configure static routes you need to refer to the subnet address and not the address on the loop0/loop1 of the other router.
so you should use
ip route 168.17.101.32 255.255.255.224 192.168.2.2
this should be accepted
the second static route should be:
ip route 168.17.101.64 255.255.255.224 s0/0/1
it will give you the same warning but a serial interface is a p2p link. ! The warning applies to LAN interface where proxy ARP would be involved causing excessive ARP activity when compared to the use of an IP next-hop.
Hope to help
Giuseppe
09-01-2020 03:30 AM
Hello,
--> ip route 168.17.101.33 255.255.255.224 192.168.2.2 it gives me error Inconsistent address and mask
You need either one of the below:
ip route 168.17.101.32 255.255.255.224 192.168.2.2
ip route 168.17.101.33 255.255.255.255 192.168.2.2
--> ip route 168.17.101.65 255.255.255.224 s0/0/1 it gives me error Default route without gateway, if not a point-to-point interface, may impact performance so i felt my command is wrong
This is not an error, just a warning. On point to point links, it is recommended to use the next hop IP address rather than the outgoing interface. This is because when you use the outgoing interface, the router has to ARP for the other side.
09-01-2020 02:39 AM
Hello,
what are you trying to configure ? What do you mean by 'directly connecte static route' ? Basically, whatever static route you configure, if you specify the other side of the serial link as next hop, that should be sufficient.
R1
ip route 168.17.101.22 255.255.255.255 192.168.2.2
R2
ip route 168.17.101.65 255.255.255.255 192.168.2.1
09-01-2020 03:25 AM - edited 09-01-2020 03:26 AM
Hi George, I have replied to your message in the post above
09-01-2020 03:19 AM
Hi George,
I am trying to configure only on one router(R1)
When i wrote directly connected static route i meant command such as ip route 168.17.101.33 255.255.255.224 s0/0/1 (interface as an exit instead of ip address you might know this by other term) and when i write ip route 168.17.101.33 255.255.255.224 192.168.2.2 it gives me error Inconsistent address and mask and if the command is
ip route 168.17.101.65 255.255.255.224 s0/0/1 it gives me error Default route without gateway, if not a point-to-point interface, may impact performance so i felt my command is wrong
09-01-2020 03:27 AM
Hello @hussainabbas1442 ,
when you configure static routes you need to refer to the subnet address and not the address on the loop0/loop1 of the other router.
so you should use
ip route 168.17.101.32 255.255.255.224 192.168.2.2
this should be accepted
the second static route should be:
ip route 168.17.101.64 255.255.255.224 s0/0/1
it will give you the same warning but a serial interface is a p2p link. ! The warning applies to LAN interface where proxy ARP would be involved causing excessive ARP activity when compared to the use of an IP next-hop.
Hope to help
Giuseppe
09-01-2020 04:00 AM
It does work thanks but why .32 and .64
09-01-2020 05:13 AM
Hello @hussainabbas1442 ,
the .32 and .64 are the subnet addresses that is given a subnet mask of 255.255.255.224 it identifies an host portion made of the last 5 bits.
In the subnet address all the host bits are 0
so you get
168.17.103.32/27 subnet mask 255.255.255.224
168.17.103.64/27 subnet mask 255.255.255.224
to be noted both the subnet adddress ( all zero in host portion) and the subnet broadcast address ( all ones in the host portion) are reserved and cannot be assigned to an host including a loopback interface.
So for subnet 168.17.103.32/27 subnet mask 255.255.255.224
the first usable address is 168.17.103.33 and the last usable address is 168.17.103.62
with 168.17.103.63 being the subnet directed broadcast address.
Static routes refer to subnets or prefixes so for non host routes ( subnet mask different from 255.255.255.255) you need to refer to the correct subnet address when configurig the static routes. The router CLI parser checks that the specified address and subnet mask are compatible.
Hope to help
Giuseppe
09-01-2020 03:30 AM
Hello,
--> ip route 168.17.101.33 255.255.255.224 192.168.2.2 it gives me error Inconsistent address and mask
You need either one of the below:
ip route 168.17.101.32 255.255.255.224 192.168.2.2
ip route 168.17.101.33 255.255.255.255 192.168.2.2
--> ip route 168.17.101.65 255.255.255.224 s0/0/1 it gives me error Default route without gateway, if not a point-to-point interface, may impact performance so i felt my command is wrong
This is not an error, just a warning. On point to point links, it is recommended to use the next hop IP address rather than the outgoing interface. This is because when you use the outgoing interface, the router has to ARP for the other side.
09-01-2020 04:01 AM
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