Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ok, i hav a linux (mandrake 10.1) and windows (xp) box.
internet is not working in linux but does in windows, altough i am new to linux i hav had help from a fairly knowlagable friend who can not help. i use an adsl router so i have tried lan and adsl connections without result. i have used the exact settins that windows use (and windows works) yet nothing. plz help
First things first, I think that with a router, you'll need to configure a LAN connection to access the internet (I'm assuming that the router plugs into the ethernet port on your machine?). Go into Mandrake Control Centre and a dd a LAN connection, delete any other spurious connections (ADSL, etc.)
The problem could then be either DNS or actual routing. If you can get a LAN connection configured, post back and I'll try and diagnose it with you.
ok, i have done the lan settings i think. I think they are done because when i click 'connect lan' it comes up 'connecting to internet', after a while it says connection complete, then promtly turns to 'not connected' i tried ping 10.0.0.2 afterwards (as advised by a friend) and it came up 'network : Not reachable' , which confuses matters. i have an onboard ethernet adapter if that complicates issues
Type netconfig in a terminal window and set an IP address for your linux machine. This is assuming your router uses a set of allowed ip's. You will need to set one within this range.
In XP open a cmd shell and type 'ipconfig /all' and copy down the IP address, subnet mask, default gateway and DNS servers. Put that information into [whatever graphical utility it is you are using to set it in Linux.]
If that's what you already did, or you do it and it still isn't working open a shell and post the result of trying to ping:
the IP address you gave linux,
the default gateway,
one of the DNS servers,
an Internet IP address like 64.179.4.149
an Internet site by name like linuxquestions.org
ok first of all i tried 'ipconfig' and apparently yhat isnt even a command, i looked down the 'net' usage menu and config isnt there (i tried 'netconfig' and 'net config')
secondly, when i tried pinging 10.0.0.2 (my ip address as set by windows) it says
'network: not reachable'
when i tried pinging google 'ping www.google.com'
it says the domain isnt reachable
I think we need to clarify, when you say you have Windows and Linux, do you mean that one computer dual boots into either, or that you have 2 computers and one has XP while the other has Mandrake and they are both plugged into the same network?
ipconfig is the command you run, not in Linux but in Windows 2000/XP to see what IP address is set. If you run that command in Windows you can see what IP address is set there, to help you (and us) know what address to use in Linux.
When you tried to ping 10.0.0.2 and received the network: not reachable error was that in Linux? In Linux run the command ifconfig to see what IP address is set there, make sure it's set like you wanted it to be.
When you tried to ping google, that was in Linux I'm hoping, was the message 'unknow host' or was it 'destination [host or net] unreachable'?
If you have two computers running at the same time then you need to use different IP addresses for each computer, but they have to be close (on the same subnet.) If you have one computer with both Windows and Linux, set the IP address in Linux to the exact same one that is in Windows, but if you have two computers and the Windows one has an IP address like 10.0.0.2 then set the other computer to be all the same numbers except the last one, which can be any other number but 0, 1 or 255 so 10.0.0.3 or 10.0.0.54 or whatever you want.
i have two computers, a dual boot pc (myn) and an xp machine. Which is why i use a router....
when i set the ip configuration from windows in linux, linux still wont connect (well it comes up 'connected' then quickly changes to 'not connected' (which is confusing))
the ping problem said 'unkmown host' (sorry)
my computer has a different ip address to the other computer, but im trying to use the ip address of my box from windows in linux and keeping the other machine completly the same.
i realise that this hasnt exactly been a walk in the park, so if there is any more advice the plz tell me, if there is nothing else tell me and i can take a hammer to my computer (or just try a new etho card. Thank you for all the help so far.
in xp as darin says u can use the ipconfig command
start>run>cmd this will bring up a terminal window or u can go to start>programs>accessories>command prompt either way u will get to the same terminal window
then type ipconfig>enter this will give u the ip addy u r using for windows + gateway + subnet OR u can ipconfig/all which will provide ur ISP dns server addy and the type of lan card u r using + mac addy + whether u have dhcp enabled.
In linux to use the command ifconfig u must again use a terminal window and change to root user.
su>enter password>ifconfig -a
try both these commands using each OS and post the output :-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.