[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: default gateway on different subnet
On Thu 13 Nov 2008 at 23:08:45 +0100, 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 188.8.131.52 netmask 255.255.255.0
route add -net 184.108.40.206 netmask 255.255.255.240 dev eth0
route add default gw 220.127.116.11
Looking at the exact numbers again, it seems it is simpler than I
thought: the true netmask is just different from what you've been told.
If you set it to 255.255.254.0, both 18.104.22.168 and 22.214.171.124 will
be in the same network, and things should be correct.
Now if they have set up things such that you can't reach, say,
126.96.36.199.128 (which is outside the given netmask 255.255.255.240),
then they have truely messed up.
Well i dont understand why some say it is broken apparently some of my
network guys, friends do it all the time.
Now look at my hands..... nothing up my sleeve....
Only the NetBSD network faq.
Networking with a gateway not on the local subnet
Sorry for the sillyness :)
Main Index |
Thread Index |