OVH Cloud OVH Cloud

PB avec les vlans

3 réponses
Avatar
jhiezely
Je n'arrive pas a faire fonctionner l'ensemble des vlans :
J'ai 10 vlans, jusque la tout va bien
Je configure chaque VLAN comme ceci :
echo "172.22.2.1 255.255.255.240 vlan 200 vlandev dc2" > /etc/hostname.vlan0
echo "172.22.2.33 255.255.255.224 vlan 201 vlandev dc2" >
/etc/hostname.vlan1
echo "172.22.2.97 255.255.255.224 vlan 202 vlandev dc2" >
/etc/hostname.vlan2
echo "172.22.2.129 255.255.255.192 vlan 203 vlandev dc2" >
/etc/hostname.vlan3
puis je boot le reseau :
sh /etc/netstart
et la ... :
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
ifconfig: SIOCSETVLAN: Device busy
ifconfig: SIOCSETVLAN: Device busy
ifconfig: SIOCSETVLAN: Device busy
ifconfig: SIOCSETVLAN: Device busy
add net default: gateway 172.16.0.14
writing to routing socket: File exists

Alors j'arrive a pinger le premier vlan uniquement.
ifconfig me donne :

fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:d0:b7:67:09:0a
media: Ethernet 100baseTX full-duplex
status: active
inet6 fe80::2d0:b7ff:fe67:90a%fxp0 prefixlen 64 scopeid 0x1
inet 172.16.255.244 netmask 0xffff0000 broadcast 172.16.255.255
fxp1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
address: 00:d0:b7:67:09:0b
media: Ethernet autoselect (none)
status: no carrier
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b0
media: Ethernet 100baseTX full-duplex
status: no carrier
inet6 fe80::2c0:95ff:fee0:44b0%dc0 prefixlen 64 scopeid 0x3
inet 195.78.8.207 netmask 0xfffffff0 broadcast 195.78.8.207
dc1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b1
media: Ethernet 100baseTX full-duplex
status: no carrier
inet6 fe80::2c0:95ff:fee0:44b1%dc1 prefixlen 64 scopeid 0x4
inet 10.172.32.68 netmask 0xfffffff0 broadcast 10.172.32.79
dc2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b2
media: Ethernet 100baseTX full-duplex
status: no carrier
inet 172.22.4.1 netmask 0xffffffc0 broadcast 172.22.4.63
inet6 fe80::2c0:95ff:fee0:44b2%dc2 prefixlen 64 scopeid 0x5
dc3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b3
media: Ethernet autoselect
status: no carrier
vlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b0
inet6 fe80::2c0:95ff:fee0:44b0%vlan0 prefixlen 64 scopeid 0x14
inet 172.22.2.1 netmask 0xffff0000 broadcast 255.255.255.240
vlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b1
inet6 fe80::2c0:95ff:fee0:44b1%vlan1 prefixlen 64 scopeid 0x15
inet 172.22.4.1 netmask 0xffff0000 broadcast 255.255.255.240
vlan2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b3
inet 172.22.2.129 netmask 0xffff0000 broadcast 255.255.255.240
inet6 fe80::2c0:95ff:fee0:44b3%vlan2 prefixlen 64 scopeid 0x16
vlan3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b3
inet 172.22.2.33 netmask 0xffff0000 broadcast 255.255.255.240
inet6 fe80::2c0:95ff:fee0:44b3%vlan3 prefixlen 64 scopeid 0x17
vlan4: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan5: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan6: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan7: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan8: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan9: flags=0<> mtu 1500
address: 00:00:00:00:00:00

3 réponses

