sempre su debian, se vuoi avere più di un indirizzo per una singola scheda metti qualcosa del genere in /etc/network/interfaces.. in questo caso eth0 ha un ip reale per l'accesso dal mondo esterno mentre eth0:0 è un alias per l'accesso dalla LAN..
# 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 eth0 eth0:0
iface lo inet loopback
iface eth0 inet static
address 193.205.142.127
netmask 255.255.255.0
gateway 193.205.142.254
dns-nameservers 193.205.142.210 193.205.112.11
pre-up iptables-restore < /etc/iptables.up.rules
iface eth0:0 inet static
address 192.168.20.127
netmask 255.255.255.0
gateway 192.168.20.254
dns-nameservers 193.205.142.210 193.205.173.11
(Ps.. l'ip l'ho cambiato)

Rispondi quotando