WAN Port

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 02:54, 11 June 2008 (edit)
Covert (Talk | contribs)
(Added an easier step.)
← Previous diff
Current revision (18:18, 18 March 2018) (edit) (undo)
Ian5142 (Talk | contribs)
(Removed Advanced tutorials)
 
(10 intermediate revisions not shown.)
Line 1: Line 1:
-== Adding WAN Port to Switch (use as a normal LAN port)==+{{languages}}
When the WRT is used as an Access Point (AP) or repeater (WDS), the WAN port can easily be configured as a normal LAN port. When the WRT is used as an Access Point (AP) or repeater (WDS), the WAN port can easily be configured as a normal LAN port.
-=== Use the following steps: === 
-'''1.)'''<br />+== Adding WAN Port to LAN Switch to use as an additional, normal LAN port==
- Under "Setup" -> "Basic Setup"<br />+Note: Steps are true for firmwares current as of the author date of this article. v2.4, post SP2 firmwares. These steps were done with build 12307 (2009 06 17). Other firmware builds of DD-WRT have the same or very similar steps.
- Set "Internet Setup" to "Disabled"+
-<br />+
-'''2.)'''<br />+
- Under "Setup" -> "VLANs"<br />+
- - Select "LAN" under "Assigned to bridge" for VLAN 1+
- * This will set the WAN port (vlan1) is part of the LAN bridge (br0).+
- - '''LaFonera''' (tested with v.2007-0126): Just set Setup-->Basic Setup-->Internet Setup-->[[Internet Connection Type]] to [["Disabled"]]+
- ( Source: [http://www.dd-wrt.com/phpBB2/viewtopic.php?t=10247&sid=a6c4cb6929ef0aab0aa427a622c2d87a] (german))+
-<br />+# Open up the Web Interface to your DD-WRT Device
-'''3.)'''<br />+# Set WAN 'Connection Type' to Disabled.
- The VLAN setting should show something like:+# Down the Basic Setup page, the option WAN Port appears. Check the box 'Assign WAN Port to Switch'.
-<pre>+# Save/Reboot
- | Port | Assigned+
- VLAN |-------------------| to bridge+
- | W | 1 | 2 | 3 | 4 |+
- --------------------------------------------+
- 0 | | x | x | x | x | LAN+
- --------------------------------------------+
- 1 | x | | | | | LAN+
- --------------------------------------------+
- 2 | | | | | | None+
- --------------------------------------------+
- ...+
- --------------------------------------------+
- Tagged | | | | | |+
- ------------------------------+
-</pre>+
-'''4.)'''<br />+
- Save Settings+
- +
-'''5.)'''<br />+
- Reset the Router+
- (See Note)+
-<br />+
- +
-<pre>+
-Note:+
- +
- Rebooting the router (Step 5) is not required if you issue+
- the following command at a terminal (SSH,Telnet).+
- +
- However, ONLY issuing the command WITHOUT the steps (1-4)+
- above will ONLY last until the next reboot).+
- +
- +
- +
-Command:+
- 'brctl addif br0 vlan1'+
-</pre>+
- +
-<pre>+
- I tried above and it didn't worked for me. I attached a device on the WAN-+
- port. I pinged this device endlessly and watched it, to see if my changes+
- are successful. I realized, that the pings went through after rebooting+
- the router. But after a few seconds the device was unreachable again. I+
- ssh'd to my router and did a look with '~#ifconfig' for the interfaces and+
- saw, that device 'vlan1' was missing. I (re)activated the interface with+
- '~#ifconfig vlan1 up' and the pings immediately went through! To+
- automatically issue this command after reboot, I did the following on the+
- shell of the router:+
- +
- ~#nvram set rc_startup='ifconfig vlan1 up'+
- ~#nvram commit+
- ~#reboot+
- +
- HTH - kernal/19.04.2007+
-</pre>+
 +The WAN port is now the same as the other LAN ports.
---- ----
-An alternate method of configuring the WAN port as a 5th LAN port is described [http://www.linksysinfo.org/forums/showthread.php?t=41689 HERE]+[[Category:Wan]]
-----+[[Category:Interfaces]]
- +
-Q. It would be nice to be able to assign different networks to each of the ports..+
-Is there any work done in this direction?+
- +
-A. Easy step-by-step instructions for putting port 4 on it's own subnet can be found [http://www.linksysinfo.org/forums/showthread.php?t=41412 HERE]+
- +
----+
-In v23 SP2 there is a option in Setup -> Basic Setup -> "Assign WAN Port to Switch" - Tick it and re-boot.+
----+
-[[Category:English documentation]]+
-[[Category:Advanced tutorials]]+

Current revision


When the WRT is used as an Access Point (AP) or repeater (WDS), the WAN port can easily be configured as a normal LAN port.

[edit] Adding WAN Port to LAN Switch to use as an additional, normal LAN port

Note: Steps are true for firmwares current as of the author date of this article. v2.4, post SP2 firmwares. These steps were done with build 12307 (2009 06 17). Other firmware builds of DD-WRT have the same or very similar steps.

  1. Open up the Web Interface to your DD-WRT Device
  2. Set WAN 'Connection Type' to Disabled.
  3. Down the Basic Setup page, the option WAN Port appears. Check the box 'Assign WAN Port to Switch'.
  4. Save/Reboot

The WAN port is now the same as the other LAN ports.