Hello all,
I have the following routes:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.1.96 * 255.255.255.240 U 0 0 0 eth1
10.1.0.0 * 255.255.255.0 U 0 0 0 eth0
The following rules:
ip rule show
0: from all lookup 255
32764: from 10.0.1.109 lookup admin
32765: from all to 10.0.1.109 lookup admin
32766: from all lookup main
32767: from all lookup default
and the following table:
ip route list table admin
10.0.1.96/28 dev eth1 scope link src 10.0.1.109
default via 10.0.1.110 dev eth1
when I do:
ping yahoo.com
ping: unknown host yahoo.com
However if I add the following default gw:
route add default gw 10.0.1.110 dev eth1
So that the route looks like this:
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.1.96 * 255.255.255.240 U 0 0 0 eth1
10.1.0.0 * 255.255.255.0 U 0 0 0 eth0
default 10.0.1.110 0.0.0.0 UG 0 0 0 eth1
PING:
ping yahoo.com
PING yahoo.com (98.137.149.56) 56(84) bytes of data.
64 bytes from ir1.fp.vip.sp2.yahoo.com (98.137.149.56): icmp_seq=1 ttl=50 time=95.5 ms
Makes no sense to me
Anyone has any suggestions - i'm pretty sure i'm just missing something minor as always - just can't see it
Thank you!