PDA

View Full Version : Cannot ping internal network


radu
10th January 2012, 09:59 PM
so, I installed fresh FEDORA 13 on the firwewall server, set up eth0 (for internal) and eth1 (for external), set up the rc.firewall, reboot, but.....

I can ping my own IP: 192.168.2.1 but cannot ping any other internal IPs, like 192.168.2.x
Also, from 192.168.2.x cannot ping this server 192.168.2.1

CAT IFCFG-ETH0 says:

DEVICE=eth0
HADDR=x:x:x:x:x:x
IPADDR=192.168.2.1
GATEWAY=192.168.2.1
NETMASK=255.255.255.0
IPV6INIT=no
BOOTPROTO=static
TYPE=Ethernet
ONBOOT=yes

On RC.FIREWALL I have:

${IPTABLES} -A INPUT -p icmp -j ACCEPT
${IPTABLES} -A OUTPUT -p icmp -j ACCEPT


Need desperate help :(

stevea
11th January 2012, 02:22 AM
WTF ?!!?

IPADDR=192.168.2.1
GATEWAY=192.168.2.1

That makes no sense.

Post the output of
ip addr
ip route

radu
11th January 2012, 05:35 AM

Hi

Managed to make it work on eth0 (internal network interface)

still cannot ping outside on eth1, either like ping 193.x.x.x nor like ping www.google.com

Advice, please

---------- Post added at 07:35 AM ---------- Previous post was at 07:12 AM ----------

The whole story is like this: have a server with 2 NIC cards.
eth0 is used to link to the internal network, eth1 is used to connect to the outside world

Everybody from internal network is accesing outside world using path eth0 -> eth1
eth0 is 192.168.2.1
eth1 is 193.xxx.xxx.xxx

Same server should act as DNS server

can you give an example on how ifcfg-eth0 and ifcfg-eth1 should look like ? I'm stucked :mad:

stevea
11th January 2012, 06:20 AM
If you want to play 'let's keep a secret' no one can help you.

Have you disabled NetworkManager and enabled 'network' service ?
I already asked for the relevant info.

radu
11th January 2012, 12:15 PM
I'm not hiding anything, I really need urgent help. :(

network enabled, networkmanager not disabled. I'll do it now and come back

---------- Post added at 08:36 AM ---------- Previous post was at 08:29 AM ----------

ok, NetworkManager disabled (chkconfig NetworkManager off)

still ping 192.168.2.10 works ok (pinging the internal network using eth0)

but pinging any outside IP using eth1 (e.g. 213.165.70.39) or HTTP (www.google.com) address does not

---------- Post added at 02:15 PM ---------- Previous post was at 08:36 AM ----------

finally somebody helped me .... it was a problem of ifcfg-ethx settings , along with some rc.firewall settings

Happy again !! :)