We're using RedHat 5.2 (kernel 2.0.36) with the SDL Frame Relay driver
installed for a Riscom N2 card. We also have two NICs, eth1 to a /25
net, and eth0 to two /24 nets that share the same LAN cable. So there
are really four nets here, with three different physical interfaces.
THE PROBLEM:
[root@gw bob]# /usr/sbin/traceroute 204.31.147.5
traceroute: Warning: Multiple interfaces found; using 204.31.147.10 @
eth0
traceroute to 204.31.147.5 (204.31.147.5), 30 hops max, 40 byte packets
1 abraham.xc.org (204.31.147.5) 1.161 ms 0.375 ms 0.345 ms
[root@gw bob]# /usr/sbin/traceroute 207.2.31.66
traceroute: Warning: Multiple interfaces found; using 204.31.147.10 @
eth0
traceroute to 207.2.31.66 (207.2.31.66), 30 hops max, 40 byte packets
1 207.93.223.161 (207.93.223.161) 94.631 ms 526.631 ms 65.710 ms
2 ont-ca-gw1.netcom.net (163.179.42.1) 48.394 ms 52.773 ms 41.734
ms
3 h1-0-28-lax-ca-gw1.netcom.net (165.236.27.209) 63.913 ms 46.626
ms 52.457 ms
^C
[root@gw bob]#
THE QUESTION:
How can I turn the route that looks like
207.2.31.209 0.0.0.0 255.255.255.255 UH 1500 0 0
eth0:0
into
207.2.31.0 0.0.0.0 255.255.255.0 U 1500 0 0
eth0:0
so that packets between 234.56.78.128/25 and 207.2.31.0/24 travel
through eth0:0 rather than through fr0?
CONFIG INFO:
[root@gw bob]# /sbin/ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
RX packets:406 errors:0 dropped:0 overruns:0 frame:0
TX packets:406 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
eth0 Link encap:Ethernet HWaddr 00:60:67:31:16:0D
inet addr:204.31.147.10 Bcast:204.31.147.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:76880 errors:0 dropped:0 overruns:0 frame:0
TX packets:72934 errors:3 dropped:0 overruns:0 carrier:3
collisions:14790
Interrupt:11 Base address:0xec00
eth0:0 Link encap:Ethernet HWaddr 00:60:67:31:16:0D
inet addr:207.2.31.209 Bcast:207.2.31.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
eth1 Link encap:Ethernet HWaddr 00:03:C6:01:03:1C
inet addr:234.56.78.129 Bcast:234.56.78.255
Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:73192 errors:0 dropped:0 overruns:0 frame:0
TX packets:72313 errors:0 dropped:0 overruns:0 carrier:0
collisions:44
Interrupt:10 Base address:0x300
fr0 Link encap:Point-to-Point Protocol
inet addr:207.93.223.205 P-t-P:192.168.9.2 Mask:255.255.255.0
UP POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:1319 errors:0 dropped:0 overruns:0 frame:0
TX packets:1496 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
fr1 Link encap:Point-to-Point Protocol
inet addr:0.0.0.0 P-t-P:0.0.0.0 Mask:0.0.0.0
POINTOPOINT NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
[root@gw bob]#
[root@gw bob]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
207.2.31.209 0.0.0.0 255.255.255.255 UH 1500 0 0
eth0:0
192.168.9.2 0.0.0.0 255.255.255.255 UH 1500 0 0
fr0
207.93.223.161 0.0.0.0 255.255.255.255 UH 1500 0 0
fr0
234.56.78.128 0.0.0.0 255.255.255.128 U 1500 0 0
eth1
204.31.147.0 0.0.0.0 255.255.255.0 U 1500 0 0
eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 3584 0 0
lo
0.0.0.0 207.93.223.161 0.0.0.0 UG 1500 0 0
fr0
[root@gw bob]#
[root@gw bob]# diff /etc/sysconfig/network-scripts/ifcfg-eth0{,:0}
1c1
< DEVICE="eth0"
---
> DEVICE="eth0:0"
4c4
< IPADDR="204.31.147.10"
---
> IPADDR="207.2.31.209"
[root@gw bob]#
[root@gw bob]# cat /etc/sysconfig/static-routes
any net 204.31.147.0 netmask 255.255.255.0 gw 204.31.147.10
any net 207.2.31.0 netmask 255.255.255.0 gw 207.2.31.209
[root@gw bob]#
Any suggestions are welcome!
--
Bob Sutterfield +1 909 794 1151
Mission Aviation Fellowship / MAFlink Tech
mailto:[EMAIL PROTECTED] http://www.XC.Org/bob
Pray Globally - Serve Locally
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]