• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

No NET access with LINUX

paf077

Golden Member
Hi all.

I have a 3 comps (3 winXP &1 is duaul boot w/linux) network with a router (linksys besfr41) set up with static ip,s with cable modem.
The Nix box is dual boot Win xp/Mandrake9.1, Everything works fine when XP is running, but I can't
connect to the net through Linux. 🙁
I never used Linux, and have been reading everything I could find for the last week, I even bought
2 books, printed out 3 more, read the man, searched all the news groups and links to try and get this
figured out.
All I found was concerning DCHP, but I need to set it up to be static, as I run a SetiQ server on 1 of the other boxes.
Seems the more I read the more lost I get.😕
I Am not an IT or Admin, I am just a Mechanic and know absolutely nothing about HOW all this works.
I decided to install Linux to try it out, all sets up ok, except for LAN & NET access. The ethernet card is
picked up by the system but I can't input the dns address, i put in the box ip and the router gateway ip and subnet, but nothing works.

I would appreciate a walk through to set it up, as I don't even understand these console command things, I AM a real NEWB at linux.
I don't mind to much about the LAN side, as I read that I would have to set up Samba for that. And once the static access is in I'll work on the Lan part.

Thanks for any help on this.

PS: I already checked the excellent FAQ that Electrode set up, but they refered other members here for networking stuff.


Paf
 
Linux Documentation Project (Google for it, they have a lot of mirrors available).

As for your problem sounds like you need to either a) learn more about ifconfig, b) get in Mandrake's network configuration tool and use the exact same settings you have for Windows XP, or c) use DHCP for just that OS (unless that's not possible due to usage reasons).

I know that's not that much help but hopefully some more details will come out of everything.
 
I already printed out the full LNAG and read it twice, but it talks about modem and pppo, which I don't have. notjing like what I
have set up.

Thanks, maybee someone else will know.🙂


Paf
 
Take a look at the files in /etc/sysconfig/network-scripts. Particularly ifcfg-eth0 or something with a different number.
 
Just to be clear, here's my ifcfg-eth0 for my little LAN:

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.4
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
 
paf: firstly, learn about ifconfig and route. Should need be, you can always get a network connection working with those two commands (provided it's loading the drivers for the NIC).

Just ifconfig -h and route -h should give you the info you need.

Basically, you'd configure your interface first using ifconfig like so:
ifconfig eth0 192.168.0.4 mask 255.255.255.0 up to configure the thing and bring the interface up.
Then you'd use route to set your routes:
route add default gw 192.168.0.1 where the ip is the ip address of your 'net gateway.

That's all from memory, but it should be correct. Also, refering to the LDP and other sources is handy. When in doubt though, and without 'net access, man -k is your friend. Just man -k search_term and it will search through all manpages for the search term entered. 🙂
 
I tried all that and still no go!:|

Log shows eth0 working fine, all ip's, mask and gateway, fine.

still no net. HOW is this supposed to work!!!!

I have approx 80 hours of reading done on linux in the last 10 days and I still can't figure out why this
is always not working.

Could I PLEASE have a walk through on this problem, before I take all of 'NIx of and wait another 3 years
to retry it.


Thanlks guys for taking the time to answer. it si very much appreciated.🙂


Paf
 
Hmm... if you are certain everything is configured properly in linux, how certain are you
about the quality of your network cable? Are you sure it isn't a cross-over? Do you have
a link light?
 
get a terminal/console window open and ping 192.168.0.1

Then ping 216.239.51.100

Then ping google.com.

If you get a bad response on the first test, it's prolly a network issue.
If you get a bad response on the second test, it's prolly a router issue.
If you get a bad response on the third test, you prolly don't have dns servers set up correctly.
 
Mucman, There is no crossover, 1nick in each box going to the linsys router. I have the link light , on the router for this box.

The lan AND net work through XP on this same box. Why would it not work with Linux??


Paf
 
Originally posted by: paf077
Mucman, There is no crossover, 1nick in each box going to the linsys router. I have the link light , on the router for this box.

The lan AND net work through XP on this same box. Why would it not work with Linux??


Paf

Why would it not work? Hardware incompatibility or configuration and network settings.
 
I even tried to get to ifconfg in the console, but it said there was none!!:disgust:
rolleye.gif



Paf
 
Originally posted by: paf077
I even tried to get to ifconfg in the console, but it said there was none!!:disgust:
rolleye.gif



Paf

explain this... you were in a shell, typed ifconfig and it spit out an error msg?
 
Originally posted by: paf077
Hi all.

.......

I Am not an IT or Admin, I am just a Mechanic and know absolutely nothing about HOW all this works.
.......
Paf

Aren't cars networks? With wireless headphones, bluetooth cell phone connections, bluetooth lighting solenoids, wireless radio controls, computer controlled ignition, fuel delivery, brakes, transmission.

Sounds like a network to me. You ARE a network tech but just won't admit it.😉😉
 
Originally posted by: paf077
I even tried to get to ifconfg in the console, but it said there was none!!:disgust:
rolleye.gif

Normally it will say this if you aren't root. Try becoming root with su - and enter your root password.

And make sure you're typing ifconfig. I'll assume what you wrote was a typo for now, but it's something to doublecheck.

What does route -n output? Please paste it here and we can try and answer your question. 🙂
 
ifconfig is in /sbin, which is not usually included in the $PATH of non-root users. You should not need to be root to run it though.

So: /sbin/ifconfig -a should give you a print out of your current interface configuration.

netstat -rn | more will show you your route. Make sure the ip address of your router is the default or gateway.

Try:

/usr/sbin/traceroute 198.77.116.39 (I just happen to know that IP address by heart) and see where it stops.

If it stops at the router then the router is the problem. It should get to bahamut.direcpc.com. If it does, then it is time to check other places.

Try /usr/sbin/nslookup I am getting this path from an OpenBSD box, so it may be somewhere else. If you get an error saying it does not exist, just try nslookup. It will tell you if it connects to a dns server. If it does not, check to make sure your /etc/resolv.conf is setup properly.

That may be enough to get you started on. Time to flame you a bit in your other thread 🙂
 
Thanks n0cmonkey , tried the traceroute, nothing, 30pings with returns of * * *. recheck all the setting for eth0 router gateway and dns, all are right.
I will retry to get this after my shoulder operation, when I have time to spend on it. for mow everything is comin OFF.

Thanks anyway.


Paf
 
Back
Top