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.
|
|
03-12-2004, 01:05 PM
|
#1
|
Member
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43
Rep:
|
No ping replies on 127.0.0.1
I currently have a redhat 6.2 linux box sitting on a dmz on our lan. It has always been the only box on the dmz. The firewall it uses as its gateway is 192.168.1.1. It's IP is 192.168.1.2. They are both static IP addresses. I use the box for our primary external DNS as well as mailforwarding using sendmail. It has always worked perfectly but it's time for an upgrade.
I got the new box, installed Mandrake 9.2, postfix, amavisd, bind, etc. and set it up to completely mimic the existing server. I pulled the old machine off the network and shut it down, put the new server on the network using the same IP, subnet, gateway, etc of the old server, and even used the same network cable, and I can't ping ANYTHING. Even itself using 127.0.0.1 or its IP of 192.168.1.2.
To test, I took the server off the DMZ and put it on our 10.1.x.x network and gave it a static IP and I'm able to ping anything I want.
I also, just for kicks, put the old machine back online at its original 192.168.1.2 address and changed the new machine to 192.168.1.3 and I was able to ping the old machine, but still not itself, or the gateway.
Any ideas? It could be something simple, I'm fairly new to linux. LOL
Anything is appreciated.
Thanks in advance!
|
|
|
03-12-2004, 01:17 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Welcome to LQ.
Can you psot the output of:
route -n
ifconfig
|
|
|
03-12-2004, 01:40 PM
|
#3
|
Member
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43
Original Poster
Rep:
|
The route -n looks like this... sorry I couldn't copy it..
IP gateway mask interface
192.168.1.0 0.0.0.0 255.255.255.0 eth0
10.1.26.0 0.0.0.0 255.255.255.0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 lo
The ifconfig looks like this.... (just the important stuff..)
eth0 Link encap: Ethernet
Inet addr: 192.168.1.3 Bcast: 10.1.26.255 Mask: 255.255.255.0
UP BROADCAST RUNNING MULTICAST
RX Packets:5460 errors:0 dropped:0
TX Packets:148 errors:0 dropped:0
lo Link encap: Local Loopback
inet addr: 127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING
Looks like I've got some problems. But I don't know how to change them. :-)
|
|
|
03-12-2004, 01:52 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Take a look at your eth0 config file and set the correct broadcast and gateway:
/etc/sysconfig/network-scripts/ifcfg-eth0
|
|
|
03-12-2004, 03:50 PM
|
#5
|
Member
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43
Original Poster
Rep:
|
I fixed the items in the ifcfg-eth0 file. I rebooted afterwards and it shows up correctly when I look at ifconfig, but I'm still having exactly the same problem. I am totally stumped.
Thanks for the help, and keep the ideas coming.
I REALLY appreciate the help.
|
|
|
03-12-2004, 03:51 PM
|
#6
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
What does the output of the commands I posted before show now?
|
|
|
03-12-2004, 04:09 PM
|
#7
|
Member
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43
Original Poster
Rep:
|
The route -n looks like this...IP gateway mask interface
192.168.1.0_____ 0.0.0.0_____ 255.255.255.0_____ eth0
127.0.0.0_______ 0.0.0.0_____ 255.0.0.0_________ lo
0.0.0.0_________ 192.168.1.1__ 255.255.255.0_____ eth0
The ifconfig looks like this.... (just the important stuff..)
eth0 Link encap: Ethernet
Inet addr: 192.168.1.3 Bcast: 192.168.1.255 Mask: 255.255.255.0
UP BROADCAST RUNNING MULTICAST
RX Packets:5460 errors:0 dropped:0
TX Packets:148 errors:0 dropped:0
lo Link encap: Local Loopback
inet addr: 127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING
|
|
|
03-12-2004, 04:27 PM
|
#8
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Well you have a default route now but the mask is way of - try deleting it:
route del default
Then adding the proper one:
route add default netmask 0.0.0.0 gw 192.168.1.1 dev eth0
|
|
|
03-12-2004, 04:45 PM
|
#9
|
Member
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43
Original Poster
Rep:
|
still didn't work.. giving up for the night.
Thanks for all the help!
|
|
|
03-12-2004, 05:13 PM
|
#10
|
Senior Member
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019
Rep:
|
Do you have a firewall turned on? It is possible to set a firewall to where you cannot ping anything, including 127.0.0.1. If you type iptables -L it will give you your firewall definitions. If you do have one on, the turn it off and try to ping.
|
|
|
03-13-2004, 09:05 AM
|
#11
|
Member
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43
Original Poster
Rep:
|
Ok, thanks. I'll look at that, but I did put the box on the 10.x.x.x network and it worked fine, so I wouldn't think that would be it.
I'll definately look at it though.
Last edited by zzero; 03-13-2004 at 09:08 AM.
|
|
|
03-13-2004, 09:15 AM
|
#12
|
Member
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43
Original Poster
Rep:
|
Another idea.... I'm from the windows world, so I might be totally off base in this question BUT here goes...
In windows, if I ran into a problem that I couldn't figure out.. from corrupted drivers to well, basically any weird problem. I would totally uninstall networking and reinstall it. Is that a possibility or some idea like that just to start all over without wiping out the entire box?
|
|
|
03-13-2004, 09:24 AM
|
#13
|
Member
Registered: Jul 2003
Distribution: RH 7.3 , RH9,RHEL,FC
Posts: 38
Rep:
|
try your kernel flag
/bin/echo "0" > /proc/sys/net/ipv4/icmp_echo_ignore_all
this turns icmp requests back on, also on redhat 6.2 you must likely are using ipchains for a firewall if you are using one at all, try doing an ipchains -L to see if you do have one running
|
|
|
03-13-2004, 10:50 AM
|
#14
|
Member
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43
Original Poster
Rep:
|
Just in case I confused anyone, the Redhat 6.2 box is working fine, it's the Mandrake 9.2 box that I'm having trouble with.
Thanks!
|
|
|
03-15-2004, 10:17 AM
|
#15
|
Member
Registered: Mar 2004
Location: Kentucky US
Distribution: RedHat, Mandrake
Posts: 43
Original Poster
Rep:
|
OK, I feel like an idiot, sorry that I didn't know this. But my pings are working now.
The command to set my icmp_echo_ignore_all to "0" worked.
Thanks soo much everyone!
I'll probably be back in a little while, I think I still have another problem.
Thanks!!
|
|
|
All times are GMT -5. The time now is 11:14 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
|
|