If you are a server system administrator or normal user some time you need to assign a second ipaddress to your server.For this you need to
edit the /etc/network/interfaces file and you need to add the following syntax.
#vi /etc/network/interfaces
auto eth0:1
iface eth0:1 inet static
address 192.168.1.60
netmask 255.255.255.0
After entering all the details you need to restart networking services using the following command
#/etc/init.d/networking restart
edit the /etc/network/interfaces file and you need to add the following syntax.
#vi /etc/network/interfaces
auto eth0:1
iface eth0:1 inet static
address 192.168.1.60
netmask 255.255.255.0
After entering all the details you need to restart networking services using the following command
#/etc/init.d/networking restart

0 comments:
Post a Comment