IP Commands :
– sudo ip link set eth1 up
– sudo ip addr add 192.168.x.y/24 dev eth1
– sudo ip link set eth2 up
– sudo ip addr add 192.168.y.x/24 dev eth2
– sudo ip addr flush dev eth1
– sudo ip addr flush dev eth2
– sudo brctl addbr br0
– sudo brctl addif br0 eth1 eth2
– sudo ip link set dev br0 up
#lsmod | grep 8021q
VCONFIG
ip link add link eno50 name eth0.400 type vlan id 400
ip addr add 10.206.240.69/24 brd 10.206.240.255 dev eth0.400
ip link set dev eth0.400 up
TCPDUMP VLAN TRACE
tcpdump -i eth0 -Uw - | tcpdump -en -r - vlan 20
tcpdump -s0 -nnpi eth0 vlan 100
No comments:
Post a Comment