On Tue, Mar 22, 2011 at 6:36 AM, Daniel Golle <daniel.go...@gmail.com>
wrote:
>
> I currently run OpenWrt in configuration where it is used as a PPPoE
router. The ADSL modem, however, also got a nice webinterface and I want to
be able to access the webinterface through OpenWrt.
> Therefore, the same nic which is used for PPPoE also needs to have a
static IPv4 address assigned to it. This is currently not possible using the
PPPoE interface type in UCI, as the ifname configuration variable is
'abused' to point to the nic used for PPPoE. This has the (unwanted) side
effect that /lib/network/config.sh resets the IPv4 address to 0.0.0.0 when
prepare_interface is called.
> In my understanding ifname should rather be ppp0 or such and another
variable, e.g. device, should be used for the name of the nic to be utilized
for PPPoE.
> Just this, however, doesn't solve the whole mess at all. The address is
still reset everytime pppd with pppoe-plugin is started, and the dependency
of both, PPPoE and the IPv4-interface on the Ethernet nic to be up is not
modelled at all, i.e. assuming that 'modem' is the IPv4 interface and 'wan'
is the PPPoE interface, ifdown modem will kill wan...
> It's not difficult to do this as a hack by just setting the IPv4 of the
interface *after* pppd came up. Having it properly modelled as part of UCI
would be nicer, imho.
> Slowly I start thinking of having layer-2 interfaces and layer-3 protocols
seperately, just as I'm used to it when configuring a popular ar7 based
router running a well-known closed-source real-time os...
> What do you think?

I aggree.  There are a couple of tickets that raise this issue
https://dev.openwrt.org/ticket/1430
I have a had an attempt to resolve it myself so that I can build the
interface that I require

eth0.0 (10.0.0.1)
  |
  +---ppoe (dhcp)
        |
        +---gre (192.168.100.1)

but I have not been able to put together a generic solution that can
be submitted

Cheers


----------------------------------------------------------
Chris Martin
m: +61 419 812 371
----------------------------------------------------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to