Avatar
jhiezely
Bon un pb resolu (j'avais oublie de faire ifconfig vlan0 -vlandev) mais par
contre mon premier vlan fonctionne mais pas les autres (j'arrive pas a
pinger en local (sur la machine))
"jhiezely" a écrit dans le message de
news:3fe6adca$0$7134$
Je n'arrive pas a faire fonctionner l'ensemble des vlans :
J'ai 10 vlans, jusque la tout va bien
Je configure chaque VLAN comme ceci :
echo "172.22.2.1 255.255.255.240 vlan 200 vlandev dc2" >
/etc/hostname.vlan0

echo "172.22.2.33 255.255.255.224 vlan 201 vlandev dc2" >
/etc/hostname.vlan1
echo "172.22.2.97 255.255.255.224 vlan 202 vlandev dc2" >
/etc/hostname.vlan2
echo "172.22.2.129 255.255.255.192 vlan 203 vlandev dc2" >
/etc/hostname.vlan3
puis je boot le reseau :
sh /etc/netstart
et la ... :
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
ifconfig: SIOCSETVLAN: Device busy
ifconfig: SIOCSETVLAN: Device busy
ifconfig: SIOCSETVLAN: Device busy
ifconfig: SIOCSETVLAN: Device busy
add net default: gateway 172.16.0.14
writing to routing socket: File exists

Alors j'arrive a pinger le premier vlan uniquement.
ifconfig me donne :

fxp0: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:d0:b7:67:09:0a
media: Ethernet 100baseTX full-duplex
status: active
inet6 fe80::2d0:b7ff:fe67:90a%fxp0 prefixlen 64 scopeid 0x1
inet 172.16.255.244 netmask 0xffff0000 broadcast 172.16.255.255
fxp1: flagsˆ02<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
address: 00:d0:b7:67:09:0b
media: Ethernet autoselect (none)
status: no carrier
dc0: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b0
media: Ethernet 100baseTX full-duplex
status: no carrier
inet6 fe80::2c0:95ff:fee0:44b0%dc0 prefixlen 64 scopeid 0x3
inet 195.78.8.207 netmask 0xfffffff0 broadcast 195.78.8.207
dc1: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b1
media: Ethernet 100baseTX full-duplex
status: no carrier
inet6 fe80::2c0:95ff:fee0:44b1%dc1 prefixlen 64 scopeid 0x4
inet 10.172.32.68 netmask 0xfffffff0 broadcast 10.172.32.79
dc2: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b2
media: Ethernet 100baseTX full-duplex
status: no carrier
inet 172.22.4.1 netmask 0xffffffc0 broadcast 172.22.4.63
inet6 fe80::2c0:95ff:fee0:44b2%dc2 prefixlen 64 scopeid 0x5
dc3: flagsˆ02<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b3
media: Ethernet autoselect
status: no carrier
vlan0: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b0
inet6 fe80::2c0:95ff:fee0:44b0%vlan0 prefixlen 64 scopeid 0x14
inet 172.22.2.1 netmask 0xffff0000 broadcast 255.255.255.240
vlan1: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b1
inet6 fe80::2c0:95ff:fee0:44b1%vlan1 prefixlen 64 scopeid 0x15
inet 172.22.4.1 netmask 0xffff0000 broadcast 255.255.255.240
vlan2: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b3
inet 172.22.2.129 netmask 0xffff0000 broadcast 255.255.255.240
inet6 fe80::2c0:95ff:fee0:44b3%vlan2 prefixlen 64 scopeid 0x16
vlan3: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b3
inet 172.22.2.33 netmask 0xffff0000 broadcast 255.255.255.240
inet6 fe80::2c0:95ff:fee0:44b3%vlan3 prefixlen 64 scopeid 0x17
vlan4: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan5: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan6: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan7: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan8: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan9: flags=0<> mtu 1500
address: 00:00:00:00:00:00




Avatar
jhiezely
pb entierement resolu je me suis plante dans le mask pour les vlan :
enn effet pour configurer un vlan il faut faire :
echo "172.22.2.1 netmask 255.255.255.240 vlan 200 vlandev dc2" >
et non :
echo "172.22.2.1 255.255.255.240 vlan 200 vlandev dc2" >

"jhiezely" a écrit dans le message de
news:3fe6b584$0$7126$
Bon un pb resolu (j'avais oublie de faire ifconfig vlan0 -vlandev) mais
par

contre mon premier vlan fonctionne mais pas les autres (j'arrive pas a
pinger en local (sur la machine))
"jhiezely" a écrit dans le message
de

news:3fe6adca$0$7134$
Je n'arrive pas a faire fonctionner l'ensemble des vlans :
J'ai 10 vlans, jusque la tout va bien
Je configure chaque VLAN comme ceci :
echo "172.22.2.1 255.255.255.240 vlan 200 vlandev dc2" >
/etc/hostname.vlan0

echo "172.22.2.33 255.255.255.224 vlan 201 vlandev dc2" >
/etc/hostname.vlan1
echo "172.22.2.97 255.255.255.224 vlan 202 vlandev dc2" >
/etc/hostname.vlan2
echo "172.22.2.129 255.255.255.192 vlan 203 vlandev dc2" >
/etc/hostname.vlan3
puis je boot le reseau :
sh /etc/netstart
et la ... :
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
writing to routing socket: File exists
ifconfig: SIOCSETVLAN: Device busy
ifconfig: SIOCSETVLAN: Device busy
ifconfig: SIOCSETVLAN: Device busy
ifconfig: SIOCSETVLAN: Device busy
add net default: gateway 172.16.0.14
writing to routing socket: File exists

Alors j'arrive a pinger le premier vlan uniquement.
ifconfig me donne :

fxp0: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:d0:b7:67:09:0a
media: Ethernet 100baseTX full-duplex
status: active
inet6 fe80::2d0:b7ff:fe67:90a%fxp0 prefixlen 64 scopeid 0x1
inet 172.16.255.244 netmask 0xffff0000 broadcast 172.16.255.255
fxp1: flagsˆ02<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
address: 00:d0:b7:67:09:0b
media: Ethernet autoselect (none)
status: no carrier
dc0: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b0
media: Ethernet 100baseTX full-duplex
status: no carrier
inet6 fe80::2c0:95ff:fee0:44b0%dc0 prefixlen 64 scopeid 0x3
inet 195.78.8.207 netmask 0xfffffff0 broadcast 195.78.8.207
dc1: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b1
media: Ethernet 100baseTX full-duplex
status: no carrier
inet6 fe80::2c0:95ff:fee0:44b1%dc1 prefixlen 64 scopeid 0x4
inet 10.172.32.68 netmask 0xfffffff0 broadcast 10.172.32.79
dc2: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b2
media: Ethernet 100baseTX full-duplex
status: no carrier
inet 172.22.4.1 netmask 0xffffffc0 broadcast 172.22.4.63
inet6 fe80::2c0:95ff:fee0:44b2%dc2 prefixlen 64 scopeid 0x5
dc3: flagsˆ02<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b3
media: Ethernet autoselect
status: no carrier
vlan0: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b0
inet6 fe80::2c0:95ff:fee0:44b0%vlan0 prefixlen 64 scopeid 0x14
inet 172.22.2.1 netmask 0xffff0000 broadcast 255.255.255.240
vlan1: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b1
inet6 fe80::2c0:95ff:fee0:44b1%vlan1 prefixlen 64 scopeid 0x15
inet 172.22.4.1 netmask 0xffff0000 broadcast 255.255.255.240
vlan2: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b3
inet 172.22.2.129 netmask 0xffff0000 broadcast 255.255.255.240
inet6 fe80::2c0:95ff:fee0:44b3%vlan2 prefixlen 64 scopeid 0x16
vlan3: flagsˆ43<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:c0:95:e0:44:b3
inet 172.22.2.33 netmask 0xffff0000 broadcast 255.255.255.240
inet6 fe80::2c0:95ff:fee0:44b3%vlan3 prefixlen 64 scopeid 0x17
vlan4: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan5: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan6: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan7: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan8: flags=0<> mtu 1500
address: 00:00:00:00:00:00
vlan9: flags=0<> mtu 1500
address: 00:00:00:00:00:00








Avatar
olivier.pernet
C'est _mal_ de reprendre le log de 40 lignes de long que l'on vient de
poster dans sa réponse. Ca rend le message pas lisible du tout. Pour
info :-)
Olivier