LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-20-2004, 11:39 PM   #1
RohanShrivastav
Member
 
Registered: Sep 2004
Distribution: SuSE 9.0, Red Hat 9.0, Fedora core 1
Posts: 70

Rep: Reputation: 15
network card configuration in FC2


Hi!!,

I am trying to configure the network card under Fedora Core2.
So that i can acces internet in my private network. So for this
I placed my static id 192.168.100.10 and the gateway's IP address (192.168.100.1). I placed this address in the appropriate text box. (System tools->Network)

When i tried to ping my coleagues systems then it works well and the system responds, but when i try to connect to gateway it does not respond, neither it connects to Internet (May be ping is disabled at server).

Also when i tried to ping "google.com" It resolved the name with the valid IP address, so it seems that the DNS is working. How come?

Any idea ?, how can i connect to Internet?

Thanks & Regards
-Rohan Shrivastava
 
Old 11-21-2004, 10:08 AM   #2
goestin
Member
 
Registered: Nov 2004
Location: Netherlands (east)
Distribution: debian, suse, novell linux desktop
Posts: 81

Rep: Reputation: 15
maybe your gateway is not alowing your MAC to the internet? or it allowes only specific protocols?

-cheers-
 
Old 11-21-2004, 12:35 PM   #3
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
yes may be your gateway droping icmp?
however do a try with "netconfig" to reconfigure your network interface and then "services network restart"

regards
 
Old 11-21-2004, 02:52 PM   #4
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
which type of os is acting as ur gateway? I presume u do not have direct internet connection to your system. Does the gateway machine have a firewall that is denying u access?
 
Old 11-21-2004, 05:00 PM   #5
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Double check your gateway setting by typeing "route" at the prompt. If the gateway is listed as default (or I think, sometimes 0.0.0.0) then the Gateway is probably blocking you.

It is possible that the Gateway is not returning icmp (includeing ping) requests, but is willing to let you out to the internet. If your default gateway setting just isn't takeing for some reason, you may get this behavior.

Good luck.
 
Old 11-21-2004, 05:03 PM   #6
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Also, you may check the dns nameservers in /etc/resolv.conf . I neglected to take into account that dns is resolving. Maybe your gateway is getting set as a nameserver but not a gateway. Whatever. Keep us posted.
 
Old 11-22-2004, 12:14 AM   #7
Keith106
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Rep: Reputation: 0
OK, I have the identical problem. Installed Fedora Core 2 (completely wiped the disks clean). System comes up, I can log in, and run the game programs. I had been running Windows 2000 on this machine for years, it is plugged into the local net so I am confident about the hardware.

But, I can't see anything on the network. I am a complete newbie to Linux, so I may be missing something really obvious. There appeared some devices "eth0" & "eth0:1". Initially these would not start, claiming it failed to get address. So, I set them up with static IP addresses, set the net mask, and the gateway to settings that should be fine. The computer can ping itself, but can not ping the gateway! I am using IP addresses so there is no issue with looking up names. Of course, if it can not ping the gateway, you can't ping anything else. Other machines on the net can not ping this IP address. I double checked the network cable, and the network card's diagnostic light indicates that it is connected to the hub.

ALSO, when I try to run "ifconfig" it says there is no command with that name. Is that expected on FC2?

I don't even know what diagnostic programs to run. How best can I find out what is wrong?

-Keith
 
Old 11-22-2004, 12:34 AM   #8
RohanShrivastav
Member
 
Registered: Sep 2004
Distribution: SuSE 9.0, Red Hat 9.0, Fedora core 1
Posts: 70

Original Poster
Rep: Reputation: 15
Thanks a lot for all the replies. but unfortunately after your suggestions
still I am unable to access Internet.

-- I tried to configure network card by netconfig and restarted the network daemon
(/etc/rc5.d/S10network). but still the problem is same.

-- I tried by typing route at the prompt, It has the entry for the default gateway as
"default 192.168.100.1 0.0.0.0 UG 0 0 0 eth0" seems to be correct.

-- I checked the file resolv.conf it has the proper entry for the name server.

-- I also checked the /etc/sysconfig/networking/devices/ifcg_eth0 file it has all the
correct entries, Like default GW, netmask, IP addrs.

-- I think there is no Problem for MAC because it works well in XP, in my system; but in FC2 it is creating problem.

-- I don't know about the firewall setting, I have asked for that will & let you know soon.

The network is in 10Mbps-Full Duplex, and the server is in WinXP.
So for that i configure the net card by using mii-tool command as
"mii-tool -F 10baseT-FD eth0".
It changes the setting; I checked it by "mii-tool eth0".


Waiting for your answers...

Thanks & Regards
-Rohan Shrivastava
 
Old 11-22-2004, 09:06 AM   #9
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
have u ran the internet connection sharing wizard on the xp machine? It usually gives a default gateway of 192.168.0.1 and subnet 255.255.255.0.
On the xp machine go to programs>accessories>command prompt and type ipconfig/all this will give u the default gateway addy (after running ICS) for u to add in ur /etc/resolv.conf
 
Old 11-22-2004, 01:37 PM   #10
BlueAxon
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Rep: Reputation: 0
I have the same problem with FC3.... kind of dissapointed that it takes so much efforts to setup simple networking..

