Bonjour,
Sur un serveur j'ai installé Wheezy. J'ai deux interfaces réseaux physiques : eth0 et eth1.
L'interface eth0 est divisée en plusieurs interfaces logiques via des VLAN : eth1.1000, eth1001, eth1.1002 et eth1.1004.
=> jusque la tout va bien : j'arrive à pinguer des machines dans chaque VLAN
J'ai installé une machine virtuel via KVM avec le même OS.
=> Le problème est qu'à partir de la VM, je n'arrive pas à pinguer des machines qui sont dans les VLAN 1000-1004. Par contre j'arrive bien à pinguer des machines sur eth0.
Je suppose qu'il doit y avoir un problème de configuration au niveau des VLAN. Dans ma VM, je dois avoir que deux cartes réseaux (comme déclaré sur l'image ci-dessous) ou je dois déclarer 1 carte par VLAN ?
Voici mon script /etc/network/interfaces dans l'OS host :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49# ###################################### auto lo iface lo inet loopback # ###################################### auto eth0 iface eth0 inet static address 10.1.0.2 netmask 255.255.0.0 gateway 10.1.0.250 auto eth1 iface eth1 inet static address 10.2.0.2 netmask 255.255.0.0 # ###################################### auto eth1.1000 iface eth1.1000 inet static address 10.100.0.2 netmask 255.255.0.0 vlan-raw-device eth1 auto eth1.1001 iface eth1.1001 inet static address 10.0.210.2 netmask 255.255.255.0 vlan-raw-device eth1 auto eth1.1002 iface eth1.1002 inet static address 10.102.0.2 netmask 255.255.0.0 vlan-raw-device eth1 auto eth1.1003 iface eth1.1003 inet static address 10.103.0.2 netmask 255.255.0.0 vlan-raw-device eth1 auto eth1.1004 iface eth1.1004 inet static address 10.104.0.2 netmask 255.255.0.0 vlan-raw-device eth1
Voici mon script /etc/network/interfaces dans ma VM :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49 # ###################################### auto lo iface lo inet loopback # ###################################### auto eth0 iface eth0 inet static address 10.1.0.3 netmask 255.255.0.0 gateway 10.1.0.250 auto eth1 iface eth1 inet static address 10.2.0.3 netmask 255.255.0.0 # ###################################### auto eth1.1000 iface eth1.1000 inet static address 10.100.0.3 netmask 255.255.0.0 vlan-raw-device eth1 auto eth1.1001 iface eth1.1001 inet static address 10.0.210.3 netmask 255.255.255.0 vlan-raw-device eth1 auto eth1.1002 iface eth1.1002 inet static address 10.102.0.3 netmask 255.255.0.0 vlan-raw-device eth1 auto eth1.1003 iface eth1.1003 inet static address 10.103.0.3 netmask 255.255.0.0 vlan-raw-device eth1 auto eth1.1004 iface eth1.1004 inet static address 10.104.0.3 netmask 255.255.0.0 vlan-raw-device eth1
ifconfig sur la VM :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73eth0 Link encap:Ethernet HWaddr 52:54:00:d3:ad:10 inet adr:10.1.0.3 Bcast:10.1.255.255 Masque:255.255.0.0 adr inet6: fe80::5054:ff:fed3:ad10/64 Scope:Lien UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:224 errors:0 dropped:0 overruns:0 frame:0 TX packets:189 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:1000 RX bytes:20025 (19.5 KiB) TX bytes:25014 (24.4 KiB) Interruption:11 Adresse de base:0x4000 eth1 Link encap:Ethernet HWaddr 52:54:00:d4:6b:9a inet adr:10.2.0.3 Bcast:10.2.255.255 Masque:255.255.0.0 adr inet6: fe80::5054:ff:fed4:6b9a/64 Scope:Lien UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:45 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:1000 RX bytes:0 (0.0 B) TX bytes:3186 (3.1 KiB) eth1.1000 Link encap:Ethernet HWaddr 52:54:00:d4:6b:9a inet adr:10.100.0.3 Bcast:10.100.255.255 Masque:255.255.0.0 adr inet6: fe80::5054:ff:fed4:6b9a/64 Scope:Lien UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:0 RX bytes:0 (0.0 B) TX bytes:468 (468.0 B) eth1.1001 Link encap:Ethernet HWaddr 52:54:00:d4:6b:9a inet adr:10.0.210.3 Bcast:10.0.210.255 Masque:255.255.255.0 adr inet6: fe80::5054:ff:fed4:6b9a/64 Scope:Lien UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:0 RX bytes:0 (0.0 B) TX bytes:468 (468.0 B) eth1.1002 Link encap:Ethernet HWaddr 52:54:00:d4:6b:9a inet adr:10.102.0.3 Bcast:10.102.255.255 Masque:255.255.0.0 adr inet6: fe80::5054:ff:fed4:6b9a/64 Scope:Lien UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:0 RX bytes:0 (0.0 B) TX bytes:468 (468.0 B) eth1.1003 Link encap:Ethernet HWaddr 52:54:00:d4:6b:9a inet adr:10.103.0.3 Bcast:10.103.255.255 Masque:255.255.0.0 adr inet6: fe80::5054:ff:fed4:6b9a/64 Scope:Lien UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:0 RX bytes:0 (0.0 B) TX bytes:846 (846.0 B) eth1.1004 Link encap:Ethernet HWaddr 52:54:00:d4:6b:9a inet adr:10.104.0.3 Bcast:10.104.255.255 Masque:255.255.0.0 adr inet6: fe80::5054:ff:fed4:6b9a/64 Scope:Lien UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:0 RX bytes:0 (0.0 B) TX bytes:468 (468.0 B) lo Link encap:Boucle locale inet adr:127.0.0.1 Masque:255.0.0.0 adr inet6: ::1/128 Scope:Hôte UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:7 errors:0 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:0 RX bytes:784 (784.0 B) TX bytes:784 (784.0 B)
D'où peut venir le problème ?
Merci d'avance







Répondre avec citation

Partager