Hello,

I'm trying to make an ethernet interface support both PPPoE & static ip
address settings (goal is to access DSL modem administrative interface)

I've tried a setup like the following :
/etc/config/network

config 'switch' 'eth0'
        option 'enable' '1'

config 'switch_vlan' 'eth0_0'
        option 'device' 'eth0'
        option 'vlan' '0'
        option 'ports' '0 1 2 3 5'

config 'switch_vlan' 'eth0_1'
        option 'device' 'eth0'
        option 'vlan' '1'
        option 'ports' '4 5'

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'type' 'bridge'
        option 'ifname' 'eth0.0'
        option 'proto' 'static'
        option 'ipaddr' '192.168.85.15'
        option 'netmask' '255.255.255.0'
        option 'ip6addr' '2a01:240:fe6a::15/64'
        option 'defaultroute' '0'
        option 'peerdns' '0'
        option 'dns' '192.168.85.1'

config 'interface' 'wan'
        option 'ifname' 'eth0.1'
        option 'proto' 'pppoe'
        option 'username' 'fti/7geyb27'
        option 'password' '2gwhyew'
        option 'peerdns' '0'

config 'interface' 'dsl'
        option 'proto' 'static'
        option 'ifname' 'eth0.1'
        option 'ipaddr' '10.0.0.1'
        option 'netmask' '255.0.0.0'
        option 'defaultroute' '0'
        option 'peerdns' '0'

/etc/config/firewall

config 'defaults'
        option 'syn_flood' '1'
        option 'input' 'ACCEPT'
        option 'output' 'ACCEPT'
        option 'forward' 'REJECT'

config 'zone'
        option 'name' 'lan'
        option 'input' 'ACCEPT'
        option 'output' 'ACCEPT'
        option 'forward' 'REJECT'

config 'zone'
        option 'name' 'wan'
        option 'input' 'REJECT'
        option 'output' 'ACCEPT'
        option 'forward' 'REJECT'
        option 'masq' '1'
        option 'mtu_fix' '1'

config 'forwarding'
        option 'src' 'lan'
        option 'dest' 'wan'
        option 'mtu_fix' '1'

config 'include'
        option 'path' '/etc/firewall.user'

config 'zone'
        option 'name' 'dsl'
        option 'network' 'dsl'
        option 'input' 'REJECT'
        option 'forward' 'REJECT'
        option 'masq' '1'
        option 'output' 'ACCEPT'

config 'forwarding'
        option 'src' 'lan'
        option 'dest' 'dsl'
        option 'mtu_fix' '1'

This fails :
- static ip for eth0.1 is never set up at boot
- After setting up eth0.1 manually, host 10.0.0.138 in dsl zone is not
reachable except by the openwrt machine itself (no translation occurs).

I've seen a thread on this subject in forums :
https://forum.openwrt.org/viewtopic.php?id=14055
And a ticket in Trac :
https://dev.openwrt.org/ticket/1430

But atm, it seems there's no standard solution...

So, is there any hope to see this kind of setup supported out of the box
one of these days ?

Regards

Eric Masson

_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users

Reply via email to