Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
11-21-2004, 12:39 AM
|
#1
|
Member
Registered: Sep 2004
Distribution: SuSE 9.0, Red Hat 9.0, Fedora core 1
Posts: 70
Rep:
|
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
|
|
|
11-21-2004, 11:08 AM
|
#2
|
Member
Registered: Nov 2004
Location: Netherlands (east)
Distribution: debian, suse, novell linux desktop
Posts: 81
Rep:
|
maybe your gateway is not alowing your MAC to the internet? or it allowes only specific protocols?
-cheers-
|
|
|
11-21-2004, 01:35 PM
|
#3
|
Member
Registered: Mar 2004
Distribution: Fedora
Posts: 254
Rep:
|
yes may be your gateway droping icmp?
however do a try with "netconfig" to reconfigure your network interface and then "services network restart"
regards
|
|
|
11-21-2004, 03:52 PM
|
#4
|
Member
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411
Rep:
|
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?
|
|
|
11-21-2004, 06:00 PM
|
#5
|
Member
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835
Rep:
|
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.
|
|
|
11-21-2004, 06:03 PM
|
#6
|
Member
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835
Rep:
|
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.
|
|
|
11-22-2004, 01:14 AM
|
#7
|
LQ Newbie
Registered: Nov 2004
Posts: 10
Rep:
|
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
|
|
|
11-22-2004, 01:34 AM
|
#8
|
Member
Registered: Sep 2004
Distribution: SuSE 9.0, Red Hat 9.0, Fedora core 1
Posts: 70
Original Poster
Rep:
|
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
|
|
|
11-22-2004, 10:06 AM
|
#9
|
Member
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411
Rep:
|
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
|
|
|
11-22-2004, 09:12 PM
|
#11
|
Member
Registered: Sep 2004
Distribution: SuSE 9.0, Red Hat 9.0, Fedora core 1
Posts: 70
Original Poster
Rep:
|
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
|
|
|
11-22-2004, 10:36 PM
|
#12
|
Member
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835
Rep:
|
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.
|
|
|
11-22-2004, 11:51 PM
|
#13
|
Member
Registered: Sep 2004
Distribution: SuSE 9.0, Red Hat 9.0, Fedora core 1
Posts: 70
Original Poster
Rep:
|
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
|
|
|
11-23-2004, 01:02 AM
|
#14
|
Member
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835
Rep:
|
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...
|
|
|
11-23-2004, 01:23 AM
|
#15
|
LQ Newbie
Registered: Nov 2004
Posts: 10
Rep:
|
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 01:37 PM.
|
|
|
All times are GMT -5. The time now is 12:02 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|