Switch

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 16:48, 19 February 2018 (edit)
Jeremywh7 (Talk | contribs)
m (fix wiki path)
← Previous diff
Current revision (19:55, 28 September 2021) (edit) (undo)
Kernel-panic69 (Talk | contribs)
(Notes)
 
(5 intermediate revisions not shown.)
Line 2: Line 2:
'''''Wiki Path''''': [[Main_Page|DD-WRT Wiki Main]] / [[Tutorials]] / [[Linking Routers]] / '''Switch''' '''''Wiki Path''''': [[Main_Page|DD-WRT Wiki Main]] / [[Tutorials]] / [[Linking Routers]] / '''Switch'''
-----+ 
 +==Introduction==
You can configure most DD-WRT capable routers as a simple 4 or 5 port switch. A switch is similar to a hub in that all devices connected to it will be in the same broadcast domain and can communicate freely with each other. You can configure most DD-WRT capable routers as a simple 4 or 5 port switch. A switch is similar to a hub in that all devices connected to it will be in the same broadcast domain and can communicate freely with each other.
The configuration is nearly identical to that of a [[Wireless Access Point]]. The only real difference is that we will be disabling the radio. One of the main benefits of using a Switch over a WAP is that the throughput between wired machines (100-1000mbps) is usually far greater than wireless (~22mbps actual for 802.11g). The configuration is nearly identical to that of a [[Wireless Access Point]]. The only real difference is that we will be disabling the radio. One of the main benefits of using a Switch over a WAP is that the throughput between wired machines (100-1000mbps) is usually far greater than wireless (~22mbps actual for 802.11g).
 +==Instructions==
#[[Hard reset or 30/30/30]] the router to dd-wrt default settings #[[Hard reset or 30/30/30]] the router to dd-wrt default settings
#Connect to the router @ <nowiki>http://192.168.1.1</nowiki> using a '''wired''' client #Connect to the router @ <nowiki>http://192.168.1.1</nowiki> using a '''wired''' client
Line 13: Line 15:
#*WAN Connection Type : Disabled #*WAN Connection Type : Disabled
#*Local IP Address : 192.168.1.2 (i.e. different from primary router and out of DHCP pool) #*Local IP Address : 192.168.1.2 (i.e. different from primary router and out of DHCP pool)
-#*Subnet Mask : 255.255.255.0 (i.e. same as primary router)+#*Subnet Mask : 255.255.255.0 or /24 (i.e. same as primary router)
 +#*'''NOTE:''' Builds after 45229 use CIDR netmask format
#*DHCP Server : Disable (also uncheck DNSmasq options) #*DHCP Server : Disable (also uncheck DNSmasq options)
-#*''(Optional)'' Gateway/Local DNS : IP address of primary router+#*Gateway : IP address of primary router
 +#*''(Optional)'' Local DNS : IP address of primary router or local DNS server
#*''(Optional)'' Assign WAN Port to Switch : Enable this if you want to use WAN port as a switch port #*''(Optional)'' Assign WAN Port to Switch : Enable this if you want to use WAN port as a switch port
-#*''(Optional)'' NTP Client : Enable/Disable (if Enabled, specify Gateway/Local DNS above)+#*'''NOTE:''' Builds after 46750 do not have the "Assign WAN Port to Switch" feature.
 +#*NTP Client : Enable
 +#*'''Save'''
 +#Open the '''Setup -> Advanced Routing''' tab
 +#*Operating Mode : Router
#*'''Save''' #*'''Save'''
#Open the '''Wireless -> Basic Settings''' tab #Open the '''Wireless -> Basic Settings''' tab
Line 25: Line 33:
#*'''Save''' #*'''Save'''
#Open the '''Services -> Services''' tab #Open the '''Services -> Services''' tab
-#*''(Optional)'' DNSMasq : Disable+#*DNSMasq : Disable
-#*''(Optional)'' ttraff Daemon : Disable+#*ttraff Daemon : Disable
 +#*''(Recommended)'' Telnet : Disable
 +#*''(Recommended)'' SSHd : Enable
 +#*''(Recommended)'' Syslogd / Klogd : Enable
#*'''Save''' #*'''Save'''
#Open the '''Security -> Firewall''' tab #Open the '''Security -> Firewall''' tab
-#*''(Optional)'' Uncheck all checkboxes ''except'' Filter Multicast, then set SPI Firewall to Disable+#*Disable SPI firewall, then '''Save'''
-#*'''Save'''+#*Check "Filter Multicast", then '''Save'''
#Open the '''Administration -> Management''' tab #Open the '''Administration -> Management''' tab
#*''(Recommended)'' Info Site Password Protection : Enable #*''(Recommended)'' Info Site Password Protection : Enable
Line 39: Line 50:
#'''Apply Settings''' and connect ethernet cable to main router via LAN-to-LAN uplink* #'''Apply Settings''' and connect ethernet cable to main router via LAN-to-LAN uplink*
- +==Notes==
-*Notes:+
*#You may wish to set up some WPA passphrase on the Wireless SSID, just in case the radio was to turn on briefly or re-enable itself for some odd reason. You can also navigate to Advanced Wireless settings and lower the TX power to 5mW or so. It may help keep your hardware temps cooler. *#You may wish to set up some WPA passphrase on the Wireless SSID, just in case the radio was to turn on briefly or re-enable itself for some odd reason. You can also navigate to Advanced Wireless settings and lower the TX power to 5mW or so. It may help keep your hardware temps cooler.
*#To connect the switch to the main router, you can probably use either a patch cable, straight-thru, or a crossover cable. As far as I know, most dd-wrt capable devices can do autosensing (at least mine do) so the cable type doesn't really matter. *#To connect the switch to the main router, you can probably use either a patch cable, straight-thru, or a crossover cable. As far as I know, most dd-wrt capable devices can do autosensing (at least mine do) so the cable type doesn't really matter.
*#You can connect the switch to the main router via LAN-to-WAN so long as you have assigned the WAN port to switch (see step 3). Although some problems have been reported when doing so...maybe not all routers support it? *#You can connect the switch to the main router via LAN-to-WAN so long as you have assigned the WAN port to switch (see step 3). Although some problems have been reported when doing so...maybe not all routers support it?
-[[Category:Applications settings]]+[[Category:Basic tutorials]][[Category:Linking Routers]]

Current revision


Wiki Path: DD-WRT Wiki Main / Tutorials / Linking Routers / Switch

[edit] Introduction

You can configure most DD-WRT capable routers as a simple 4 or 5 port switch. A switch is similar to a hub in that all devices connected to it will be in the same broadcast domain and can communicate freely with each other.

The configuration is nearly identical to that of a Wireless Access Point. The only real difference is that we will be disabling the radio. One of the main benefits of using a Switch over a WAP is that the throughput between wired machines (100-1000mbps) is usually far greater than wireless (~22mbps actual for 802.11g).

[edit] Instructions

  1. Hard reset or 30/30/30 the router to dd-wrt default settings
  2. Connect to the router @ http://192.168.1.1 using a wired client
    • Note: If this router is wired to another router, there may be conflicts (both routers could have the same IP address). For the time being, disconnect this router from the main one or create a static ARP entry.
  3. Open the Setup -> Basic Setup tab
    • WAN Connection Type : Disabled
    • Local IP Address : 192.168.1.2 (i.e. different from primary router and out of DHCP pool)
    • Subnet Mask : 255.255.255.0 or /24 (i.e. same as primary router)
    • NOTE: Builds after 45229 use CIDR netmask format
    • DHCP Server : Disable (also uncheck DNSmasq options)
    • Gateway : IP address of primary router
    • (Optional) Local DNS : IP address of primary router or local DNS server
    • (Optional) Assign WAN Port to Switch : Enable this if you want to use WAN port as a switch port
    • NOTE: Builds after 46750 do not have the "Assign WAN Port to Switch" feature.
    • NTP Client : Enable
    • Save
  4. Open the Setup -> Advanced Routing tab
    • Operating Mode : Router
    • Save
  5. Open the Wireless -> Basic Settings tab
    • (Optional) Wireless Network Mode : Disabled*
    • (Optional) Wireless Network Name (SSID) : "Custom"
    • (Optional) Wireless SSID Broadcast : Disable
    • Save
  6. Open the Services -> Services tab
    • DNSMasq : Disable
    • ttraff Daemon : Disable
    • (Recommended) Telnet : Disable
    • (Recommended) SSHd : Enable
    • (Recommended) Syslogd / Klogd : Enable
    • Save
  7. Open the Security -> Firewall tab
    • Disable SPI firewall, then Save
    • Check "Filter Multicast", then Save
  8. Open the Administration -> Management tab
    • (Recommended) Info Site Password Protection : Enable
    • (Optional) Info Site MAC Masking : Disable
    • (Optional) Cron : Disable
    • (Optional) 802.1x : Disable
    • (Optional) Routing : Disable
  9. Apply Settings and connect ethernet cable to main router via LAN-to-LAN uplink*

[edit] Notes

    1. You may wish to set up some WPA passphrase on the Wireless SSID, just in case the radio was to turn on briefly or re-enable itself for some odd reason. You can also navigate to Advanced Wireless settings and lower the TX power to 5mW or so. It may help keep your hardware temps cooler.
    2. To connect the switch to the main router, you can probably use either a patch cable, straight-thru, or a crossover cable. As far as I know, most dd-wrt capable devices can do autosensing (at least mine do) so the cable type doesn't really matter.
    3. You can connect the switch to the main router via LAN-to-WAN so long as you have assigned the WAN port to switch (see step 3). Although some problems have been reported when doing so...maybe not all routers support it?