User Tools

Site Tools


flyrouter:vlan

Differences

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

Link to this comparison view

flyrouter:vlan [2018/04/09 15:36] (current)
Line 1: Line 1:
 +===== Создание простого VLAN =====
  
 +Выдержка из файла конфигурации **/​etc/​network/​interfaces** :
 +
 +<​code>​
 +auto eth3.34
 +iface eth3.34 inet static
 +  address 192.168.1.2
 +  netmask 255.255.255.0
 +  pre-up ip link set eth3 up
 +  pre-up vconfig add eth3 34
 +  pre-up ip link set eth3.34 up
 +  up ip ro add 192.168.0.0/​16 via 192.168.1.1
 +  down ip ro del 192.168.0.0/​16 via 192.168.1.1
 +  post-down vconfig rem eth3.34
 +</​code>​
flyrouter/vlan.txt · Last modified: 2018/04/09 15:36 (external edit)