Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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'm a newbie, and I'm having problem with installing 2 nic on red hat 7.1. I have successfully assigned an local IP to eth0, and I want to connect the other nic (eth1) to a valid static IP. When I ran the ifconfig, the status of both nics are up. The problem is that I can ping the eth0 (the local IP), but not the eth1 (the valid static IP).
I need the real static ip on the eth1 because I'm planning to have my own webserver (apache & php).
I set the eth0 to 192.168.1.6 (255.255.255.0) and the default gateway is 192.168.1.1. The eth1 (the one that is supposed to connect to the internet) is set at 216.52.172.71 (255.255.255.240).
Now, the problem is that I can ping eth0 from another computer, but I can not ping eth1.
I tried to ping from the linux to my other windows nt server (216.52.172.7..), it actually goes out from eth1 which is 216.52.172.71. Looks like that it can go out, but when I tried to ping the address from another machine, it gives me time out.
why have you set a gateway? surely that'll screw stuff up, you only set a gateway on internal nodes on a network. i'd recommend looking firestarter, which goes over if_forward annd that gubbins for you
if you are on the internet than the default gateway should be the server on the internet, not some internal server ip.
the routing for the internal number is automatically routed to ips on the same network. The internet will need the default gateway because the ips are not on your network.
you should do this command
route del default
then if dhcp is used to connect to the internet it should set it to the right gateway
or if it's static then you need to know the correct number and use this command
route add default gw ???.???.???.???
Last edited by DavidPhillips; 01-18-2002 at 08:08 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.