OpenBSD Port Trunking
Материал из Xgu.ru
# ifconfig rl0 up # ifconfig rl1 up # ifconfig trunk0 trunkport rl0 up # ifconfig trunk0 trunkport rl1 up # ifconfig trunk0 trunkproto roundrobin 10.14.15.27 netmask 255.255.255.0 up
Для того чтобы результаты сохранялись после перезагрузки:
# echo "up" > /etc/hostname.rl0 # echo "up" > /etc/hostname.rl1 # echo "trunkproto roundrobin trunkport rl0 trunkport rl1 10.14.15.27 netmask 255.255.255.0" > /etc/hostname.trunk0 # shutdown -r +0
Конфигурация сетевых интерфейсов после этого:
# ifconfig -a lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33208 groups: lo inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 rl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:11:2f:34:7d:a5 trunk: trunkdev trunk0 media: Ethernet autoselect (100baseTX full-duplex) status: active inet6 fe80::211:2fff:fe34:7da5%rl0 prefixlen 64 scopeid 0x1 rl1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:11:2f:34:7d:a5 trunk: trunkdev trunk0 media: Ethernet autoselect (100baseTX full-duplex) status: active inet6 fe80::2c0:26ff:feac:5c63%rl1 prefixlen 64 scopeid 0x2 enc0: flags=0<> mtu 1536 trunk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:11:2f:34:7d:a5 trunk: trunkproto roundrobin trunkport rl1 active trunkport rl0 master,active groups: trunk egress media: Ethernet autoselect status: active inet6 fe80::211:2fff:fe34:7da5%trunk0 prefixlen 64 scopeid 0x5 inet 10.14.15.27 netmask 0xffffff00 broadcast 10.14.15.255
Подробнее: