web-dev-qa-db-fra.com

Configurez la deuxième carte / interface réseau

je configure un serveur (Ubuntu 12.04 64bits, avec kvm) avec 2 adaptateurs de carte. Le premier (eth0) est configuré pour fonctionner avec un pont virtuel (vbr0) pour l'interface DMZ. Comment puis-je configurer le second (eth1) pour qu’il fonctionne avec l’interface LAN (192.168.1.8 en tant qu’adresse IP statique). Voici la configuration actuelle (/ etc/newtork/interfaces)

auto lo eth0 eth1 br0

iface lo inet loopback

iface eth0 inet manual

iface br0 inet static
address 192.168.4.8
netmask 255.255.255.0
broadcast 192.168.4.255
network 192.168.4.0
gateway 192.168.4.1
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off

Merci pour le soutien!!!

3
yuppar

Ajoutez ces lignes à/etc/network/interfaces:

iface eth1 inet static
  address 192.168.1.8
  netmask 255.255.255.0
2
Eric Carvalho