>> if_bridge:
>> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ne...
> Благодарю. Исправил.Так-сс
Бридж поднял (rl1 и rl2), попытался создать на бридже vlan1 - не создает пишет.
ifconfig: SIOCSETVLAN: Protocol not supported
Может впринципе и не нужно на bridge0 поднимать vlan... но как по другому?
-----------------------------------------------------------------------------------------
test# ifconfig
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:02:2a:e1:38:35
inet 192.168.12.10 netmask 0xffffff00 broadcast 192.168.12.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
rl1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:30:4f:53:f2:ee
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
rl2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:30:4f:53:f2:f2
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
pflog0: flags=0<> metric 0 mtu 33200
pfsync0: flags=0<> metric 0 mtu 1460
syncpeer: 224.0.0.240 maxupd: 128
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether ae:04:52:02:7e:e7
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: rl2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 3 priority 128 path cost 55
member: rl1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 2 priority 128 path cost 55
vlan1: flags=8003<UP,BROADCAST,MULTICAST> metric 0 mtu 1500
ether 00:00:00:00:00:00
vlan: 0 parent interface: <none>
vlan2: flags=8003<UP,BROADCAST,MULTICAST> metric 0 mtu 1500
ether 00:00:00:00:00:00
vlan: 0 parent interface: <none>
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
test# cat /etc/rc.conf
#Управляющий интерфейс
ifconfig_rl0="inet 192.168.12.10/24"
#Мост и vlan
cloned_interfaces="bridge0 vlan1 vlan2"
ifconfig_bridge0="addm rl1 addm rl2 up"
ifconfig_rl1="up"
ifconfig_rl2="up"
ifconfig_vlan1="inet 192.168.12.12/32 vlan 23 vlandev bridge0 up"
ifconfig_vlan2="inet 192.168.12.13/32 vlan 24 vlandev bridge0 up"
-----------------------------------------------------------------------------------------