User Tools

Site Tools


flyrouter:bridge-trunk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

flyrouter:bridge-trunk [2018/04/09 15:36] (current)
Line 1: Line 1:
 +===== Bridge для прозрачного пропуска VLAN =====
 +
 +Необходимо прозрачно пропустить 2 vLAN с 0-го на 2-й порт.\\
 +\\
 +Выдержка из файла конфигурации **/​etc/​network/​interfaces** :
 +
 +<​code>​
 +# ClientName
 +auto br1
 +iface br1 inet static
 +    address 10.11.126.200
 +    netmask 255.255.255.0
 +    pre-up ip link set eth0 up
 +    pre-up ip link set eth2 up
 +    pre-up vconfig add eth0 2
 +    pre-up vconfig add eth2 2
 +    pre-up ip link set eth0.2 up
 +    pre-up ip link set eth2.2 up
 +    pre-up brctl addbr br1
 +    pre-up brctl addif br1 eth0.2
 +    pre-up brctl addif br1 eth2.2
 +    post-down brctl delif br1 eth0.2
 +    post-down brctl delif br1 eth2.2
 +    post-down brctl delbr br1
 +    post-down ip link set eth0.2 down
 +    post-down ip link set eth2.2 down
 +    post-down vconfig rem eth0.2
 +    post-down vconfig rem eth2.2
 +</​code>​
  
flyrouter/bridge-trunk.txt · Last modified: 2018/04/09 15:36 (external edit)