adding ip to the freebsd server, freebsd ip add,More IP address on One NIC in freebsd

Setup 2 or More IP address on One NIC
# ifconfig se0 inet 192.168.X.X netmask 255.255.255.255 alias
To have this IP alias loaded after reboot then edit and add the following line to /etc/rc.conf
Code:
Quote:
# ifconfig_se0_alias0=”inet 192.168.X.X netmask 255.255.255.255″
To remove the IP address:
Code:
Quote:
# ifconfig se0 inet 192.168.X.X -alias
Finally, Restart FreeBSD network service using network restart script:
# /etc/rc.d/netif restart && /etc/rc.d/routing restart
Display alias and real ip using ifconfig se0 command:
# ifconfig se0
here is the example rc.conf
hostname=”static.pearlin.info”
# default router interface
defaultrouter=”10.10.1.1″
ifconfig_em0=”inet 10.10.1.2 netmask 255.255.255.0″
ifconfig_em0_alias0=”inet …

Read On »

how to start stop network service in freebsd, restart stop network in freebsd

FreeBSD is a Unix-like free operating system. You can install to choose third party software on FreeBSD from the Ports Collection. Many services such as POP3 server daemons, IMAP, etc. could be started using the inetd.
However, networking can be stop or started using special script located in /etc/rc.d/ directory. This directory includes script to stop or start network, and other services such as SSH server.
FreeBSD 5.x/6.x and above version – start or stop network
FreeBSD 5.x/6.x and above version comes with …

Read On »