LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Cannot connect through wireless-ethernet bridge Belkin F5D7330 (https://www.linuxquestions.org/questions/linux-wireless-networking-41/cannot-connect-through-wireless-ethernet-bridge-belkin-f5d7330-525233/)

probabil1ty 02-03-2007 08:16 AM

Cannot connect through wireless-ethernet bridge Belkin F5D7330
 
I am still a newbie in configuring (and understanding) network interfaces.

Here is my network:

internet <=====> modem <=====> router(wrt54g) <-----------> wireless-ethernet bridge (belkin f5d7330) <=======> PC (gentoo)

The local ip of the router is 192.168.1.1. I am using dhcp.

The bridge is configured as follows:
Quote:

Version Information
Firmware Version F5D7330_2.0.0.2
Boot Code Version v1.03.12.bk
Hardware Version F5D7330


LAN Settings
Ethernet MAC 00-17-3f-25-dc-ae
Adapter Name luke
IP Configuration DHCP
IP Address 192.168.1.101
Subnet Mask 255.255.255.0
Gateway Address 192.168.1.1


WLAN Settings
WLAN MAC 00-18-8b-85-c7-41
SSID linksys
Operating Mode Infrastructure
Encryption WEP
On the PC, after I ran "ifconfig eth0 192.168.1.200", ifconfig gives:
Quote:


eth0 Link encap:Ethernet HWaddr 00:18:8B:85:C7:41
inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:6211 errors:0 dropped:0 overruns:0 frame:0
TX packets:5566 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5302754 (5.0 Mb) TX bytes:601293 (587.2 Kb)
Interrupt:5

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1550 errors:0 dropped:0 overruns:0 frame:0
TX packets:1550 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:128956 (125.9 Kb) TX bytes:128956 (125.9 Kb)
dhcp times out:

Quote:

dhcpcd -d eth0
Info, eth0: dhcpcd 3.0.10 starting
Info, eth0: ethernet address = 0:18:8b:85:c7:41
Info, eth0: deleting IP address 192.168.1.200
Error, eth0: truncated message
Info, eth0: broadcasting for a lease
Debug, eth0: sending DHCP_DISCOVER with xid 855176617
Debug, eth0: waiting on select for 20 seconds
Debug, eth0: sending DHCP_DISCOVER with xid 855176617
Debug, eth0: sending DHCP_DISCOVER with xid 855176617
Debug, eth0: sending DHCP_DISCOVER with xid 855176617
Debug, eth0: sending DHCP_DISCOVER with xid 855176617
Debug, eth0: sending DHCP_DISCOVER with xid 855176617
Debug, eth0: sending DHCP_DISCOVER with xid 855176617
Error, eth0: timed out
Info, eth0: exiting

I am able to ping the router (192.168.1.1) from the PC, but I cannot connect to the internet.
How should I configure my bridge and/or my PC ?

Thanks for your consideration. Any kind of help would be very welcome.

wildar 02-03-2007 09:10 AM

Quote:

I am able to ping the router (192.168.1.1) from the PC, but I cannot connect to the internet.
Can you ping a public IP, like 4.2.2.2? If it responses, check /etc/resolv.conf and make sure you have correct nameserver entries.

Brian1 02-03-2007 09:16 AM

Have you set the DNS ips. Doing like wildar says goto http://216.239.39.99/ which is google. Does it connect?

Brian

probabil1ty 02-03-2007 09:16 AM

Sorry, I cannot ping any public ip
Code:

ping 4.2.2.2
connect: Network is unreachable

Same results for 216.239.39.99

Brian1 02-03-2007 09:22 AM

Post output from the command ' /sbin/route -n '.

Brian

wildar 02-03-2007 09:27 AM

Quote:

Originally Posted by probabil1ty
Sorry, I cannot ping any public ip
Code:

ping 4.2.2.2
connect: Network is unreachable

Same results for 216.239.39.99

Log in to your Linksys router and go to the "Status" page and make sure you are getting IP assignment from you ISP. If this checks good, then go back to "Basic Setup" tab and then "Advanced Routing" sub tab. Switch the operating mode, save settings, then try ping 4.2.2.2 again.

My Linksys router is set to Gateway mode.

probabil1ty 02-03-2007 09:35 AM

/sbin/route -n
Code:

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.1.0    0.0.0.0        255.255.255.0  U    0      0        0 eth0
127.0.0.0      0.0.0.0        255.0.0.0      U    0      0        0 lo

The router is set to gateway mode, and I believe its settings are fine.
I am using a laptop with a wireless card connected to the network to write this post and everything works well.

wildar 02-03-2007 09:49 AM

Code:

# route add -net default gateway 192.168.1.1 dev eth0

Brian1 02-03-2007 09:56 AM

As wildar says you have not defined a gateway yet.

Brian

probabil1ty 02-03-2007 10:03 AM

Now I am able to ping and connect to 216.239.39.99, but still not to http://www.google.com .

/etc/resolv.conf
Quote:

# Generated by net-scripts for interface lo domain matrix.
This file should be modified by dhcpcd. But as it still times out, nothing is done.

wildar 02-03-2007 10:16 AM

Edit /etc/resolv.conf and insert lines for nameserver <dns IP address>.
Example:
Code:

nameserver 4.2.2.2
nameserver 4.2.2.3

You probably will want to use your ISP's DNS servers. Should be able to find those addresses on the status page of you Linksys router.

probabil1ty 02-03-2007 11:05 AM

I finally got it working. I still don't understand why dhcpcd couldn't handle all this for me.
Thank you very much for your precious help.

wildar 02-03-2007 11:14 AM

Quote:

Originally Posted by probabil1ty
I finally got it working. I still don't understand why dhcpcd couldn't handle all this for me.
Thank you very much for your precious help.

Might want to check the DHCP server settings on the Basic Settings page of your Linksys router and add your DNS servers there. This should pass the DNS server address to your system, but doesn't really matter at this point if you got /etc/resolv.conf configured and working.

Brian1 02-03-2007 12:13 PM

Glad to see you have it going.

Brian


All times are GMT -5. The time now is 06:44 AM.