http://www.linuxquestions.org/questi...hreadid=257709
 
Old 11-22-2004, 08:12 PM   #11
RohanShrivastav
Member
 
Registered: Sep 2004
Distribution: SuSE 9.0, Red Hat 9.0, Fedora core 1
Posts: 70

Original Poster
Rep: Reputation: 15
Hi Mermxx,

Thanks a lot for the suggestion,

I tried to find out the default gateway of 192.168.100.1, but there is no default gateway for this address, actually at the server there are two connections one is having an ip address 192.168.100.1 and the other is connected to internet and is shared in the LAN, and the shared internet connection's IP address and its netmask is different.

Also i could not understand the reason for placing the default gateway of "192.168.100.1" in resolv.conf, as far i know this file only keeps the ip addresses of the DNS servers or local domain name.

I am still unable to connect internet.....

Thanks & Regards
-Rohan Shrivastava
 
Old 11-22-2004, 09:36 PM   #12
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
The reason many people need to add their default gw to their /etc/resolv.conf file is because their default gw is also their nameserver. You mentioned at the beginning, though, that you could get google's ip address by trying to ping. This means that your computer has successfully retrieved this address from one of the nameservers in your /etc/resolv.conf already. If your gateway is not in there then I would not worry about it.

On the other hand, if your gateway is not in /etc/resolv.conf, that means that the dns request is being answered from somewhere else. Are your nameservers local or internet machines?

TO: Keith106

There is a distro that I have seen (and it may have been Fedora) that does not set the path properly for the root user. Try running "/sbin/ifconfig". I would be astonished if Red Hat didn't include it.

Quote:
Of course, if it can not ping the gateway, you can't ping anything else.
Not true. Some gateways will not tolerate being pinged. If you try to ping it, it will ignore you. Yet many of these will let you ping things on the other side of them.

Of course it is true if you cannot get packets to the router at all. As an indirect example: you should always be able to ping yahoo and google, but you will never be able to ping msn or microsoft. This doesn't mean that you cannot talk to them; it just means that they wont respond to a ping request.
 
Old 11-22-2004, 10:51 PM   #13
RohanShrivastav
Member
 
Registered: Sep 2004
Distribution: SuSE 9.0, Red Hat 9.0, Fedora core 1
Posts: 70

Original Poster
Rep: Reputation: 15
resolv.conf does not have the ip address of Gateway, it just has the address
of the nameserver and nameserver is internet machine (does not belong to
local network).

Thanks & Regds
-Rohan Shrivastava
 
Old 11-23-2004, 12:02 AM   #14
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
You could try pinging any number of web servers, just to see if you get ip addresses back. Just any site that you could think of: yahoo.com, google.com, cnet.com, download.com, msn.com, microsoft.com, etc.

If you are getting addresses (as you suggested that you are), and if all your nameservers are internet machines, then you are getting though the gateway. Now it's a matter of determining what is keeping other packets, like pings and http from getting out. I would investigate the router. By the way, are the other computers on your local net on a Windows NT domain? (right click on my computer->properties->look for identity or computer name. See if it says domain or workgroup.)

I'm not yet the greatest at linux networking, but I would recommend disableing the firewall on your machine temporarily to see if your machine is keeping itself from the net (doubtful, but possible). Try "iptables -L" to see the rules in place. You can clear them with "iptables -F". You may need to change the default behavior on some of the chains such as: "iptables -P OUTPUT ACCEPT". Hopefully I'm not missing something here...
 
Old 11-23-2004, 12:23 AM   #15
Keith106
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Rep: Reputation: 0
gd2shoe: thanks for the tip. Yes I found /sbin/ifconfig as well as /sbin/route. Also you are right about the pinging, but in this case my gateway is a LinkSys Router and I have it configured to respond to ping on the internal LAN. My windows PC's can ping it, but the Linux can not.

I have set up my internal network on the rather unconventional address of 106.106.106.* (because I imagine picking an arbitrary number like that might be harder to hack, but I don't really know). I have been using this internal address for years with the windows computers. Do you think it is OK with Linux?

Code:
$ route -n
106.106.106.0     |  0.0.0.0          | 255.255.255.0  
169.254.0.0       |  0.0.0.0          | 255.255.0.0
127.0.0.0         |  0.0.0.0          | 255.0.0.0
0.0.0.0           |  106.106.106.1    | 0.0.0.0
My gateway is configured as 106.106.106.1 so, does this look correct?

/etc/resolv.conf has the right settings for the two DNS servers I entered, but I assume it is not getting there. Again, the windows computers can ping this addres, but the Linux can not. Ping always says host "unreachable" (not timed out) which in my part experience means something is wrong with routing I think.

Any ideas on what to try next?

-Keith

Last edited by Keith106; 11-25-2004 at 12:37 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 10 network configuration. Problem with 8139 network card drivers ! Padmakiran Linux - Networking 8 03-27-2007 06:48 AM
network card configuration problem amrogers3 Linux - Networking 5 02-24-2004 01:09 PM
Network Card Configuration LoRd Of XAoS Linux - Newbie 7 08-11-2003 09:14 AM
network card configuration jmono Linux - Hardware 1 05-06-2003 07:52 PM
Network card configuration JoeySlack Slackware 6 12-20-2002 12:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration