NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: default route on other subnet



Pierre-Philipp,

In a similar situation as yours, I have used something like this, where
00.01.02.03.04.05 stands for the gateway's MAC address:

ifconfig xennet0 <host's IP>/32
route add -host <gateway's IP> -link xennet0:00.01.02.03.04.05 -iface
route add default -ifa <host's IP> <gateway's IP>

I may have had to specify the gateway's MAC address because ARP will not
work with an all-ones subnet mask.

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933


Home | Main Index | Thread Index | Old Index