PDA

Bekijk de volledige versie : configuring second wan



ILYAki
25-08-2007, 17:48
Hi all!

I have:
1) ASUS wl500gP
2) WL500gp-1.9.2.7-7g firmware
3) Two ISPs.

Now I can set up in the router each of my internet connections with the web interface.
But I want to have them working simultaneously.

Here is my WAN Connection Types, that I set at "IP Config" page:

1) First ISP
IP Config - WAN & LAN
WAN Connection Type: PPPoE
(and some settings with ip, user name, dns, etc...)

2) Second ISP
WAN Connection Type: Automatic IP


Can someone help me with some questions about configuring this settings from console?

I tried this:

1) for "PPPoE" wan:

# pppd file /tmp/ppp/options.wan0
wan number I wrote to the options.wan0 file at this line:

plugin rp-pppoe.so rp_pppoe_service '10.0.0.1' nic-vlan1 (or nic-vlan2)

2) for "Automatic IP" wan:

# udhcpc -i vlan2 -p /var/run/udhcpc0.pid -s /tmp/udhcp
# upnp -D -L br0 -W vlan2

commands for adding second wan:

# robocfg vlan 2 ports "1 5t" vlan 0 ports "2 3 4 5t"
# vconfig add eth0 2

But nothing works. Where am I going wrong?

ILYAki
28-08-2007, 10:37
Well...

I can restate my questions in a different way:

1) How to set up "PPPoE" connection from console without the web.

and

2) How to set up "Automatic IP" connection from console without the web.