[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re-assign Ip Interface



On Mon, Sep 17, 2001 at 11:06:06PM -0400, Bao C. Ha wrote:
> I have a question about the following configuration.  A
> Linux server with two real interfaces:
> 
> 1. PPP: ppp0 with address 10.1.1.5
> 2. Ethernet with ip aliases.
>    eth0 w/ address 192.168.0.1
>    eth0:1 w/ real public IP
> 
> The default gateway is 10.1.1.1 but it can route the
> real public IP to the internet.
> 
> How do I setup so that the server will initiate IP
> connections with the real public IP of eth0:1, instead
> of the faked IP of the PPP?

Does something like 'route del default gw 10.1.1.1; route add default gw
10.1.1.1 dev eth0:1' help? I haven't had a chance to try it out yet,
though.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: