UNIX NetWork

NetBSDMay 30, 2006 4:01 pm

#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

NetBSDMay 4, 2006 5:58 pm

Para poner la fecha y hora “12 de Febrero del 2005 a la 1:25 PM” tecleamos:

# date 200502121325