Bonjour,
Je veux configurer une interface ethernet eth0 de mon poste pour faire du monitoring. jai installer le package vlan, et charge le module 8021q (modprobe 8021q),ensuite les commande qui suivent:
-ifconfig eth0 up
-vconfig add eth0 3
-vconfig add eth0 4
-ifconfig eth0.3 up
-ifconfig eth0.4 up
-ifconfig eth0.3 172.16.0.100/20
-ifconfig eth0.4 172.16.16.100/20
jusque la tout s’est bien passe.
Maintenant ds le fichier /etc/network/interfaces, j’inscris ces lignes :
auto eth0.3
iface eth0.3 inet static
address 172.16.0.100
netmask 255.255.240.0
broadcast 172.16.15.255
auto eth0.4
iface eth0.4 inet static
address 172.16.16.100
netmask 255.255.240.0
broadcast 172.16.31.255
Lorsque je fais : ‘/etc/init.d/networking restart’, j’obtiens ce message :
Reconfiguring network interfaces …ignoring unknown interface eth0=eth0
set name-type for vlan subsystem. should be visible in /proc/net/vlan/config
error : trying to add vlan #3 to if -:eth0:- error : File exists
if-up.d/mountnfs [eth0.3] : waiting for interface eth0.4 before doing NFS mounts warning.
set name-type for vlan subsystem. should be visible in /proc/net/vlan/config
error : trying to add vlan #4 to if -:eth0:- error : File exists
done.
Et ma configuration ne marche pas, impossible de pinguer les interfaces eth0.3/4, ni de pinguer a partir des interfaces eth0.3/4.
NB : ma carte reseau (eth0) marche tres bien car il nya pas de probleme lorsque je la configure avec une adresse ip.
Merci pour votre aide.