Dual / Triple WAN HowTo | DHCP scripts on Page 5!!!!

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... 13, 14, 15 ... 66, 67, 68  Next
Author Message
vecesneni
DD-WRT Novice


Joined: 10 Apr 2008
Posts: 12

PostPosted: Fri Apr 25, 2008 19:30    Post subject: Reply with quote
jbarbieri wrote:
Ok, got JFFS back.

Nice!


How did you make it? I can't get free jffs space with dd-wrt v24RC7 9414. 0 of 256 KB free Embarassed
(wrt54gl v1.1)
Sponsor
jbarbieri
DD-WRT Guru


Joined: 06 Apr 2007
Posts: 545
Location: New Hampshire

PostPosted: Fri Apr 25, 2008 21:00    Post subject: Reply with quote
vecesneni wrote:
jbarbieri wrote:
Ok, got JFFS back.

Nice!


How did you make it? I can't get free jffs space with dd-wrt v24RC7 9414. 0 of 256 KB free Embarassed
(wrt54gl v1.1)


Because I have a GSv2 which has 8mb flash.

If you load the mini build you could get some JFFS space.

_________________


Linksys EA6500v2 | 5GHz 1st Floor AP | Advanced Tomato 1.28.0000 -2.9-131 K26ARM USB AIO-64K
Netgear WNR2000v3 | 2nd Floor AP | DD-WRT v3.0-r27805 std

Behind a Raspberry Pi Dual WAN router
trickstar
DD-WRT Novice


Joined: 18 Mar 2007
Posts: 24

PostPosted: Sat Apr 26, 2008 9:52    Post subject: Reply with quote
jbarbieri wrote:
It creates a new mac address when you create a new vlan.

After you enable vlan in the webgui and through telnet/ssh, reboot, then do:

ifconfig vlan2


and it will show you the mac address:

Code:

root@xwing:/jffs/scripts# ifconfig vlan2
vlan2     Link encap:Ethernet  HWaddr 00:13:10:78:8D:86
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1180489 errors:0 dropped:0 overruns:0 frame:0
          TX packets:418773 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1042018323 (993.7 MiB)  TX bytes:38237368 (36.4 MiB)

root@xwing:/jffs/scripts#


thanks for that.^^



if i upgrade to RC7-9433 and use the v24 firewall.firewall, would the router still use one modem when downloading with flashget, download accelerator?

jbarbieri wrote:
Code:

The reason is because routes are cached, and if they (destination IP) are the same IP, will always use the same interface.



do you think a whr-hp-g54 would be able to handle 2 x 20mb.

and thanks for the wonderfull scripts.
vecesneni
DD-WRT Novice


Joined: 10 Apr 2008
Posts: 12

PostPosted: Sat Apr 26, 2008 19:11    Post subject: Reply with quote
jbarbieri wrote:
vecesneni wrote:
jbarbieri wrote:
Ok, got JFFS back.

Nice!


How did you make it? I can't get free jffs space with dd-wrt v24RC7 9414. 0 of 256 KB free Embarassed
(wrt54gl v1.1)


Because I have a GSv2 which has 8mb flash.

If you load the mini build you could get some JFFS space.


I have tried mini, but this has no ipt_CONNMARKpar module Sad
vecesneni
DD-WRT Novice


Joined: 10 Apr 2008
Posts: 12

PostPosted: Mon Apr 28, 2008 8:31    Post subject: Dual WAN with wlan client Reply with quote
Now my wlan client + ADSL system working fine.
I have updated the config decription on the bottom of page 11.
vecesneni
DD-WRT Novice


Joined: 10 Apr 2008
Posts: 12

PostPosted: Mon Apr 28, 2008 12:53    Post subject: Reply with quote
Jbarbieri, I don't understand, how your firewall script with ipt_CONNMARK decide which packet uses which WAN interface?
jbarbieri
DD-WRT Guru


Joined: 06 Apr 2007
Posts: 545
Location: New Hampshire

PostPosted: Mon Apr 28, 2008 13:07    Post subject: Reply with quote
through ip route

ip route's default gateway is to equalize the out bound connections. iptables then marks those outbound packets, so it knows how to route them, and to do source network address translation (or SNAT).

if you do ip route, you will see that it equalizes the outbound connections.

_________________


Linksys EA6500v2 | 5GHz 1st Floor AP | Advanced Tomato 1.28.0000 -2.9-131 K26ARM USB AIO-64K
Netgear WNR2000v3 | 2nd Floor AP | DD-WRT v3.0-r27805 std

Behind a Raspberry Pi Dual WAN router
trickstar
DD-WRT Novice


Joined: 18 Mar 2007
Posts: 24

PostPosted: Mon Apr 28, 2008 15:49    Post subject: Reply with quote
running dd-wrt RC7-9433 it defaults to vlan1, how can i equalize it?

Code:
root@DD-WRT:~# ip route
192.168.1.0/24 dev br0  proto kernel  scope link  src 192.168.1.1
81.*.*.0/22 dev vlan2  proto kernel  scope link  src 8*.**.*4.*
81.*.*.0/22 dev vlan1  proto kernel  scope link  src 8*.**.*3.*
169.254.0.0/16 dev br0  proto kernel  scope link  src 169.254.255.1
127.0.0.0/8 dev lo  scope link
default via 8*.*.*.* dev vlan1
root@DD-WRT:~#
jbarbieri
DD-WRT Guru


