route question
Paul_Melson@keykertusa.com
Paul_Melson@keykertusa.com
Tue, 21 Aug 2001 09:09:18 -0400
I'm having problems with `route` on my secondary (internal) interface. The
internal interface's IP address is 10.0.1.155 with a broadcast address of
10.0.255.255. The default gateway is on the other interface. I'm trying
to construct a static route to another internal subnet (10.20.0.0/16)
using the following commands:
route add -net 10.0.0.0 netmask 255.255.0.0 dev eth1
route add -net 10.20.0.0 netmask 255.255.0.0 10.0.11.2
10.0.11.2 is the address of the gateway router with a path to
10.20.0.0/16, and it works for everything else on the 10.0.0.0/16 network.
When I issue the 2nd command, I get "SIOCADDRT: No such device" and the
route doesn't work. From my experience with pppd, I know that `route` is
specifying a non-existent interface when it gives that error message.
However, the interface is up and communicating with addresses within its
broadcast range. Any clues?
PaulM