PDA

Bekijk de volledige versie : Problems with DHCP + PPPoE.



unimozg
09-09-2008, 14:14
Hi!
Im installing WL700gE_kc_1078_02.nas on my Asus Wl-700gE everything cool!
But... my ISP have a local network 172.20.0.0/16 there many comps and local torrents retracers, access in internet over PPPoE.
D-link named this technology DualAccess.

How can I get access in the local network ISP and at same time access to the internet through PPPoE?

I`m try doing next
in the WEB GUI im attune PPPoE session.
in SSH:
1) route add -net 172.20.0.0 netmask 255.255.0.0 eth0
2) udhcpc -i eth0 -p /var/run/udhcpc.pid

But nothing happen. What im doing wrong?

haraldrt
09-09-2008, 15:54
i do not fully understand your configuration, but i think you should bind your route to br0 instead of eth0. i think the bridged interface should do the trick

cu harald

unimozg
09-09-2008, 22:57
In two words:
<My LAN (192.168.1.0/32)>--->---LAN(1-4)-|Asus WL700gE|-WAN--->---<LAN ISP (DHCP)172.20.0.0/16 >---| PPPoE SRV|--->---INTERNET
and i want access at the same time in LAN ISP and INTERNET PPPoE

Somebody used udhcp? Where i can find script to start for it?

unimozg
12-09-2008, 14:40
Well i solve my problem those way:
connect on router across SSH:
1) vi /opt/etc/rc.local
I added:
###############
# Everything from here on runs whenever the configuration changes
###############
à) /usr/sbin/udhcpc -i eth0 -s /shares/MYVOLUME1/script.txt -b -p /var/run/udhcpc.pid
á) iptables -I POSTROUTING -t nat -o eth0 -d 172.20.0.0/16 -j MASQUERADE

2) copy script for udhcpc across WinSCP to folder /shares/MYVOLUME1/ (see attachment)

That`s all. Im connected to the local retracker and my speed downloading grow up! :cool: