networking - Connecting two wireless routers with a crossover cable

06
2014-04
  • amer

    I tried to bridge two wireless routers wirelessly, but after extensive research I came to the conclusion that this wasn't possible.

    Now I am trying to connect these two routers through a cat5 cross-over cable and I wanted to know whether can I disable DHCP on the router which has internet, and enable the DHCP of the router which is connected to the printers, because I have a few systems that shouldn't be connected to the internet.

    What I had in mind is if I switch the DHCP OFF on the internet router and turn it ON on the Huawei B683 router, I could add those devices' MAC addresses to the internet gateway router to deny them access to the internet..?

    Be waiting for your response..your assistance is appreciated.

  • Answers
  • JohnnyVegas

    More information needed. Why are you doing this? What make/models are the routers? Have you created a bridge (wired or wireless) before?

    Wireless Bridging is possible, but only with some routers, or any router that can accept dd-wrt firmware.

    I would stop what you are doing with these routers right now or you could be wasting a lot of your time, and if you are on a live network you will be making a lot of enemies.

    Buy two asus rt-n12 or rt-n16, get dd-wrt firmware, then post this question again.

  • Simkill

    You won't need a crossover cable unless you have either very old routers, or very expensive routers that only do routing. Basically if you have 2 home routers which I suspect you have, they are not just routers, they are routers with integrated 4 or 5 port switches, so you have your router which is the wan port on the unit itself (external interface) and a port hooked up directly to the switch inside the unit itself that you cant see (usually directly soldered). Because it is then switch to switch, you don't need a crossover cable because they auto detect which wires are transmitting and receiving data.

    As for the DHCP, it really depends on your IP range setup for your network and how you want to deal with that.

    There's a few scenarios here: If both routers are ADSL, both routers management interfaces are going to be on the same network as they'll be connected via the integrated switch part of the router rather than the other side of the WAN port. This would mean either router could give out DHCP, providing you had the correct settings for the default gateway and don't just leave it as default on the one that isn't plugged into the phone line otherwise no-one will be going anywhere. The problem with that is you have people you don't want to get on the internet. Assuming neither router has functionality to block users from getting on the net, it could be difficult getting around that.

    If you had a cable router and an ADSL router it'd be ok, as you can just hang the ADSL router off the WAN port on the cable router, and run DHCP on both - leaving out a default gateway on the cable router so no-one connected to that can get on the net, and connecting people you do want to get on the net to the ADSL router, but I doubt you have that setup...

    Soooo, in the case of 2 ADSL routers... Connect them together via the integrated switches, set static IP's on the machines you don't want to get on the net leaving out the default gateway, set up DHCP on either as you would normally and that'll work nicely.


  • Related Question

    linux - Assign IP address in two networks and a wireless router
  • cactuarz

    I have one Linux desktop with two NICs, a wireless router, and internet access.

    The Linux box's eth0 is set to connect to the internet. Its IP address is assigned by the ISP, via DHCP.

    Eth1 is connected to my router, a Linksys E1000. Eth1's IP address is 192.168.1.12, and the router's IP address is 192.168.1.1.

    I need all devices that connect to the router to access the internet, but I don't know how to configure the router and eth1. I'm lacking in network knowledge, and I don't know how to bridge between the two NICs so both can share internet access.

    FYI, The desktop is using Ubuntu 10.04. DNS service is installed on the desktop; I'm using BIND 9. For DHCP server, it is built in on the router side.

    I tested this setup using my laptop. Connected to the router, I can open web apps on the desktop at 192.168.1.12, but cannot connect to the internet.

    Some might suggest that I should connect the internet connection and everything else to the router. That way is easy, but I want full control over all internet access. Next I want to learn to set up a captive portal.

    How should I configure eth0, eth1 and the router so it can share the internet connection? And are there any another tools that need to be installed?


  • Related Answers
  • Spiff

    You should set your E1000 to bridge mode, so it just acts as your wireless access point (AP), not a router. Turn off NAT and turn off the DHCP service on your E1000. Configure it to get its IP address via DHCP from your Linux box.

    Then configure your Linux box to be a NAT gateway, and to also be the DHCP server for your network. You can still use the 192.168.1.x/24 subnet, and following convention you'd make your Linux box's eth1 be 192.168.1.1.