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 04-28-2005, 11:57 PM   #1
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
No connectivity


Very frustrating issue.

I have 3 computer at home: my linux box, a new laptop with windows and my brothers windows box. Whenever i connect the third computer, which ever it is, one of the three will loose connection. I have a switch where i connect all of them, so i know i dont have to worry about ip addressing.

What could be the problem?

And very importanly, how do you troubleshoot no internet connection on linux?

In windows, you got the ipconfig release-renew, whats the turn around for linux?
 
Old 04-29-2005, 12:19 AM   #2
Obie
Member
 
Registered: Apr 2004
Distribution: Red Hat
Posts: 290

Rep: Reputation: 30
Hi,

Which is your gateway to your Internet Connection? The reason when you connect third one and lose a connection could be that when 2 of them are plugged it, they could be sharing the connection as would a cross-over cable.

To troubleshoot, trying pinging first (assuming you have setup your NIC). You can also use tools like netstat, traceroute (tracert on Windows), etc

Doesn't ipconfig renew, renew the IP address for the specified adapter and not troubleshoot your internet connection.

I hope this helps.
 
Old 04-29-2005, 05:28 AM   #3
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
If i understood you correctly, i canīt have them all connected right cause i am using a cross over?

I just want to be able to have all three computers connected at once to hook them up on a network.

I typed ping on a terminal windows and it replied the 13 times i let it run. I am pretty sure that ipconfig is not part of the terminal commands but there must be something else to type to release and renew the connection for linux, right?

Thanks for the help.
 
Old 04-29-2005, 10:43 AM   #4
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
The closest thing to Windows' ipconfig is ifconfig in Linux. Iit has to be run as root usually, or specified by it's path which is usually /sbin/ifconfig. ifconfig -a does about the same thing as ipconfig /all. In Windows, for several reasons, that command controls the DHCP client action, in Linux there is usually a seperate DHCP client daemon, usually dhclient or dhcpcd, that handles this and it is more resiliant than the M$ implimentation so you don't usually have to release and renew the DHCP lease like in Windows.

ipconfig /renew is not really a great troubleshooting command anyhow, as much as it's used, which is more often then when it is actually useful and is needed in Windows due to IPAC (which has a new acronym in 2K/XP but is still the same stupid M$ action that gives you those broken 168.whatever IP addresses.) I would suggest you instead look at what the IP addresses are set at on all the machines and then see what changes when it breaks.

I'm assuming you either have some sort of Internet sharing, either on one of the other machines or through a DSL/Cable router device so all the internal computers will probably have IP addresses starting with 192.168. I would suggest that you start by seeing that all the computers have good, non-conflicting, IP addresses and that they can ping the other computers on the switch and the default gateway, which should be the same for all computers. All of these IP addresses will have the same first 3 sets of numbers (1st 3 octets on a class c subnet) for most home networks, if yours do not then something is likely misconfigured.

The question to answer to help us help you though is what did you ping 13 times? If you still don't have it working, post the IP addresses, subnet masks and default gateways of all 3 computers. Then post what you pinged that worked and whether or not all 3 computers can ping each other and the default gateway. If they have different IP addresses, can ping each other and the default gateway, then we can look into whether you can get to The Internet through that default gateway and whether you have DNS working.
 
Old 04-29-2005, 12:43 PM   #5
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
Will do that tonite as soon as i get back from work. Excellent man, thanks.
 
Old 04-30-2005, 11:55 PM   #6
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Original Poster
Rep: Reputation: 30
I havenīt set up any kind of sharing for internet connection, i have only set up samba server to share files but not connection. Shouldnīt it be enough to have all 3 computers connected to the internet through the switch i have here?

I have ip '10.27.3.183' on this machine, which i tried pinging from my linux box and an error message said 'network is unreachable'. I pinged my localhost '127.0.0.1' and it sent and replied fine. I typed the ifconfig you suggested and i got some lines there that said almost nothing to me. I canīt post it cause as you know my linux box is out of a connection and its really long.

How can i get all three computers working as simple as posible? i donīt want to set up this proxy or shared internet or nothing, just connect to internet each machine on itīs own.

Iīve done some homework on how to fix this. So far iīve read about netstat, proc, iptable, ipchains, route and ifconfig. They donīt come with an option to refresh or ask a remote host for an ip address, in my case, the switch. How can i get the connection back?

I donīt have anything weird and i have not touched the settings on either of the three machines. All i did was plug the cable and thatīs it, somehow both computers got their ip addresses.

Last edited by trebek; 05-03-2005 at 03:42 AM.
 
  


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
Internet Connectivity is a NO-GO Help Please!! ClericPreston Linux - Newbie 1 06-04-2004 08:36 PM
connectivity or not connectivity munkie_poo Linux - Newbie 0 05-07-2004 07:47 AM
Problems with connectivity Viper168 Mandriva 8 10-23-2003 02:47 PM
Connectivity with Exchange 5.5 ghosking Linux - General 1 01-14-2003 05:27 AM
No Network Connectivity dwest576 Linux - Networking 6 12-04-2002 02:59 PM


All times are GMT -5. The time now is 08:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration