[plug] Routing between aliased interfaces

anthony at woods.hopto.org anthony at woods.hopto.org
Mon May 26 00:30:24 WST 2003


On 25 May 2003, Onno Benschop wrote:

In order for machines on your private network to be able to use the net 
you need to use IP masquerading, but I have tried to no success to do 
masquerading on aliased interfaces, but that doesn.t mean that there is 
not a way.

Anthony
 > 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)
> 



More information about the plug mailing list