Configurando diversos IPs virtuais na interface de loopback:
Redhat/CentOS/Fedora
Redhat/CentOS/Fedora
vi /etc/sysconfig/network-scripts/ifcfg-lo:1
DEVICE=lo:1
IPADDR=127.0.0.2
NETMASK=255.0.0.0
NETWORK=127.0.0.0
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback
vi /etc/sysconfig/network-scripts/ifcfg-lo:2Debian/Ubuntu
DEVICE=lo:2
IPADDR=127.0.0.3
NETMASK=255.0.0.0
NETWORK=127.0.0.0
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback
vi /etc/network/interfaces
auto lo lo:1 lo:2
iface lo inet loopback
iface lo:1 inet static
address 127.0.0.3
network 127.0.0.0
netmask 255.0.0.0
iface lo:2 inet static
address 127.1.0.1
network 127.1.0.0
netmask 255.0.0.0
Nenhum comentário:
Postar um comentário