[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: default gateway on different subnet
Petar Bogdanovic wrote:
what is the proper NetBSD equivalent for the following two linux
route-commands in a situation where one host has not just one network
interface but also the problem that the default gateway is not on his
ifconfig eth0 220.127.116.11 netmask 255.255.255.0
route add -net 18.104.22.168 netmask 255.255.255.240 dev eth0
route add default gw 22.214.171.124
How is that supposed to work? Is it to just broadcast on eth0 whenever
it wants to reach 126.96.36.199/28, or is eth0 actually both
188.8.131.52/24 and 184.108.40.206/28, or is some other magic interpretation
the way to look at this?
This setup looks very broken. I'm surprised that Linux would allow it.
Looking at the routing table you provided, it appears as if Linux
actually pretends that eth0 are on both networks. So what you should do
is setup the interface with both addresses, so that it actually knows
that it's on both networks.
Main Index |
Thread Index |