LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-25-2010, 02:25 PM   #31
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159

Hi,

From the 'cli' post the output of 'route -n'.
 
Old 01-25-2010, 04:18 PM   #32
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Be careful when you type commands. You made a typo error.
Please retype that command correctly:
Code:
ping -c 3 75.126.162.205
Looks like the DNS or the default gateway is not working, but I need that output to confirm.
Either that, or your router is not connected to the internet.
try those command and see if you are connected to the internet:
Code:
sudo iwconfig eth1 essid "linksys_OW_45452"
sudo dhclient eth1
sudo route add default gw 192.168.1.1
If not, edit /etc/resolv.conf like that:
Code:
sudo gedit /etc/resolv.conf
This will open a text editor
Than add that line at the end of the file and save
Code:
nameserver 192.168.1.1
Check if internet works then.
and like the previous poster posted, please post the output of route -n indeed.
And be careful not to make typos! Best is to copy and paste the commands if you can.

Last edited by Agrouf; 01-25-2010 at 04:34 PM.
 
Old 01-26-2010, 07:03 AM   #33
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
LN*;

I just realized that you have a connection, but that the problem is with the DNS. We ( you and the forum) have been operating with information overload.---Some of the diagnostics people have asked for are not relevant when you are actually connected.)

Please describe the internet setup that you are trying to access. For example, we already know that it is dynamic IP (dhcp), but--for example--are the DNS settings (These appear in resolv.conf) the ones supplied by the ISP, or were they detected during the DHCP connection?

Have you talked to the ISP about the issue?
 
Old 01-26-2010, 07:03 AM   #34
LN Smith
LQ Newbie
 
Registered: Jan 2010
Posts: 23

Original Poster
Rep: Reputation: 15
Ok I have tryed the commands and this is what i get
Quote:
smith@smith-laptop:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.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
smith@smith-laptop:~$ ping -c 3 75.126.162.205
connect: Network is unreachable
smith@smith-laptop:~$ sudo iwconfig eth1 essid "linksys_ow_45452"
[sudo] password for smith:
smith@smith-laptop:~$ sudo dhclient eth1
Internet Systems Consortium DHCP Client V3.1.2
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:25:56:66:4c:0d
Sending on LPF/eth1/00:25:56:66:4c:0d
Sending on Socket/fallback
DHCPREQUEST of 192.168.0.51 on eth1 to 255.255.255.255 port 67
DHCPNAK from 192.168.1.1
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 192.168.0.124 from 192.168.0.2
DHCPREQUEST of 192.168.0.124 on eth1 to 255.255.255.255 port 67
DHCPACK of 192.168.0.124 from 192.168.0.2
bound to 192.168.0.124 -- renewal in 260779 seconds.
smith@smith-laptop:~$ sudo route add default gw 192.168.1.1
SIOCADDRT: No such process
smith@smith-laptop:~$ sudo gedit /etc/resolv.conf
smith@smith-laptop:~$
I did get into the text editor and added the nameserver 192.168.1.1 to the list and then tryed to connect to the internet via Firefox. still no luck
 
Old 01-26-2010, 08:54 AM   #35
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Try that (I suppose you have rebooted since last time and you need to reconnect to the essid):
Code:
sudo iwconfig eth1 essid "linksys_OW_45452"
sudo dhclient eth1
route -n
ping -c 3 192.168.1.1
route add -net 192.168.1.0 netmask 255.255.255.0 dev eth1
ping -c 3 192.168.1.1
sudo route add default gw 192.168.1.1
sudo gedit /etc/resolv.conf
add the line:
Code:
nameserver 192.168.1.1
and save.

Last edited by Agrouf; 01-26-2010 at 08:58 AM.
 
Old 01-26-2010, 08:54 AM   #36
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
LN--I admire your patience and tenacity with this!!

You missed my latest post--need details of your internet connection method, etc.
 
Old 01-26-2010, 01:23 PM   #37
LN Smith
LQ Newbie
 
Registered: Jan 2010
Posts: 23

Original Poster
Rep: Reputation: 15
The connection to the internet i am trying to get is wireless. the IPS and DNS setting are set to automatic and automatic (DHCP)

looking at the pings and things that i am sending out i think that i am connecting to the internet with the wireless card connection. However stepping back and straining my brain, like all of you that are helping, could it just be that i need a Network Controller? I can not find one on my computer? if so what is a good one and how do i load it without the internet? I have found and downloaded the WICD-1.6.2.2.tar.gz and the wicd-1.7.0.tar.bz2 but can not find an .exe file to install them with.

Once again I would like to thank everyone for their help in trying to get my computer connected.
 
Old 01-26-2010, 01:35 PM   #38
cantab
Member
 
Registered: Oct 2009
Location: England
Distribution: Kubuntu, Ubuntu, Debian, Proxmox.
Posts: 553

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by LN Smith View Post
could it just be that i need a Network Controller? I can not find one on my computer? if so what is a good one and how do i load it without the internet? I have found and downloaded the WICD-1.6.2.2.tar.gz and the wicd-1.7.0.tar.bz2 but can not find an .exe file to install them with.
Once you extract those files, they would probably come with installation instructions, in text files like README or INSTALL.

However, you are better off installing software using your package manager. With no internet, this is a little tricky, but can be done. There is a guide here: http://www.planetoss.com/detail.php?id=13

