Modify

Opened 8 years ago

Closed 8 years ago

#7287 closed defect (fixed)

With wan interface type bridge and proto pppoe not start pppd at all

Reported by: uvi Owned by: jow
Priority: normal Milestone: Backfire 10.03.1
Component: base system Version: Backfire 10.03
Keywords: Cc:

Description

config 'interface' 'wan'

option 'ifname' 'eth0.2'
option 'proto' 'pppoe'
option 'type' 'bridge'
option 'defaultroute' '1'
option 'keepalive' '20,3'
option 'ppp_redial' 'persist'
option 'username' '...'
option 'password' '...'

I tried to debug /lib/network several hours, but with no success. This code is very tangled, scan_* starts many many times, setup_interface_pppoe with type bridge never called. It's hard to understand whats going on.
Better rewrite all code than understand whats going on.

Attachments (0)

Change History (6)

comment:1 Changed 8 years ago by thepeople

  • Owner changed from developers to jow
  • Status changed from new to assigned

comment:2 Changed 8 years ago by ystef

it works if add string:

[ "$config" = "wan" ] && iface_main="br-wan"

in setup_interface() before:

prepare_interface "$iface_main" "$config" "$vifmac"
return 0

it all calls setup_interface() ($iface_main $config):

ath0 lan
eth0.1 lan
br-lan lan
eth0.2 wan
ath0 lan

i can't understand who call this procedure with parameters "br-lan lan"

comment:3 Changed 8 years ago by jow

This works for me on latest trunk, can you please recheck?

comment:4 Changed 8 years ago by uvi

I tested trunk
Firmware OpenWrt Kamikaze - With X-Wrt Extensions bleeding edge, r21369
pppoe started on wan bridge!!!
Why Kamikaze if it backfire or I doing something wrong?

And in xwrt while configuring network and applaying changes it prints:

Committing network ...
Waiting for the commit to finish...
Reloading network ...
iptables v1.4.7: Illegal option `-j' with this command

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.7: Illegal option `-j' with this command

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.7: Illegal option `-j' with this command

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.7: Illegal option `-j' with this command

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.7: Illegal option `-j' with this command

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.7: Illegal option `-j' with this command

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.7: Illegal option `-j' with this command

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.7: Illegal option `-p' with this command

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.7: Illegal option `-j' with this command

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.7: Illegal option `-j' with this command

Try `iptables -h' or 'iptables --help' for more information.
'wifi0' is disabled
'wifi0' is disabled
/etc/rc.common: eval: line 1: udhcpc: not found

comment:5 Changed 8 years ago by jow

The illegal option errors are fixed with r21378

comment:6 Changed 8 years ago by jow

  • Resolution set to fixed
  • Status changed from assigned to closed

PPP on bridge works properly now after latest pppd script reworks

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.