[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding route
On Friday 01 June 2001 15:00, Subba Rao wrote:
> I have read the Networking section in the FAQ. My PCMCIA card has the IP
> address and alias addresses as well. I can ping those addresses fine.
>
> Now comes the routing part, where I am stuck. I did create /etc/mygate
> file which has the IP address of the gateway. After I reboot, the gateway
> is always pointing to 127.0.0.1 (localhost). I have tried "route add
> destination gateway" command and that did not make any difference.
>
> How do I set up the default route for the OpenBSD 2.8?
>
> PS - For my previous question to the forum, I got a few "read the man
> pages" advice. If you cannot answer, please avoid sending such notes.
> Thank you for understanding.
/etc/mygate contents IP address of your default route
Then
# route -n add -host default `cat /etc/mygate`
You really should read the manual pages. Lots of good information there.
To see how it is properly used, read /etc/netstart.