#Static ip NetBSD

make a file ifconfig.IFACE example: ifconfig.ex0 in to /etc/

then do #echo “192.168.0.1 netmask 255.255.255.0 media autoselect” >> /etc/ifconfig.ex0

192.168.0.1 netmask 255.255.255.0 into #/etc/ifconfig.ex0

find device making ifconfig -a
—————————————–

/etc/ifconfig.ex0

192.168.0.1 netmask 255.255.255.0 media autoselect
———————————-

#DNS

dns in to /etc/resolv.conf

nameserver DNS1_ip
nameserver DNS2_ip

————————————

add the gateway to /ect/mygate

#echo “192.168.0.1″ >> /etc/mygate

————————————————

restart the network card

#/etc/rc.d/network restart

if you want dhcp then just estar the dhclient by doing

#chclient

and add it into /etc/rc.conf

#echo “dhclient=YES” >> /etc/rc.conf

enjoy it :)

manual made it by dmesg