news <(E-Mail Removed)> wrote:
> I have an ethernet card with two IP-address (eth0 & eth0:1). When I verify
> which IP-address is used as source it turns out eth0:1 and NOT eth0. Is it
> possible to change this so that the source address is that of eth0 again?
Why would you want to? This seems like a very broken thing to be doing.
This is not a trivial thing to do, although I suppose you could use SNAT
on packets going out eth0:1 and SNAT them to the source address of eth0
eth0_ip=1.2.3.4
eth0_1_ip=2.3.4.5
iptables -t nat -A POSTROUTING -o eth0:1 -j SNAT --to-source $eth0_ip
I don't know if this will work, but it's worth a shot. You may also need
to set up connection tracking.
--
Cameron Kerr
(E-Mail Removed) :
http://nzgeeks.org/cameron/
Empowered by Perl!