A collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users.
Jishee ni :
Configure additional IP addresses
Linux
# ifconfig eth0 192.168.50.254 netmask 255.255.255.0 # First IP
# ifconfig eth0:0 192.168.51.254 netmask 255.255.255.0 # Second IP
FreeBSD
# ifconfig fxp0 inet 192.168.50.254/24 # First IP
# ifconfig fxp0 alias 192.168.51.254 netmask 255.255.255.0 # Second IP
Permanent entries in /etc/rc.conf
ifconfig_fxp0=”inet 192.168.50.254 netmask 255.255.255.0″
ifconfig_fxp0_alias0=”192.168.51.254 netmask 255.255.255.0″