Joined: 06 Apr 2007
Posts: 545
Location: New Hampshire

PostPosted: Mon Apr 28, 2008 15:51    Post subject: Reply with quote
trickstar wrote:
running dd-wrt RC7-9433 it defaults to vlan1, how can i equalize it?

Code:
root@DD-WRT:~# ip route
192.168.1.0/24 dev br0  proto kernel  scope link  src 192.168.1.1
81.*.*.0/22 dev vlan2  proto kernel  scope link  src 8*.**.*4.*
81.*.*.0/22 dev vlan1  proto kernel  scope link  src 8*.**.*3.*
169.254.0.0/16 dev br0  proto kernel  scope link  src 169.254.255.1
127.0.0.0/8 dev lo  scope link
default via 8*.*.*.* dev vlan1
root@DD-WRT:~#


Code:

ip route delete default
ip route add default scope global equalize nexthop via <gateway> dev vlan1 nexthop via <gateway> dev vlan2



or, if you use the scripts:

Code:
ip route add default scope global equalize nexthop via $(nvram get wan_gateway) dev  $(nvram get wan_ifname) nexthop via $(nvram get wan2_gateway) dev $(nvram get wan2_ifname)

_________________


Linksys EA6500v2 | 5GHz 1st Floor AP | Advanced Tomato 1.28.0000 -2.9-131 K26ARM USB AIO-64K
Netgear WNR2000v3 | 2nd Floor AP | DD-WRT v3.0-r27805 std

Behind a Raspberry Pi Dual WAN router
trickstar
DD-WRT Novice


Joined: 18 Mar 2007
Posts: 24

PostPosted: Mon Apr 28, 2008 16:14    Post subject: Reply with quote
im using the v24 script. i tried the second code posted (or, if you use the scripts:), this is what i get.

Code:
root@DD-WRT:~# ip route add default scope global equalize nexthop via $(nvram get wan_gateway) dev  $(nvram get wan_ifname)
RTNETLINK answers: File exists

root@DD-WRT:~# nexthop via $(nvram get wan2_gateway) dev $(nvram get wan2_ifname)
-sh: nexthop: not found
root@DD-WRT:~#
trickstar
DD-WRT Novice


Joined: 18 Mar 2007
Posts: 24

PostPosted: Mon Apr 28, 2008 16:37    Post subject: Reply with quote
never mind the above msg, needed to delete default

Code:

root@DD-WRT:~# ip route
192.168.1.0/24 dev br0  proto kernel  scope link  src 192.168.1.1
8*.*.*.0/22 dev vlan2  proto kernel  scope link  src 8*.*.*.*
8*.*.*.0/22 dev vlan1  proto kernel  scope link  src 8*.*.*.*
169.254.0.0/16 dev br0  proto kernel  scope link  src 169.254.255.1
127.0.0.0/8 dev lo  scope link
default equalize
        nexthop via 8*.*.*.*  dev vlan1 weight 1
        nexthop via 8*.*.*.*  dev vlan2 weight 1
root@DD-WRT:~#



thanks jbarbieri
Carlito83
DD-WRT User


Joined: 28 Apr 2008
Posts: 53

PostPosted: Tue Apr 29, 2008 14:42    Post subject: Reply with quote
I got an Asus WL-500W with V24 RC7 9433 mega build, and it doesn't show up the VLAN button un the web gui. Eko indicated that the 500W doesn't use this option at all, and that's why it doesn't show up. Can I still make the dual/triple wan to work with this router?
Carlito83
DD-WRT User


Joined: 28 Apr 2008
Posts: 53

PostPosted: Wed Apr 30, 2008 2:46    Post subject: Reply with quote
Bump.
lawsu
DD-WRT Novice


Joined: 07 Nov 2007
Posts: 7

PostPosted: Wed Apr 30, 2008 3:44    Post subject: Reply with quote
I got a wrt54gv2.2 loaded with 23sp2 mini.

downloaded the script and put them in jffs.

I configure the vlan as describe in 1st post and run the code in administration-command.

Normal Wan port still works as normal. However I cannot get wan2 (port4) to work. How do I go about to know if port 4(wan2) manage to obtain an IP addres??

Any idea what I am missing?
jbarbieri
DD-WRT Guru


Joined: 06 Apr 2007
Posts: 545
Location: New Hampshire

PostPosted: Wed Apr 30, 2008 7:56    Post subject: Reply with quote
type in ifconfig

and see if there is an ip address for vlan2

_________________


Linksys EA6500v2 | 5GHz 1st Floor AP | Advanced Tomato 1.28.0000 -2.9-131 K26ARM USB AIO-64K
Netgear WNR2000v3 | 2nd Floor AP | DD-WRT v3.0-r27805 std

Behind a Raspberry Pi Dual WAN router
Goto page Previous  1, 2, 3 ... 13, 14, 15 ... 66, 67, 68  Next Display posts from previous:    Page 14 of 68
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum