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.
Hi, I have a server here running Mandriva 2009.1, and it can't see the outside world at all. I can connect to it from another computer on the same network via SSH, and it has been used as an NFS server for some time without issue, but those connections are all in-network as well. I'm trying to install an FTP server, and urpmi just hangs when I try. Then I tried pinging a few addresses and they all come back as "host not found". Here is some hopefully useful information:
I don't really know enough about netstat to know if that's the most helpful output, so please feel free to ask for something else. I also don't have direct control over the hardware or network config apart from the config on the box itself. This is a work server, and I don't do the hardware or networking, just the server itself.
Thanks for any help.
[edit: It may be important to know that the network guy assigned this server a static IP address, and I may not have set that up properly. I got it to respond from within the network, obviously, but this is the first time I've had to test connections to outside the network]
Hi, I have a server here running Mandriva 2009.1, and it can't see the outside world at all. I can connect to it from another computer on the same network via SSH, and it has been used as an NFS server for some time without issue, but those connections are all in-network as well. I'm trying to install an FTP server, and urpmi just hangs when I try. Then I tried pinging a few addresses and they all come back as "host not found". Here is some hopefully useful information:
I don't really know enough about netstat to know if that's the most helpful output, so please feel free to ask for something else. I also don't have direct control over the hardware or network config apart from the config on the box itself. This is a work server, and I don't do the hardware or networking, just the server itself.
Thanks for any help.
[edit: It may be important to know that the network guy assigned this server a static IP address, and I may not have set that up properly. I got it to respond from within the network, obviously, but this is the first time I've had to test connections to outside the network]
You probably don't have a default gateway set, from the sound of it. If everything on the same network can reach it, but you can't get outside that one network, that's probably the case. The default gateway tells things where to go, if it can't be found locally. You should be able to get the address from your network guy (and he should have provided it when he gave you the static address, too).
As root:
Code:
route add default gw <ip address he gave you for default gw>
Also, make sure the netmask he gave you is correct, too, as that can cause funny things to happen as well. You can fix that with:
Code:
ifconfig <interface name> netmask <netmask you were given>
Read the man pages for the route and ifconfig commands, and get the info from your network guy.
Post the output of the /sbin/route command. Do you have a default gateway entry? Which ftp package did you try to install. The most commonly one used may be vsftp. You will want to lock down your server and use a firewall before forwarding the FTP port to your server.
Thanks for the replies, that makes a lot of sense. I'll confirm the gateway and mask with the network guy.
From the route output I see the ip address 192.168.0.0 listed.. the ip for this machine is 192.168.0.31. Should those match, or is 192.168.0.0 for something else?
Thanks.
Code:
[root@localhost matt]# /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 10 0 0 eth0
link-local * 255.255.0.0 U 10 0 0 eth0
Thanks for the replies, that makes a lot of sense. I'll confirm the gateway and mask with the network guy.
From the route output I see the ip address 192.168.0.0 listed.. the ip for this machine is 192.168.0.31. Should those match, or is 192.168.0.0 for something else?
Thanks.
Code:
[root@localhost matt]# /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 10 0 0 eth0
link-local * 255.255.0.0 U 10 0 0 eth0
It's for something else, your local network route.
You are missing the default route. Should look something like this:
Code:
default xx.xx.xx.xx 0.0.0.0 UG 0 0 0 wlan0
The "UG" flags are of note. "G" = Gateway. The man page on route will explain alot..
the 192.168.0.0 is the networkadress of your own network.
You're missing a gateway, i.e. the ip-adress of the router.
Markus
Edit: TBOne was faster than me... the default route is the route for all traffic with a destination outside your own subnet. And this traffic must pass the gateway.
Thanks everyone, that was really helpful. Now I can ping google's ip address, but not google.com. I assume there is something wrong with the DNS setup, but I'm not sure where to start. Or do I just need to restart some services for the change to filter through?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.