configure network

Nick Guenther kousue at gmail.com
Tue Feb 17 20:26:48 CET 2009


On Tue, Feb 17, 2009 at 1:40 PM, bharathan kailath <kbharatan at gmail.com> wrote:
> just got installed OpenBsd4.4 and i did not configure the network while
> installing; i could not see under /etc/hostname.fxp0 in which, i uderstand,
> one could make changes (IP,Gateways etc.) what should i do?
> help appreciated
>

You can make /etc/hostname.fxp0 yourself. The format is documented in
`man hostname.if`. Your gateway is stored in /etc/mygate, unless you
are using DHCP. If you are using DHCP then you can just do
# echo "DHCP" > /etc/hostname.fxp0

if you have a static configuration do something like:
# echo "inet 192.168.0.9 255.255.255.0" > /etc/hostname.fxp0
# echo "192.168.0.1" > /etc/mygate
# echo "nameserver xx.xx.xx.xx" >> /etc/resolve.conf

and then
# sh /etc/netstart
to reset the interfaces with the new settings
Above all else, read the manpages. You can trust them.
Good luck!
-Nick


More information about the Openbsd-newbies mailing list