NetBSD-Users archive

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

Re: Static ip on NetBSD / My rc.conf



2011/11/28, George Ember <sk8harddiefast%gmail.com@localhost>:
> rc_configured=YES
> wscons=YES
> hostname=NetBSD
> defaultroute=192.168.1.1
> inetd=YES
> routed=YES
> dhclient=NO
>

Hi, you should read the documentation..., or use man ifconfig.if

for me is no necesary put in rc.conf parameters of network, i like to
create the file ifconfig.yourinterface

for example:

ifconfig -a, will show the names of interfaces, afterward you should
create one or two files, depend...
Currently i have running a machine with netbsd, network configuration is:

First
vi /etc/ifconfig.vr0:
inet 192.168.0.49 netmask 255.255.255.0
vi /etc/mygate
put your gateway, only one ip, e.g. 192.168.0.1
vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

for me is enough

afterward run: /etc/rc.d/network restart

-- 
Edguitar ;)
http://cybernautape.blogspot.com


Home | Main Index | Thread Index | Old Index