User Tools

Site Tools


flyrouter:bridge-mvlan

Differences

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

Link to this comparison view

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