[plug] Routing between aliased interfaces

Onno Benschop onno at itmaze.com.au
Sun May 25 23:27:27 WST 2003


Hi all,

Why would I want to route between two aliased interfaces you ask, why
not just whack in another NIC?

If I could, I would.

I have a machine connected via Ethernet and a switch to a satellite
modem. The modem gives out *one* address over DHCP. I have a few other
machines that are also connected to the switch.

The eth0 interface receives its configuration from the modem over DHCP.
The eth0:0 interface has a static address of 192.168.0.222.

I can ping (and use the proxy server) from any machine on the switch to
192.168.0.222.

In order for the other machines on the switch to be able to see the net
directly, I think I need to add a route from the 192.168.0.0 network to
the address that the eth0 interface has.

So I dutifully did:

route add -net 192.168.0.0 netmask 255.255.255.0 gw 10.10.4.45

Which did absolutely nothing for the other machines - other than make
the net unreachable even through the proxy.

Other info.

The DHCP server always gives out 10.10.4.45 as the eth0 IP address and
10.10.4.1 as the gateway.

If I make the gw in my route command 10.10.4.1, then nothing works.
If I make the gw 10.10.4.45, then I can ping 192.168.0.222 and
10.10.4.45, but not 10.10.4.1 or the Internet.

Any comments, ideas?

Cheers,

Onno Benschop 

Connected via Optus B3 from S33:37'33" - E115:07'30" (Dunsborough, WA)
-- 
()/)/)()        ..ASCII for Onno.. 
|>>?            ..EBCDIC for Onno.. 
-- -. -. --   ..Morse for Onno.. 

Proudly supported by Skipper Trucks, Highway1, Concept AV, Sony Central, Dalcon
ITmaze   -   ABN: 56 178 057 063   -  ph: 04 1219 8888   -   onno at itmaze.com.au



More information about the plug mailing list