Link pppoe to one interface

I have 2 interface (br-lan and guest) and my isp permit 9 pppoe session

I would like to have one pppoe session for br-lan and one pppoe session for guest interface. Is it possibile?

Sure, bridge addition VLANs to your WAN, then permit forwarding like previously on WAN.

I'm not sure making another PPPoE instance @wan will work; but it does with Ethernet.

Is it a problem that the 2 pppoe connection are from the same wan port?

I don't know how to create 2 vlan...

Can someone help me with this?

You should be able to control the flow of the traffic with policy-based routing.

1 Like

Something like:

config rule                          
        option in 'pppoe1'
        option priority '3'
        option lookup 'main'

config rule                          
        option in 'pppoe2'
        option priority '4'
        option lookup '4'

This could be used to put traffic into the VLAN of your choice. Also, I apologize for the delay @Ansuel, I lost track of this thread.

  • Do you still need VLAN information?
1 Like

never heard of policy-based routing or rule configuration in network
also is policy-based routing supported by default on openwrt or additional package are needed?

The best things would be split the network in 2 part with vlan and every part have his own pppoe connection

About vlan.... yes if you have time

  • No extra packages are needed for policy based routing.

For another VLAN (assuming VLAN 3 is next available):

  • Create a new Interface
  • Make it a bridge
  • Also attach it to a new Ethernet eth0.3
  • Create new firewall zone
  • Permit forwarding from LAN2 to WAN
  • Add VLAN 3 to Switch port (optional)
  • Create SSID and attach (optional)
  • Configure DHCP (as needed)

I.E. make a copy of LAN, choose a new name - and renumber to eth0.3.

i already done this
How to "assign" a new pppoe connection to the guest interface?

I created a new vlan for eth0.3 by tagging on the cpu and switching off the ethernet port

In @vgaetera's advice, you'd direct the destination traffic out of pppoe2.

config rule                          
        option in 'guest'
        option priority '4'
        option lookup '4'

config route                
        option interface 'pppoe2'
        option target '0.0.0.0'
        option netmask '0.0.0.0'      
        option gateway '<IP_of_pppoe2_gateway>'              
        option table '4'

You'll need additional rules if the guest network needs to reach LAN:

config route                
        option interface 'lan'
        option target '192.168.2.0'
        option netmask '255.255.255.0'      
        option gateway '<IP_of_LAN>'              
        option table '4'
1 Like

erm ip of pppoe2 is dynamic

See edit: <IP_of_pppoe2_gateway> ...hopefully that doesn't change often?