Fedora Networking


Recommended Posts

OK, ive got fedora installed, and all is running fine, except for the fast that fedora cannot find itself an IP address when its loading...

Even when im logged in and try to find a network IP it wont give itself one and just wont let me connect to my network :(

I'm using an old 3com network card, should i get a new one and try with that?

TIA

Link to comment
Share on other sites

Same problem here, it doesn't get an IP from the DHCP on my local network.

I fixed it by giving it a static IP.

ifconfig eth0 down
ifconfig eth0 192.168.0.5 broadcast 192.168.0.255 netmask 255.255.255.0
ifconfig eth0 up
ping 192.168.0.1
route add default gw 192.168.0.1 eth0
route

I can acces the internet through my router when I use this methode.

EDIT: you may need to enter a nameserver.

I always do this in KDE.

(I can't check it because I removed my Fedora Core 1 yesterday.)

EDIT2:

replace 192.168.0.5 by the IP you want to give to your fedora.

replace 192.168.0.1 by the IP of your router.

replace 255.255.255.0 by your netmask.

replace 192.168.0.255 by the last IP you want your network to have (i believe 255 is the end of the range).

eth0 is the network device (change if you use another device, for example: eth1)

EDIT3:

If you want to check if you have acces to the internet without the nameserver:

ping 216.239.59.99

(this will ping www.google.nl)

Edited by bsquirle
Link to comment
Share on other sites

I have not had a problem getting a DHCP-served Dynamic IP.

I have a cable modem, which goes immediately into my Linksys router to my PCs (2 cat5, 2 wireless, plus my wireless PDA).

If what Emon posted doesn't help, let me know, and I will research it a bit more on my PC to see why it works for me and not on yours...

BTW, 3com cards should all work fine in Linux, so it is unlikely the card or compatibility issues.

Link to comment
Share on other sites

OK, ive tried adding the nameservers as 0.0.0.0 (which is configured on my router) and setting them as the same as on my other PC's (63.something). This did not work.

I've tried giving it a manual IP with the DHCP server on (the next one in the sequence), and with the DHCP server off. Still no joy.

Ive got the linksys cable router and the latest firmware on it.

Please will you help me as i would like to get my server online :)

Link to comment
Share on other sites

Here is a copy of my /etc/resolv.conf

; generated by /sbin/dhclient-script
search charter.net
nameserver 24.159.64.20
nameserver 24.159.64.21

You can also use the GUI and select "System Settings" > "Network" to call up a tabbed window to allow you to enter the DNS data directly.

You shouldn't really have to do much with the router... My Linksys worked right out of the box (although I did modify settings to improve security and limit wireless access).

From all what may have been happening on your computer, we almost want to start from scratch. :(

Link to comment
Share on other sites

Ill add that to my resolv.conf :)

With your router, do your NAT ip addresses start at 192.168.1.100 like mine?

I've put my router back to what it was set on (to make my other pc's work) and put fedora back as it was...

Link to comment
Share on other sites

Ill add that to my resolv.conf :)

With your router, do your NAT ip addresses start at 192.168.1.100 like mine?

I've put my router back to what it was set on (to make my other pc's work) and put fedora back as it was...

Errr... If you add my settings to your resolv.conf file, it may not work very well, as it will try to access charter's DNS servers to resolve IP addresses. It will either be a slight delay slower than if you used your own ISPs DNS servers, or it won't work at all. (I think it will, but just be a little slower, but I have been wrong many times before!)

If you have a Windows PC, you can go to the network settings there and look up your ISPs DNS entries and add the correct ones to your resolv.conf file.

Yea, my router starts assigning at 192.168.1.100. That is changeable on your router's DHCP.htm page.

If you need screenshots of my Linksys settings, I can provide them to you...

Link to comment
Share on other sites

Ive tried adding the same DNS as a windows pc (i guessed yours was a different ISP) on my network, but still no luck :(

I am fine with configuring my router (i have got a range of pc's working with it) and i know a bit about layered networking, but i cant get this to work, lol.

Link to comment
Share on other sites

Ok...

When you do a /sbin/ifconfig eth0, what do you get? Something like this?

eth0      Link encap:Ethernet  HWaddr 00:00:21:DA:E6:0D
          inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1005522 errors:0 dropped:0 overruns:0 frame:0
          TX packets:927811 errors:0 dropped:0 overruns:0 carrier:0
          collisions:1652 txqueuelen:1000
          RX bytes:737372773 (703.2 Mb)  TX bytes:238964471 (227.8 Mb)
          Interrupt:11 Base address:0xd000

You should be assinged an IP in the 192.168.1.100-150 range (more likely near 100-102).

If so, you should be able to ping your router at 192.168.1.1 (I changed mine to .1.2, because of another router I had).

If you can ping it, you should be able to get out. Try pinging any other PCs you have on your router (192.168.1.10x), and see if the router is passing your pings out again to other PCs.

Then try pinging your cablemodem. Mine is a Motorola Surfboard at 192.168.100.1.

From there ping the DNS servers. And beyond, there be the Interweb! :alien:

Link to comment
Share on other sites

ok, well ive run that but i dont have the line

inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0

and i habe 400 odd TX packet errors...

Also my interrupt is 5 and not 11, does that matter?

Link to comment
Share on other sites

ok, well ive run that but i dont have the line

and i habe 400 odd TX packet errors...

Also my interrupt is 5 and not 11, does that matter?

If you don't have the line that states your IP, subnet, broadcast data, then you aren't being served an IP from your router... :no:

But you already knew this.. :rofl:

So, we can try to figure out WHY it isn't happening.

Or, I think you can set your IP to something like 192.168.1.200 (or .30 or anything you aren't likely to confilct with)

Set your Subnet, and your boradcast will be determined automatically.

do a man ifconfig to find out specific info on setting these individually. It is very easy.

The Tx errors are because you aren't linked. :(

Use a static for now, and see if it works! :D

Link to comment
Share on other sites

Yep, i gave myself the ipaddress 192.168.1.200 (and ive got the line that i didnt have before) but i still cant ping ANY address on my network. When i try to go to the router config in mozilla, it says "COnnection refused". And not a timout which makes me think the packets are blocked. Although i cant ping it :s

Do you have msn? because that would be easier...

Link to comment
Share on other sites

Yep, i gave myself the ipaddress 192.168.1.200 (and ive got the line that i didnt have before) but i still cant ping ANY address on my network. When i try to go to the router config in mozilla, it says "COnnection refused". And not a timout which makes me think the packets are blocked. Although i cant ping it :s

Do you have msn? because that would be easier...

MSN?!?! :no: I am a 100% Linux user...

However, I do have amsn (a client that works on the MSN network). ;)

I agree that this may be better worked out more directly, but I am working odd night shifts for a while. I'll send you a PM on here with my amsn name and we can try to catch each other tomorrow during the day (or nights tomorrow- since I have that day off). I am on Central Time in the US, so that is GMT +6, I think.

In the mean time, do you have anyone nearby that has played with Linux before? Perhaps looking up a local user group will get you some local contacts?

Link to comment
Share on other sites

In the mean time, do you have anyone nearby that has played with Linux before? Perhaps looking up a local user group will get you some local contacts?

One of my close friends is a linux user but he has no experiance with the networking side of it (he setup a proxy on one of his computers and daisy chained them) but he has been helping me getting to grips with rpm's and compiling things.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.