debian:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 72.232.34.250
gateway 72.232.34.249
netmask 255.255.255.248
To add the other IP's to a Debian server edit the file add the IP'
the file will look like below :
nano -w /etc/network/interfaces
# The primary network interface
auto eth0
iface eth0 inet static
address 72.232.34.250
gateway 72.232.34.249
netmask 255.255.255.248
auto eth0:0
iface eth0:0 inet static
address 72.232.34.251
gateway 72.232.34.249
netmask 255.255.255.248
auto eth0:1
iface eth0:1 inet static
address 72.232.34.252
gateway 72.232.34.249
netmask 255.255.255.248
Enjoy:)
0 comments:
Post a Comment