A em0 ---------------em0 B em1-------------- em0 C
A:
ifconfig vlan0 create
ifconfig vlan0 vlan 1 vlandev em0 12.1.1.1/24 up
ifconfig em0 up
B:
sysctl net.link.ether.bridge=1
sysctl net.link.ether.bridge_cfg=em0,em1
sysctl net.link.ether.bridge_ipf=1
c:
ifconfig vlan0 create
ifconfig vlan0 vlan 1 vlandev em0 12.1.1.2/24 up
ifconfig em0 up
block in quick on em0 from any to any
block in quick on em1 from any to any
# ping 12.1.1.2
PING 12.1.1.2 (12.1.1.2):56 data bytes
64 bytes from 12.1.1.2 icmp_seq=0 ttl=64 time=1.441 ms
64 bytes from 12.1.1.2 icmp_seq=1 ttl=64 time=1.021 ms
64 bytes from 12.1.1.2 icmp_seq=2 ttl=64 time=1.005 ms
64 bytes from 12.1.1.2 icmp_seq=3 ttl=64 time=1.124 ms
^C
0 @1 block in quick on em0 from any to any
0 @2 block in quick on em0 from any to any
SirDice said:Please note that 4.8 has been end-of-life for quite some time.