пятница, 1 августа 2014 г.

Bridge с помощью iproute2

Всех админов в пределах досягаемости бью по рукам за использование ifconfig/route на linux-серверах. К счастью в новых дистрибутивах эти анахронизмы даже не установлены по умолчанию и народ рано или поздно начнёт переучиваться. Сегодня попробуем создать бридж с помощью всемогущей утилиты ip из пакета iproute2
ip l s dev eth1 up
ip l s dev eth0.1999 up
ip l add name br0 type bridge
ip l s dev eth1 master br0
ip l s dev eth0.1999 master br0
ip l s dev br0 up
That's all, folks!

1 комментарий:

  1. Hi, I was wondering...
    I am trying to add and remove tap interfaces to and from the bridge dynamically, that is after making the bridge up.For instance (given that i precreate tap interfaces with ssh -w x:x and that bridge walt-net is up):
    "ip link set up dev tap1 && ip link set dev tap1 master walt-net" makes all the other tap interfaces in the bridge disconnect

    ОтветитьУдалить