Monday, January 9, 2012

Configure IP address in FreeBSD

FreeBSD is a free Unix-like operating system descended from AT&T UNIX via BSD UNIX.  Although for legal reasons FreeBSD cannot be called "UNIX", as the direct descendant of BSD UNIX (many of whose original developers became FreeBSD developers), FreeBSD's internals and system APIs are UNIX-compliant.
To set using command (temporarily)

ifconfig interface inet IP
eg: ifconfig lnc0 inet 192.168.1.2

lnc0 -->  interface name which can be obtained using ifconfig -a command

To set permanently
vi /etc/rc.conf
hostname="linux4starters.com"
ifconfig_lnc0="inet 192.168.0.3 netmask 255.255.255.0"





Run /etc/netstart script.

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews