DUAL WAN E2000 / WRT320N

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 14:50, 24 April 2011 (edit)
Monsters Inc (Talk | contribs)

← Previous diff
Current revision (17:56, 18 March 2018) (edit) (undo)
Ian5142 (Talk | contribs)
(Added Categories.)
 
(15 intermediate revisions not shown.)
Line 1: Line 1:
-DUAL WAN E2000 / WRT320N+==DUAL WAN E2000 / WRT320N Introduction==
 +This tutorial brings to you all the steps to allow your E2000 router works as a "DUAL WAN" Router with DHCP on every WAN port, asumming you have 2 ISP providers and they gives you an "always on" connection (no ppoe) just plug the patch cord in your wan port and you receive a public IP address. <br>
-I`m Using "DD-WRT v24-sp2 (04/11/11) mini - build 16773M NEWD-2 K2.6 Eko"  
-First Approach to "Dual Wan" on this models is to have clear the standards vlans & ports defalt configuration :+I`m Using "DD-WRT v24-sp2 (04/11/11) mini - build 16773M NEWD-2 K2.6 Eko" <br>
-E2000 Default Port & Vlan Asignation. 
-root@DD-WRT:~# nvram show | grep vlan.*ports+First Approach to "Dual Wan" on this models is to have clear the standards vlans & ports defalt configuration :<br>
-vlan2ports=0 8+ 
-size: 19998 bytes (41442 left)+==E2000 Default Port & Vlan Asignation==
-vlan1ports=4 3 2 1 8*+ 
 + 
 +root@DD-WRT:~# nvram show | grep vlan.*ports<br>
 +vlan2ports=0 8<br>
 +size: 19998 bytes (41442 left)<br>
 +vlan1ports=4 3 2 1 8*<br>
It means : It means :
Line 20: Line 24:
Port 8 = It has to be present en every VLAN since it is a logical bridge<br> Port 8 = It has to be present en every VLAN since it is a logical bridge<br>
-Next Step is to have clear port membership on every VLAN.+<u>Next Step is to have clear port membership on every VLAN.</u>
-root@DD-WRT:~# nvram show | grep port.*vlans+root@DD-WRT:~# nvram show | grep port.*vlans<br>
-port5vlans=1 2 16+port5vlans=1 2 16<br>
-port3vlans=1+port3vlans=1<br>
-port1vlans=1+port1vlans=1<br>
-port4vlans=1+port4vlans=1<br>
-port2vlans=1+port2vlans=1<br>
-size: 19998 bytes (41442 left)+size: 19998 bytes (41442 left)<br>
-port0vlans=2+port0vlans=2<br>
It Means : It Means :
-Ports 3 , 1 , 4 and 2 belongs only to VLAN 1+Ports 3 , 1 , 4 and 2 belongs only to VLAN 1<br>
-Port 0 (WAN) belongs to VLAN 2+Port 0 (WAN) belongs to VLAN 2<br>
-Port 5 Vlans is an internal port just for bridging and you don have to consider this port.+Port 5 Vlans is an internal port just for bridging and you don have to consider this port.<br>
 + 
 +<u>Next Step is to have clear the Name of the vlans in Logical inteface name.</u>
 + 
 +root@DD-WRT:~# nvram show | grep vlan.*hwname<br>
 +size: vlan2hwname=et0<br>
 +19998 bytes (41442 left)<br>
 +vlan1hwname=et0<br>
 + 
 +It means VLAN1 & VLAN2 are part of interface ETH0<br>
 + 
 +<u>Next Step is to know the default interfaces in our router.</u><br>
 +root@DD-WRT:~# ifconfig<br>
 +br0 Link encap:Ethernet HWaddr 00:25:9C:C4:17:D6
 + inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
 + UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
 + RX packets:755 errors:0 dropped:0 overruns:0 frame:0
 + TX packets:230 errors:0 dropped:0 overruns:0 carrier:0
 + collisions:0 txqueuelen:0
 + RX bytes:102932 (100.5 KiB) TX bytes:21854 (21.3 KiB)
 + 
 +br0:0 Link encap:Ethernet HWaddr 00:25:9C:C4:17:D6
 + inet addr:169.254.255.1 Bcast:169.254.255.255 Mask:255.255.0.0
 + UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
 + 
 +eth0 Link encap:Ethernet HWaddr 00:25:9C:C4:17:D6
 + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
 + RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 + TX packets:551 errors:0 dropped:0 overruns:0 carrier:0
 + collisions:0 txqueuelen:1000
 + RX bytes:0 (0.0 B) TX bytes:102048 (99.6 KiB)
 + Interrupt:4 Base address:0x2000
 + 
 +eth1 Link encap:Ethernet HWaddr 00:25:9C:C4:17:D8
 + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
 + RX packets:750 errors:0 dropped:0 overruns:0 frame:703
 + TX packets:754 errors:0 dropped:0 overruns:0 carrier:0
 + collisions:0 txqueuelen:1000
 + RX bytes:113108 (110.4 KiB) TX bytes:121036 (118.1 KiB)
 + Interrupt:3 Base address:0x1000
 + 
 +lo Link encap:Local Loopback
 + inet addr:127.0.0.1 Mask:255.0.0.0
 + UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1
 + RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 + TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
 + collisions:0 txqueuelen:0
 + RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
 + 
 +vlan1 Link encap:Ethernet HWaddr 00:25:9C:C4:17:D6
 + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
 + RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 + TX packets:533 errors:0 dropped:0 overruns:0 carrier:0
 + collisions:0 txqueuelen:0
 + RX bytes:0 (0.0 B) TX bytes:96144 (93.8 KiB)
 + 
 +vlan2 Link encap:Ethernet HWaddr 00:25:9C:C4:17:D7
 + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
 + RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 + TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
 + collisions:0 txqueuelen:0
 + RX bytes:0 (0.0 B) TX bytes:5904 (5.7 KiB)
 + 
 + 
 +<u>Next Step is to create space by enabling jffs to hold load balancing & Firewall scripts.<br></u>
 +E2000 & WRT320N have 8MB Flash & 32 MB Ram so you have plenty space to save scripts on JFFS space.<br>
 + 
 +Go to "Administration TAB" then "Management TAB" and change the values to ENABLE JFFS and CLEAN JFFS, then Hit "Save" and "Apply Settings" and finally "Reboot Router"
-Next Step is to have clear the Name of the vlans in Logical inteface name.+<u>Next Step is to allow SSH protocol to transfer files to JJFS Space created in our router.<br></u>
 +When Router comes back alive again , It is time to allow connections through SSH protocol :
 +Is is done from the TAB "Services" and look for "Secure Shell" on the menu SSHd just click "Enable" now again , Hit "Save" button an the botton of that page, next " Apply Setting" and next "Reboot Router"
-root@DD-WRT:~# nvram show | grep vlan.*hwname+To be continued ASAP<br>
-size: vlan2hwname=et0+Marcelo Semino<br>
-19998 bytes (41442 left)+M_semino@hotmail.com<br>
-vlan1hwname=et0+Gatekeeper
-It means VLAN1 & VLAN2 are part of interface ETH0+[[Category:Linksys guides]]
 +[[Category:Dual WAN]]

Current revision

[edit] DUAL WAN E2000 / WRT320N Introduction

This tutorial brings to you all the steps to allow your E2000 router works as a "DUAL WAN" Router with DHCP on every WAN port, asumming you have 2 ISP providers and they gives you an "always on" connection (no ppoe) just plug the patch cord in your wan port and you receive a public IP address.


I`m Using "DD-WRT v24-sp2 (04/11/11) mini - build 16773M NEWD-2 K2.6 Eko"


First Approach to "Dual Wan" on this models is to have clear the standards vlans & ports defalt configuration :

[edit] E2000 Default Port & Vlan Asignation

root@DD-WRT:~# nvram show | grep vlan.*ports
vlan2ports=0 8
size: 19998 bytes (41442 left)
vlan1ports=4 3 2 1 8*

It means : Physic port 0 (WAN) = WAN port Logic
Physic port 4 = LAN port 1 Logic
Physic port 3 = LAN 2 Logic
Physic port 2 = LAN 3 Logic
Physic port 1 = LAN 4 Logic
Port 8 = It has to be present en every VLAN since it is a logical bridge

Next Step is to have clear port membership on every VLAN.

root@DD-WRT:~# nvram show | grep port.*vlans
port5vlans=1 2 16
port3vlans=1
port1vlans=1
port4vlans=1
port2vlans=1
size: 19998 bytes (41442 left)
port0vlans=2

It Means : Ports 3 , 1 , 4 and 2 belongs only to VLAN 1
Port 0 (WAN) belongs to VLAN 2
Port 5 Vlans is an internal port just for bridging and you don have to consider this port.

Next Step is to have clear the Name of the vlans in Logical inteface name.

root@DD-WRT:~# nvram show | grep vlan.*hwname
size: vlan2hwname=et0
19998 bytes (41442 left)
vlan1hwname=et0

It means VLAN1 & VLAN2 are part of interface ETH0

Next Step is to know the default interfaces in our router.
root@DD-WRT:~# ifconfig
br0 Link encap:Ethernet HWaddr 00:25:9C:C4:17:D6

         inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0
         UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
         RX packets:755 errors:0 dropped:0 overruns:0 frame:0
         TX packets:230 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:102932 (100.5 KiB)  TX bytes:21854 (21.3 KiB)

br0:0 Link encap:Ethernet HWaddr 00:25:9C:C4:17:D6

         inet addr:169.254.255.1  Bcast:169.254.255.255  Mask:255.255.0.0
         UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1

eth0 Link encap:Ethernet HWaddr 00:25:9C:C4:17:D6

         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:551 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:0 (0.0 B)  TX bytes:102048 (99.6 KiB)
         Interrupt:4 Base address:0x2000

eth1 Link encap:Ethernet HWaddr 00:25:9C:C4:17:D8

         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:750 errors:0 dropped:0 overruns:0 frame:703
         TX packets:754 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:113108 (110.4 KiB)  TX bytes:121036 (118.1 KiB)
         Interrupt:3 Base address:0x1000

lo Link encap:Local Loopback

         inet addr:127.0.0.1  Mask:255.0.0.0
         UP LOOPBACK RUNNING MULTICAST  MTU:16436  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vlan1 Link encap:Ethernet HWaddr 00:25:9C:C4:17:D6

         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:533 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:0 (0.0 B)  TX bytes:96144 (93.8 KiB)

vlan2 Link encap:Ethernet HWaddr 00:25:9C:C4:17:D7

         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:0 (0.0 B)  TX bytes:5904 (5.7 KiB)


Next Step is to create space by enabling jffs to hold load balancing & Firewall scripts.
E2000 & WRT320N have 8MB Flash & 32 MB Ram so you have plenty space to save scripts on JFFS space.

Go to "Administration TAB" then "Management TAB" and change the values to ENABLE JFFS and CLEAN JFFS, then Hit "Save" and "Apply Settings" and finally "Reboot Router"

Next Step is to allow SSH protocol to transfer files to JJFS Space created in our router.
When Router comes back alive again , It is time to allow connections through SSH protocol : Is is done from the TAB "Services" and look for "Secure Shell" on the menu SSHd just click "Enable" now again , Hit "Save" button an the botton of that page, next " Apply Setting" and next "Reboot Router"

To be continued ASAP
Marcelo Semino
M_semino@hotmail.com
Gatekeeper