Re: Yes it did the trick - Re[3]: Re[2]: em0, VLAN and bpf(?) trouble w/RELENG_5

From: Lenar D. Tukhvatullin <blackv_at_netroad.ru>
Date: Sat, 13 Nov 2004 21:21:03 +0300
On Sat, Nov 13, 2004 at 12:05:30PM -0500, Mike Tancsa wrote:
> I am able to create and use VLANS and putting the nic or the vlan interface 
> into promisc mode does not break the passing of packets.

And what about bridging?

Can you test bridging beetween vlan and another physical interface,
for example:

em1 - another physical interface, not connected to wire
172.16.0.0/24 - network in vlan (tag 100)
172.16.0.1 - remote host in this vlan

# ifconfig em0 up
# ifconfig vlan0 create
# ifconfig vlan0 vlan 100 vlandev em0
# ifconfig vlan0 up

# ifconfig em1 172.16.0.2 netmask 255.255.255.0

# kldload bridge
# sysctl net.link.ether.bridge.config="vlan0 em1"
# sysctl net.link.ether.bridge.enable=1

Pinging remote host:

$ ping 172.16.0.1

--
Lenar D. Tukhvatullin
Received on Sat Nov 13 2004 - 17:21:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:22 UTC