<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 07/18/2012 03:03 AM, cute candy
wrote:<br>
</div>
<blockquote
cite="mid:CAJUQ4Xu-CYTsYBnLtMY0dmmzyHGF51ipBmDLKswYaKpp_=NkSQ@mail.gmail.com"
type="cite">Hi All,<br>
<br>
I am using kernel version "kernel-ml-PAE-2.6.39-4.1.el5.
<div id=":1v">elrepo.i686.rpm". My machine has two network
interfaces eth0 and eth1. I configured IP on both the
interfaces. Below is the snippet.<br>
<br>
eth0 Link encap:Ethernet HWaddr 00:15:17:61:D2:16<br>
inet addr:10.77.247.172 Bcast:10.77.247.175
Mask:255.255.255.240<br>
inet6 addr: 1701::215:17ff:fe61:d216/64 Scope:Global<br>
inet6 addr: fe80::215:17ff:fe61:d216/64 Scope:Link<br>
inet6 addr: 1701::59b0:2825:8287:29b8/64 Scope:Global<br>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:77 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:74 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:1000<br>
RX bytes:11432 (11.1 KiB) TX bytes:7725 (7.5 KiB)<br>
Interrupt:17 Memory:e8180000-e81a0000<br>
<br>
eth1 Link encap:Ethernet HWaddr 00:15:17:61:D2:17<br>
inet addr:10.77.243.154 Bcast:10.77.243.255
Mask:255.255.255.128<br>
inet6 addr: 5abe::215:17ff:fe61:d217/64 Scope:Global<br>
inet6 addr: 1901::215:17ff:fe61:d217/64 Scope:Global<br>
inet6 addr: fe80::215:17ff:fe61:d217/64 Scope:Link<br>
inet6 addr: 5abe::9d72:9c93:78c0:e6f6/64 Scope:Global<br>
inet6 addr: 1901::9d72:9c93:78c0:e6f6/64 Scope:Global<br>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:2423 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:137 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:1000<br>
RX bytes:214114 (209.0 KiB) TX bytes:9211 (8.9 KiB)<br>
<br>
lo Link encap:Local Loopback<br>
inet addr:127.0.0.1 Mask:255.0.0.0<br>
inet6 addr: ::1/128 Scope:Host<br>
UP LOOPBACK RUNNING MTU:16436 Metric:1<br>
RX packets:15851 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:15851 errors:0 dropped:0 overruns:0
carrier:0<br>
collisions:0 txqueuelen:0<br>
RX bytes:4133739 (3.9 MiB) TX bytes:4133739 (3.9 MiB)<br>
<br>
I configured default gateway in eth0. Below is the snippet.<br>
<br>
[root@ACS172 ~]# route -A inet -n<br>
Kernel IP routing table<br>
Destination Gateway Genmask Flags Metric Ref Use Iface<br>
10.77.247.160 0.0.0.0 255.255.255.240 U 0 0 0 eth0<br>
10.77.243.128 0.0.0.0 255.255.255.128 U 0 0 0 eth1<br>
0.0.0.0 10.77.247.161 0.0.0.0 UG 0 0 0 eth0<br>
<br>
Issue:<br>
<br>
The issue is IP configured in eth1(10.77.243.154) is not pinging
from other subnets(other than 10.77.243 network in my case). I
captured TCP dump and could see ICMP request reaches the eth1
but ICMP response is not sent back.<br>
<br>
Please let me know anyone faced this issue and how to resolve
it. I am blocked because of this issue, any help would be really
helpful.<br>
<br>
Thanks,<br>
Prem.</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
elrepo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:elrepo@lists.elrepo.org">elrepo@lists.elrepo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.elrepo.org/mailman/listinfo/elrepo">http://lists.elrepo.org/mailman/listinfo/elrepo</a>
</pre>
</blockquote>
<font face="sans-serif">Did you tcpdump on the other interface to
see if the icmp replys were going out the default interface? If so
you need to set up the appropriate<br>
routing information on your box. Probably requires src based
routing.<br>
<br>
Below is a script I use.<br>
<br>
I get the following from a database:<br>
As an example you might use:<br>
<br>
</font><tt>SRC_ADDR=</tt>10.77.243.154<br>
<tt>DEV=eth1<br>
DFLT_RT=</tt>10.77.243.128<br>
<tt>if [ -z "${SRC_ADDR}" ] || [ -z "${DEV}" ] || [ -z "${DFLT_RT}"
]<br>
then<br>
echo "missing info"<br>
exit<br>
fi<br>
<br>
if [ `id -un` != "root" ]<br>
then<br>
echo "Must be run as root"<br>
exit<br>
fi<br>
<br>
# add a new routing table called second<br>
RC=`/bin/egrep second /etc/iproute2/rt_tables`<br>
if [ "$RC" == "" ]<br>
then<br>
echo "200 second" >> /etc/iproute2/rt_tables<br>
fi<br>
<br>
cnt=`/sbin/ip rule list | /bin/egrep '200:' | /usr/bin/wc -l`<br>
for (( i=0;i<$cnt;i++ ));<br>
do<br>
/sbin/ip rule del prio 200<br>
done<br>
<br>
# add a rule that says when to use table second<br>
/sbin/ip rule add from ${SRC_ADDR} table second prio 200<br>
# add a route to table second<br>
/sbin/ip route add default via ${DFLT_RT} dev ${DEV} src
${SRC_ADDR} table second<br>
# flush the routing cache<br>
/sbin/ip route flush cache<br>
/sbin/ip rule list<br>
/sbin/ip r s table second</tt><font face="sans-serif"><br>
<br>
<br>
</font>Hope this helps.<br>
<div class="moz-signature">-- <br>
Stephen Clark<br>
<b>NetWolves</b><br>
Director of Technology<br>
Phone: 813-579-3200<br>
Fax: 813-882-0209<br>
Email: <a class="moz-txt-link-abbreviated" href="mailto:steve.clark@netwolves.com">steve.clark@netwolves.com</a><br>
<a class="moz-txt-link-freetext" href="http://www.netwolves.com">http://www.netwolves.com</a><br>
</div>
</body>
</html>