Comments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #229 (new defect)

Opened 2 years ago

Last modified 11 months ago

IPv4 WAN Status is shown as not connected when there is a ppp tunnel up

Reported by: anonymous Owned by:
Priority: major Milestone:
Component: LuCI Applications Keywords:
Cc:

Description


Attachments

Change History

Changed 2 years ago by jow

I need to know some more details about the network configuration. Is the ppp tunnel covered by uci or manually created? Does it carry a 0/0 route?

Changed 2 years ago by hanipouspilot@…

PPP tunnel is created by openl2tpd. It is default route.
I think it is better to pick wan interface not by beung default but just from stats
uci_get_state wan ifname
and then run ifconfig

Changed 11 months ago by Roman A. aka BasicXP <x12ozmouse@…>

Confirmed in my case as well, having so called Russian PPPoE (DHCP for local resources, PPPoE for the internet).

/etc/config/network:

config interface 'wan'
        option ifname 'eth1'
        option proto 'dhcp'

config interface 'wan2'
        option proto 'none'
        option ifname 'ppp0'
        option username <OMITTED>
        option password <OMITTED>

/etc/hotplug.d/iface/30-pppoe:

#!/bin/sh
[ "$INTERFACE" = wan ] && {
        [ "$ACTION" = ifup ] && /usr/sbin/pppd \
                plugin rp-pppoe.so \
                mtu 1492 \
                mru 1492 \
                eth1 persist \
                usepeerdns \
                defaultroute \
                replacedefaultroute \
                user $(uci get network.wan2.username) \
                password $(uci get network.wan2.password) \
                lcp-echo-interval 5 \
                lcp-echo-failure 3 \
                unit 0
        [ "$ACTION" = ifdown ] && kill `ps | grep rp-pppoe | grep plugin | awk '{print $1}'`
}

route -n:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         212.1.254.110   0.0.0.0         UG    0      0        0 ppp0
10.36.64.0      0.0.0.0         255.255.192.0   U     0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan
212.1.254.110   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0

Add/Change #229 (IPv4 WAN Status is shown as not connected when there is a ppp tunnel up)

Author


E-mail address and user name can be saved in the Preferences.


Action
as new
 
Note: See TracTickets for help on using tickets.