Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
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.
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?
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.
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.