Stickies Today : How to change IP address on FreeBSD

by Perk1z on July 14, 2007

1) Use ifconfig command as follows:
ifconfig interface inet IP

Example(s):
ifconfig lnc0 inet 202.54.1.22

Note lnc0 is Ethernet interface name can be Obtained using ifconfig -a command.

2) To setup up ip permanently open file /etc/rc.conf ; add/modify network entries:
vi /etc/rc.conf

And setup values as follows:
hostname=”fbsdx.test.com”
ifconfig_lnc0=”inet 192.168.0.6 netmask 255.255.255.0″

Note ifconfig_lnc0 is Ethernet interface name can be Obtained using ifconfig -a command.

3) Again re-run /etc/netstart script.

SourceÂ

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • LinkedIn
  • Live
  • Print this article!
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb

Related Posts

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word