User Tools

Site Tools


flyrouter:vlan

Создание простого VLAN

Выдержка из файла конфигурации /etc/network/interfaces :

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
flyrouter/vlan.txt · Last modified: 2018/04/09 15:36 (external edit)