[Shorewall-newbies] ip aliases

Tom Eastep teastep at shorewall.net
Wed Mar 3 07:18:56 PST 2004

On Wednesday 03 March 2004 07:10 am, Wahid Belhaouane wrote:
> Hi.
> I installed shorewall , wonderful , everything is ok.
> just i want to understand how to do something:
> i have in my local network 3 networks on the same interface eth1 (eth0
> is the external interface)
> a:
> b:
> c:
> and and are gateways for other
> computers.
> i executed the commands:
> ip addr add brd dev eth1 label eth1:0
> ip addr brd dev eth1 label eth1:1
> and edit the file hosts as:
> loc    eth1:
> loc    eth1:
> loc   eth1:
> and edit the file interfaces as:
> <space>  eth1,,
> (shorewall tells that the last line (interface file) is wrong: i don't
> understand why) : 1 st question.

Replace the space with a dash ("-") like the documentation instructs you to 
do. You might find the articles http://www.shorewall.net/Multiple_Zones.html 
and http://www.shorewall.net/Shorewall_and_Aliased_Interfaces.html useful.

> 2 nd question : in witch startup file shall i put the "ip addr add...'
> commands , i use redhat 8.0.

You don't -- you use the RedHat Network configuration tool to add ip aliases. 
The second article listed above also shows you another method of executing 
commands on RedHat when an interface is started.

Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ teastep at shorewall.net

More information about the Shorewall-newbies mailing list