Manually assign fixed IP :
ifconfig bce0 inet <IP address> netmask <subnet mask>
route add default <gateway IP address>
/etc/netstart
e.g.
ifconfig bce0 inet 192.168.0.10 netmask 255.255.255.0
route add default 192.168.0.1
/etc/netstart
Make changes permanently :
As an example of the above, insert the below parameters into /etc/rc.conf :
ifconfig_bce0="inet 192.168.0.10 netmask 255.255.255.0" defaultrouter="192.168.0.1" hostname="hostname.domain.com"
Remove assigned IP address from network interface
ifconfig <interface name> down deletee.g.
ifconfig bce0 down delete
Voilla !!!
No comments:
Post a Comment