Index

Subject : LUG: linux routing problem "RTnetlink answers: network is unreachable"

From : Chris Bullock <cgbullock@gmail.[redacted]>

Date : Mon, 14 Mar 2005 08:27:34 -0500


** networks are for demo only, not our real networks

have a router with 2 interfaces. 172.20.0.1(eth0) and
172.20.1.1(eth1). Routing currently works, but just added another
Internet connection. I can add all the routes I want that point to a
device connected on the 172.20.0.X/24 network but everytime I try to
add a route to the other interface I get "RTnetlink answers: network
is unreachable." traffic is routed between the 2 networks fine but
for some reason I can not add a route to any host going out the
172.20.1.x subnet, unless that host is on the 172.20.1.x subnet.
Example /sbin/ip r add 69.69.69.69/32 via 172.20.0.254 would work, but
/sbin/ip r add 68.68.68.68/32 via 172.20.1.254 would not.
Any help would be greatly appreciated.
Chris


Replies :