Hello,
I have added 2 NIC cards in one of my CentOS machines.
Code:
eth0 : 10.10.10.x
eth1 : 192.168.0.x
Now the problem which I am facing is I am not able to ping eth1 from my client machines. In case I disable eth0 then eth1 becomes active and then I am able to ping eth1. But I want both the NICs to be enabled and I should be able to ping both of them from both the network.
I tried ip_forward as well but doesnot seems to be working.
Code:
# cat /proc/sys/net/ipv4/ip_forward
1
What am I missing?
Here are outputs of few commands
Code:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
10.10.10.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 192.168.0.235 0.0.0.0 UG 0 0 0 eth1
Code:
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:56:8A:22:B6
inet addr:10.10.10.155 Bcast:10.10.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13590 errors:0 dropped:0 overruns:0 frame:0
TX packets:2967 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1031558 (1007.3 KiB) TX bytes:247007 (241.2 KiB)
Interrupt:18 Base address:0x2024
eth1 Link encap:Ethernet HWaddr 00:50:56:8A:14:E1
inet addr:192.168.0.114 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7973 errors:0 dropped:0 overruns:0 frame:0
TX packets:115 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:955557 (933.1 KiB) TX bytes:13072 (12.7 KiB)
Interrupt:16 Base address:0x20a4
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2858 errors:0 dropped:0 overruns:0 frame:0
TX packets:2858 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4320884 (4.1 MiB) TX bytes:4320884 (4.1 MiB)