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

Re: ip aliasing, virtual interfaces and incorrect source addresses...



In article <62662.171.72.5.225.1072214630.squirrel@tls.okcomputer.org> 
matthew@okcomputer.org writes:
>I have a host (eth0 = 10.0.30.251) to which I recently added a virtual
>interface (eth0:0 = 10.0.30.249).  Now all  traffic that originates from
>this host has the source address of eth0:0, which is causing some problems
>with a firewall that I don't control.

I recomend using the ip command (in the iproute package) rather than
ifconfig and route.  It allows you to control details that the other
commands don't.

For example, to set up a route to 10.0.30.0/24 using source address
10.0.30.251:

ip route add 10.0.30.0/24 dev eth0 src 10.0.30.251


-- 
Blars Blarson			blarson@blars.org
				http://www.blars.org/blars.html
With Microsoft, failure is not an option.  It is a standard feature.



Reply to: