Tester VLAN entre deux machines

Machine A :

ovs-vsctl add-br br-eth1
ovs-vsctl add-port br-eth1 eth1
ovs-vsctl add-port br-eth1 vlan-br-tag tag=10
ovs-vsctl set Interface vlan-br-tag type=internal
ifconfig vlan-br-tag up 5.6.7.8

Machine B :

ovs-vsctl add-br br-eth1
ovs-vsctl add-port br-eth1 eth1
ovs-vsctl add-port br-eth1 vlan-br-tag tag=10
ovs-vsctl set Interface vlan-br-tag type=internal
ifconfig vlan-br-tag up 5.6.7.9

Depuis la machine A, essayer de faire un ping :

ping 5.6.7.9

PING 5.6.7.9 (5.6.7.9) 56(84) bytes of data.
64 bytes from 5.6.7.9: icmp_req=1 ttl=64 time=0.822 ms
64 bytes from 5.6.7.9: icmp_req=2 ttl=64 time=0.200 ms

Tout supprimer :

ovs-vsctl del-port br-eth1 vlan-br-tag
ovs-vsctl del-br br-eth1

Autre outil :

ovs-vlan-test

#VLAN #réseau #ubuntu