LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-03-2010, 11:46 PM   #1
wlaw
Member
 
Registered: Jun 2004
Location: HK
Distribution: Ubuntu
Posts: 245

Rep: Reputation: 30
Ubuntu connection by wireless


My icon shows that the connection is good using wifi . However, I could not go online. What's wrong ?

Thank you !

Last edited by wlaw; 01-03-2010 at 11:47 PM.
 
Old 01-04-2010, 12:48 AM   #2
AutoBot
Member
 
Registered: Mar 2002
Location: I can see you from here.
Distribution: Gentoo 1.3b
Posts: 184

Rep: Reputation: 34
That's not much information to go on, let's see the results of "ifconfig".
 
Old 01-04-2010, 07:35 PM   #3
wlaw
Member
 
Registered: Jun 2004
Location: HK
Distribution: Ubuntu
Posts: 245

Original Poster
Rep: Reputation: 30
The following is my ifconfig

Quote:
eth0 Link encap:Ethernet HWaddr 00:0b:5d:c3:b9:62
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:16

eth1 Link encap:Ethernet HWaddr 00:15:00:0f:1c:25
inet addr:10.42.43.1 Bcast:10.42.43.255 Mask:255.255.255.0
inet6 addr: fe80::215:ff:fe0f:1c25/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:81 errors:1 dropped:1 overruns:0 frame:0
TX packets:16 errors:0 dropped:5 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3283 (3.2 KB) TX bytes:3284 (3.2 KB)
Interrupt:18 Base address:0xe000 Memory:b0206000-b0206fff

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:478 errors:0 dropped:0 overruns:0 frame:0
TX packets:478 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:33836 (33.8 KB) TX bytes:33836 (33.8 KB)
result of route -n
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.42.43.0 0.0.0.0 255.255.255.0 U 2 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth1
result of cat /etc/resolv.conf
Quote:
Generated by NetworkManager

Last edited by wlaw; 01-04-2010 at 07:45 PM. Reason: supp info
 
Old 01-04-2010, 09:03 PM   #4
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
You do not have default route.

Please do:
dhcpcd -T eth1

Post output here.
 
Old 01-05-2010, 08:01 PM   #5
wlaw
Member
 
Registered: Jun 2004
Location: HK
Distribution: Ubuntu
Posts: 245

Original Poster
Rep: Reputation: 30
the result is
Quote:
IPADDR='192.168.1.103'
NETMASK='255.255.255.0'
NETWORK='192.168.1.0'
BROADCAST='192.168.1.255'
ROUTES=''
GATEWAYS='192.168.1.1'
DNSSERVERS='192.168.1.1'
DHCPSID='192.168.1.1'
LEASETIME='86400'
RENEWALTIME='0'
REBINDTIME='0'
INTERFACE='eth1'
CLASSID='dhcpcd 3.2.3'
CLIENTID='ff:65:74:68:31:00:01:00:01:12:d6:50:ff:00:15:00:0f:1c:25'
DHCPCHADDR='00:15:00:0f:1c:25'

# dhcpcd-1.x and 2.x compatible variables
DNS='192.168.1.1'
GATEWAY='192.168.1.1'
 
Old 01-11-2010, 11:00 AM   #6
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Sorry I have missed your post.

Thanks for output, now I can imagine your network configuration.

Next step, please, post outputs for:
Code:
1. route -n
2. nslookup www.yahoo.com
 
Old 01-11-2010, 12:34 PM   #7
AutoBot
Member
 
Registered: Mar 2002
Location: I can see you from here.
Distribution: Gentoo 1.3b
Posts: 184

Rep: Reputation: 34
Are you sure the issue is not your router, your configuration looks to be correct on the PC side.

Sorry I didn't get a notification email about your return post until today.

Last edited by AutoBot; 01-11-2010 at 12:36 PM. Reason: Email notification apology.
 
Old 01-13-2010, 03:36 AM   #8
wlaw
Member
 
Registered: Jun 2004
Location: HK
Distribution: Ubuntu
Posts: 245

Original Poster
Rep: Reputation: 30
route -n
Quote:
Destination Gateway Genmask Flags Metric Ref Use Iface
10.42.43.0 0.0.0.0 255.255.255.0 U 2 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth1
nslookup www.yahoo.com
Quote:
;; connection timed out; no servers could be reached
 
Old 01-13-2010, 11:39 AM   #9
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
The problem is that you do not have the default route.
Your computer do not know where to send all internet packets, and another problem - dhcp did not set it up.

But you can do it manually:
Code:
route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.1.1 eth1
Try, but remember that default route for wireless connection only.
 
Old 01-14-2010, 04:41 AM   #10
wlaw
Member
 
Registered: Jun 2004
Location: HK
Distribution: Ubuntu
Posts: 245

Original Poster
Rep: Reputation: 30
I got
Quote:
SIOCADDRT: Operation not permitted
What can I do now ?
 
Old 01-14-2010, 04:51 AM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
I would use "sudo /sbin/route add default gw <gateway address e.g. router> dev <device>"

E.G "sudo /sbin/route add default gw 192.168.0.1 dev wlan0"

If you use DHCP, the gateway should be set for you.
Run "/sbin/route" and see if the gateway is already set.

Suppose you have a wireless device and a NIC device and the wireless device is being used, but the route uses eth0. You can delete the default route before adding the new one:
sudo /sbin/route del default
sudo /sbin/route add default gw 192.168.0.1 dev wlan0
 
  


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
Wireless connection through Ubuntu. eaivision Linux - Newbie 2 06-30-2009 02:43 PM
UBUNTU v8.10 Wireless connection PROBS byker Linux - Newbie 3 11-25-2008 03:28 PM
Ubuntu newb: How do I get my wireless connection working with Ubuntu? devilgates Linux - Newbie 12 02-21-2008 07:05 PM
No more wireless connection in mn-applet - Ubuntu 7.10 caezar Linux - Newbie 2 11-14-2007 11:18 PM

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

All times are GMT -5. The time now is 08:40 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