LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   No connectivity (https://www.linuxquestions.org/questions/linux-networking-3/no-connectivity-318306/)

trebek 04-28-2005 10:57 PM

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?

Obie 04-28-2005 11:19 PM

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.

trebek 04-29-2005 04:28 AM

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. :)

Darin 04-29-2005 09:43 AM

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.

trebek 04-29-2005 11:43 AM

Will do that tonite as soon as i get back from work. Excellent man, thanks. :study:

trebek 04-30-2005 10:55 PM

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? :scratch:

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.


All times are GMT -5. The time now is 09:31 PM.