I have successfully configured a second ip address as an alias to my one
ethernet card. The address is on a different network, and I want to be
able to use my linux box as a gateway to two networks.
Here is what I have:
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:33 errors:0 dropped:0 overruns:0
TX packets:33 errors:0 dropped:0 overruns:0
eth0 Link encap:10Mbps Ethernet HWaddr 00:A0:C9:69:04:A8
inet addr:188.8.131.52 Bcast:184.108.40.206 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22078 errors:0 dropped:0 overruns:0
TX packets:8613 errors:0 dropped:0 overruns:0
Interrupt:11 Base address:0x6000
eth0:0 Link encap:10Mbps Ethernet HWaddr 00:A0:C9:69:04:A8
inet addr:220.127.116.11 Bcast:18.104.22.168 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:0 errors:0 dropped:0 overruns:0
heres route -n
Kernel routing table
Destination Gateway Genmask Flags MSS Window Use
22.214.171.124 * 255.255.255.0 U 1500 0
126.96.36.199 188.8.131.52 255.255.255.0 UG 1500 0 0
184.108.40.206 * 255.255.255.0 U 1500 0
127.0.0.0 * 255.0.0.0 U 3584 0
default 220.127.116.11 * UG 1500 0
I have a route on another machine (18.104.22.168) which forwards all packets
destined to a 22.214.171.124 address to the Linux Computer.
Everthing looks fine, and I can ping machines on the 126.96.36.199 network from
the Linux computer, but I cannot ping to the 188.8.131.52 network from the
router(184.108.40.206), or from any computer on the 220.127.116.11 network. I have
Ip forwarding enabled, but am I missing something?
Here is what a traceroute shows from a Win 95 machine on the 18.104.22.168
network. It's gateway is set at 22.214.171.124, which is a router, which
should forward packets to the Linux computer. The Linux machine should
then forward to the machine on the 126.96.36.199 network.
Tracing route to 188.8.131.52 over a maximum of 30 hops
1 1 ms <10 ms <10 ms linux [184.108.40.206]
2 * * * Request timed out.
3 * * * Request timed out.
4 * * * Request timed out.
5 * * * Request timed out.
It looks like the router is correctly forwarding the traffice to the Linux
computer, but after that, nada.
Any suggestions? Is this even possible to do through an ip alias? Thanks,