I have a FreeBSD machine running on a virtual machine. I am using SUN Virtual Box. I need to set static IP address to this machine. So that I can access this machine. Is there anyway to do this ?

in /etc/rc.conf:

ifconfig_em0="inet netmask"
defaultrouter="" -- the machine IP, -- gateway

These settings in rc.conf are looked up in the boot process.
If you'd like to set ip manually, run:

ifconfig em0 inet netmask
route delete default; route add default



Frank 發表在 痞客邦 PIXNET 留言(0) 人氣()