NetBSD-Users archive

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

Re: default route on other subnet


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

ifconfig xennet0 <host's IP>/32
route add -host <gateway's IP> -link xennet0: -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.


David Young             OJC Technologies      Urbana, IL * (217) 278-3933

Home | Main Index | Thread Index | Old Index