VLANs & Bridges

Can anyone throw any light on why this isn’t working for me.

On my CCR, I have ether1 in a bridge with PPPoE running on the bridge for customer authentication. Ether1 is connected to our wireless network (UBNT radios). Ether12 is the link to our WAN. BGP is also running.

I basically want to use vlan100 for UBNT device management. I have added a bridge2-management, added vlan100 and added the port to the new bridge. I have added 172.16.20.1/24 to the bridge and I cannot ping the UBNT radio (172.16.20.2).

/interface bridge
add name=bridge1
add name=bridge2-management

/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=ether12
add bridge=bridge2-management interface=vlan100

/interface vlan
add interface=bridge2-management name=vlan100 vlan-id=100

/ip address
add address=172.16.20.1/24 interface=bridge2-management network=172.16.20.0

/interface pppoe-server server
add authentication=pap,chap disabled=no interface=bridge1 keepalive-timeout=30 max-mru=1480 max-mtu=1480 mrru=1600
one-session-per-host=yes service-name=wireless

I was starting to wonder if the problem was PPPoE running on bridge1 and is I should actually have a bridge in place at all for this?

Any help would be appreciated.

Regards

J

Are the Radios inside the vlan id 100 or outside?

If inside:

The interface must be vlan100 (of vlan interfaces) and not the bridge. Also, you can run the vlan interface over physical port ether1.

If outside:
Well, is a bad idea to use a second bridge.


You don’t need a bridge to connects WAN and clients PPPoE. Routing table do their work, then you can run the BGP over the ether12 port.

Finally the code should be:

Without bridges.

/interface vlan
add interface=ether1 name=vlan100 vlan-id=100

/ip address
add address=172.16.20.1/24 interface=vlan100 network=172.16.20.0

/interface pppoe-server server
add authentication=pap,chap disabled=no interface=ether1 keepalive-timeout=30 max-mru=1480 max-mtu=1480 mrru=1600 \
one-session-per-host=yes service-name=wireless

Thanks for the help. I will try the config tomorrow :slight_smile: