WAN Port

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:58, 2 March 2007 (edit)
Wildblue (Talk | contribs)
m
← Previous diff
Revision as of 15:07, 19 April 2007 (edit) (undo)
Kernal (Talk | contribs)
(Use the following steps:)
Next diff →
Line 55: Line 55:
Command: Command:
'brctl addif br0 vlan1' '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> </pre>

Revision as of 15:07, 19 April 2007

Adding WAN Port to Switch (use 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.)

Under "Setup" -> "Basic Setup"
Set "Internet Setup" to "Disabled"


2.)

Under "Setup" -> "VLANs"
- 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: [1] (german))


3.)

The VLAN setting should show something like:
             |       Port        |   Assigned
     VLAN    |-------------------|   to bridge
             | W | 1 | 2 | 3 | 4 |
    --------------------------------------------
       0     |   | x | x | x | x |     LAN
    --------------------------------------------
       1     | x |   |   |   |   |     LAN
    --------------------------------------------
       2     |   |   |   |   |   |     None
    --------------------------------------------
      ...
    --------------------------------------------
     Tagged  |   |   |   |   |   |
    ------------------------------

4.)

Save Settings

5.)

Reset the Router
  (See Note)


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'
  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

Link is broken: An alternate method of configuring the WAN port as a 5th LAN port is described HERE


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 HERE