(You will be relieved to know that once you HAVE working internet, installing and updating software will be MUCH easier.)
 
Old 01-26-2010, 02:05 PM   #39
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by LN Smith View Post
The connection to the internet i am trying to get is wireless. the IPS and DNS setting are set to automatic and automatic (DHCP)

looking at the pings and things that i am sending out i think that i am connecting to the internet with the wireless card connection. However stepping back and straining my brain, like all of you that are helping, could it just be that i need a Network Controller?
NO!!!---the problem is with DNS---that is why you can connect with a numeric IP, but not with a domain name. This is why I asked about your ISP, etc..... Please Provide Details: Who owns/manages the wireless access point you are connecting to, is there a router, etc.

Last edited by pixellany; 01-26-2010 at 02:12 PM.
 
Old 01-26-2010, 02:11 PM   #40
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by LN Smith View Post
I have found and downloaded the WICD-1.6.2.2.tar.gz and the wicd-1.7.0.tar.bz2 but can not find an .exe file to install them with.
Linux does not use .exe files......

The generic instructions for downloaded packages such as above:
Unpack the archive using tar**
Look for a README or other instructions
Follow instructions

**To unpack:

for .tar.gz: tar -xzvf filename

for .tar.bz2: tar -xjvf filename
Quote:
Once again I would like to thank everyone for their help in trying to get my computer connected.
It's our pleasure.....
 
Old 01-26-2010, 03:51 PM   #41
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
i not totally convinced that it is just a dns problem yet because both times he was supposed to ping outside of his subnet, he typoed one and wasnt connected to his ssid the second time.
Code:
sudo ifconfig eth1 up
sudo iwconfig eth1 essid "linksys_OW_45452"
sudo dhclient
ping -c 5 216.187.52.6
ping -c 5 www.something.com
what happens when you put in the ip addresses (e.g.- 75.126.162.205) in firefox. are you able to browse websites ?

either way, can you get dns server information from your isp ? these are the ones i use:
nameserver 68.87.64.146
nameserver 68.87.75.194

Last edited by schneidz; 01-26-2010 at 04:00 PM.
 
Old 01-26-2010, 04:12 PM   #42
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Please forget about wicd for now. Get your connection working and then we will install it.
Type the commands I suggested above and we will see what is wrong with your connection. Installing wicd will be dead easy when your connection is working.
 
Old 01-27-2010, 08:07 AM   #43
LN Smith
LQ Newbie
 
Registered: Jan 2010
Posts: 23

Original Poster
Rep: Reputation: 15
Boy i hope installing programs are eases when you are connected to the internet! However i ran the commands again, and the wireless router is the linksys_OW_45452, the IP address is 10.1.1.60 Subnet Mask 255.255.255.0 DNS 10.1.1.254 Where do i insert the ip address in the network connections program?
Quote:
smith@smith-laptop:~$ sudo iwconfig eth1 essid "linksys_ow_45452"
[sudo] password for smith:
smith@smith-laptop:~$ sudo dhclient eth1
Internet Systems Consortium DHCP Client V3.1.2
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:25:56:66:4c:0d
Sending on LPF/eth1/00:25:56:66:4c:0d
Sending on Socket/fallback
DHCPREQUEST of 192.168.0.51 on eth1 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.0.51 on eth1 to 255.255.255.255 port 67
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
Trying recorded lease 192.168.0.51
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

Trying recorded lease 192.168.0.124
bound: renewal in 172989 seconds.
smith@smith-laptop:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
smith@smith-laptop:~$ ping -c 3 192.168.1.1
connect: Network is unreachable
smith@smith-laptop:~$ route add -net 192.168.1.0 netmask 255.255.255.0 dev eth1
SIOCADDRT: Operation not permitted
smith@smith-laptop:~$ route add -net 192.168.1.0 netmask 255.255.255.0 dev eth1
SIOCADDRT: Operation not permitted
smith@smith-laptop:~$ ping -c 3 192.168.1.1
connect: Network is unreachable
smith@smith-laptop:~$ sudo route add default gw 192.168.1.1
SIOCADDRT: No such process
smith@smith-laptop:~$ sudo route add default gw 192.168.1.1
SIOCADDRT: No such process
smith@smith-laptop:~$ sudo gedit /etc/resolv.conf
smith@smith-laptop:~$
 
Old 01-27-2010, 08:29 AM   #44
cantab
Member
 
Registered: Oct 2009
Location: England
Distribution: Kubuntu, Ubuntu, Debian, Proxmox.
Posts: 553

Rep: Reputation: 115Reputation: 115
Well this would explain things. The 'default gateway' should be your router, IP 10.1.1.254.

It also appears that you are not getting DHCP. Thus, try setting a static IP in the range 10.1.1.0-253


You would expect to be able to ping 10.1.1.254 too.
You would NOT expect to ping 192.168.0.1, since it doesn't exist on your network.
Really, the assumption that your network used the 192.168.1.0-254 IP range was never warranted, I'm not sure how it arose.
 
Old 01-27-2010, 08:34 AM   #45
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Man, it's case sensitive!
It's NOT "linksys_ow_45452", it is "linksys_OW_45452"

Last edited by Agrouf; 01-27-2010 at 09:06 AM.
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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