LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-01-2013, 09:27 PM   #1
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
Unhappy DD-WRT Wireless Client Bridge Cannot Access Internet


Hello forum, long time no see.

I have been trying to setup a wireless (WPA2-AES on mixed b/g) client bridge between a WRT54G2 running DD-WRT ('slave') and a proprietary ISP router running stock OS ('master'). I have gotten an established connection between the two and can access the configuration page of the master when connected to the slave via Ethernet only (I can also successfully ping other devices in the LAN). I can also access the configuration page of the slave when connected to the master via wireless. The problem is I cannot access the internet/WAN of the master when connected to the slave via Ethernet. Here is some info (forgive me for using Windows 7 but the info should still be useful I think).

Code:
C:\Users\Me>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : EliteBook
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : gateway.2wire.net

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : gateway.2wire.net
   Description . . . . . . . . . . . : Intel(R) 82579LM Gigabit Network Connecti
on
   Physical Address. . . . . . . . . : E4-XX-XX-XX-XX-5B
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::94e5:4c3:26f0:592a%12(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.81(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Thursday, August 01, 2013 6:53:42 PM
   Lease Expires . . . . . . . . . . : Friday, August 02, 2013 7:57:20 PM
   Default Gateway . . . . . . . . . : 0.0.0.0
                                       192.168.1.254
   DHCP Server . . . . . . . . . . . : 192.168.1.254
   DHCPv6 IAID . . . . . . . . . . . : 300159323
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-19-4E-FC-E1-E4-11-5B-23-BD-5B

   DNS Servers . . . . . . . . . . . : 192.168.1.254
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.gateway.2wire.net:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : gateway.2wire.net
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

C:\Users\Me>tracert www.google.com

Tracing route to www.google.com [173.194.64.105]
over a maximum of 30 hops:

  1  EliteBook.gateway.2wire.net [192.168.1.81]  reports: Destination host unrea
chable.

Trace complete.

C:\Users\Me>ping www.google.com

Pinging www.google.com [173.194.64.103] with 32 bytes of data:
Reply from 192.168.1.81: Destination host unreachable.
Reply from 192.168.1.81: Destination host unreachable.
Reply from 192.168.1.81: Destination host unreachable.
Reply from 192.168.1.81: Destination host unreachable.

Ping statistics for 173.194.64.103:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Master Wireless Setup Page
Master Advanced Wireless Setup Page
Slave Security
Slave Basic Setup
Slave Basic Wireless Settings
Slave Wireless Security
 
Old 08-02-2013, 04:59 PM   #2
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
What is the master device's IP address? I didn't see it.
What is the default route for the master device?

Your wireless gateway needs an IP address on your subnet that does not conflict with another device on the subnet. From there, you need to bridge the wireless interface and most likely the switch interfaces. In theory, it's possible to use the WAN port, but I've always used the switch ports.


Which port is the cable from the master device plugged into?

Last edited by mpapet; 08-02-2013 at 05:07 PM.
 
1 members found this post helpful.
Old 08-02-2013, 10:03 PM   #3
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022

Original Poster
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
Quote:
Originally Posted by mpapet View Post
What is the master device's IP address? I didn't see it.
192.168.1.254
Quote:
Originally Posted by mpapet View Post
What is the default route for the master device?
Not sure what you are asking, but I access the internet just fine when connected to the master via wireless or ethernet. The only time I can't access the internet is when I'm connected to the slave via ethernet.
Quote:
Originally Posted by mpapet View Post
Your wireless gateway needs an IP address on your subnet that does not conflict with another device on the subnet.
As far as I can tell, nothing is conflicting. I'm using DHCP.
Quote:
Originally Posted by mpapet View Post
From there, you need to bridge the wireless interface and most likely the switch interfaces.
That's what I've done -- and they are indeed bridged because I can access the slave configuration page when I'm connected to only the master and the master configuration page when I'm connected to only the slave. Just no internet access on the latter.
Quote:
Originally Posted by mpapet View Post
In theory, it's possible to use the WAN port, but I've always used the switch ports.
I only have 1 device that needs this functionality at the moment so I have not enabled this feature of DD-WRT.
Quote:
Originally Posted by mpapet View Post
Which port is the cable from the master device plugged into?
What cable? The bridge is wireless and internet access when connected either via wireless or ethernet to the master works as expected. But when I try to access the internet via wireless using ethernet on the wireless bridge I can't access the internet.

Thanks for the response.
 
Old 08-03-2013, 12:23 AM   #4
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
Quote:
Originally Posted by lupusarcanus View Post
192.168.1.254
That's what I've done -- and they are indeed bridged
That's not the bridge I was talking about. It's a moot point now that I understand you are using the device as a repeater. You aren't using an Ethernet cable to send traffic to the gateway.

Did you follow these instructions? http://www.dd-wrt.com/wiki/index.php...eless_Repeater

Note, the chip required for wireless repeater.

Last edited by mpapet; 08-03-2013 at 12:36 AM.
 
1 members found this post helpful.
Old 08-03-2013, 12:52 AM   #5
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022

Original Poster
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
Quote:
Architecturally the repeater connects to another wireless router as a client, getting a single IP address via DHCP. Effectively the SSID network it connects to becomes your ISP. Therefore you (the client) will operate in your own IP address space, which is different from address space the repeater connects to.
Quote:
Also take note of the fact that all repeaters, including this Universal Wireless Repeater mode, will sacrifice half of the bandwidth available from the primary router for clients wirelessly connected to the repeater. This is a result of the repeater taking turns talking to not just one partner, but to two, and having to relay the traffic between them. As long as your bandwidth requirements are within this halved bandwidth amount there will be little or no reduction in "speed".
This is not what I want. I want clients connected to the slave to be on the same subnet, getting their IP addresses from the DHCP of the master. I also don't care for my wireless signal to be repeated because the master easily covers the house.

What I want is the slave to act more or less like a wireless NIC and let clients that only have Ethernet connectivity to access the wireless network of the master.

Basically, to avoid running a very long Ethernet cable all throughout my house and have the slave 'convert' the Ethernet signal into a wireless one.

Last edited by lupusarcanus; 08-03-2013 at 12:57 AM. Reason: clarification
 
Old 08-29-2017, 07:30 AM   #6
ginobean
LQ Newbie
 
Registered: Aug 2017
Posts: 3

Rep: Reputation: Disabled
try this

First, establish a baseline by following the "Client Bridged" instructions on the dd-wrt web site.

Then, on your wireless bridge's web gui page, go to Wireless -> Basic Settings. For Physical Interface ath0 (the 2.4 GHz channel), set 'Default GW Mode' to Manual and specify your main router's IP as the Gateway (typically either 192.168.1.1 or 192.168.0.1). (If you're also using your 5GHz channel, do exactly the same thing for the Physical Interface for your 5GHz channel.)

This change was absolutely necessary in order to get my secondary router working as a wireless bridge..

In my case, my secondary router was a dir-825, but you should be able to adapt the instructions for your particular router.

Last edited by ginobean; 08-29-2017 at 07:32 AM.
 
Old 08-29-2017, 03:31 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,270

Rep: Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656
Is this what you want to do?
https://www.dd-wrt.com/wiki/index.php/Client_Bridged
 
Old 08-29-2017, 06:07 PM   #8
ginobean
LQ Newbie
 
Registered: Aug 2017
Posts: 3

Rep: Reputation: Disabled
Yes. I would have included that link myself, but the forum posting rules wouldn't allow it, due to my being a newbie here.

Last edited by ginobean; 08-29-2017 at 06:15 PM.
 
Old 08-29-2017, 09:17 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,270

Rep: Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656
"Leave Local DNS blank (Some posts say you need to set local DNS to the same as the gateway IP so if you cannot access the internet, put the gateway in this section)
"
Did you try that?
 
Old 08-29-2017, 09:49 PM   #10
ginobean
LQ Newbie
 
Registered: Aug 2017
Posts: 3

Rep: Reputation: Disabled
For my wireless bridge, I left my local DNS unchanged, as: 0.0.0.0.

As a test, earlier this morning, I had tried setting 'Default GW Mode' back to 'Auto (DHCP)' and was able to confirm that it was causing major routing failures (I forget the exact details of the errors I was getting, but they were show-stopper errors).

Changing 'Default GW Mode' back to 'Manual' and specifying my main router's IP address (192.168.0.1 in my case) fixed my routing issues so that my wireless bridge works great now.

My guess is that the author of the client bridging document, hosted on the dd-wrt site, wrote the document for an earlier version of dd-wrt, as I had previously used it successfully to create a wireless bridge on a different dd-wrt router.

But, for me, the aforementioned change to 'Default GW Mode' was absolutely critical to my getting my wireless bridge to work.
 
Old 08-30-2017, 03:32 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,270

Rep: Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656
You can sometimes write in changes to them.

I had used an older version to do exactly what you did and didn't seem to have any issues maybe 2 years ago. Like you say, each build and each device may have some issues and need to play with a bit.

Thanks for the update. I assume it is solved..
 
Old 03-25-2021, 03:35 AM   #12
labosch
LQ Newbie
 
Registered: Mar 2021
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by ginobean View Post
But, for me, the aforementioned change to 'Default GW Mode' was absolutely critical to my getting my wireless bridge to work.
Just to confirm that things are still the same in 2021: "Wireless -> Basic Settings -> Default GW Mode" = "Manual" and specifying the master router address was necessary for me as well.

Plus, I had to set "Setup -> Basic Setup -> Local DNS" to "0.0.0.0". Setting the master router address would not work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Network Bridge Blocking Switch/Internet Access almcneill Linux - Networking 3 08-31-2011 07:46 PM
Open Wrt wireless bridge rougeleaf Linux - Wireless Networking 1 11-16-2010 01:12 PM
wireless client bridge with old laptop quinnray Linux - Wireless Networking 4 03-06-2007 05:50 AM
SLAX as a wireless client & bridge for wired network fofodaman Linux - Newbie 5 09-18-2006 02:48 PM
can't see WAN/internet through wireless bridge plastic_gnome Linux - Wireless Networking 2 05-21-2005 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration