[Shorewall-newbies] ip aliases
teastep at shorewall.net
Wed Mar 3 07:18:56 PST 2004
On Wednesday 03 March 2004 07:10 am, Wahid Belhaouane wrote:
> 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: 192.168.54.0/24
> b: 10.90.10.0/24
> c: 172.20.90.0/24
> 192.168.54.250 and 10.90.10.250 and 172.20.90.250 are gateways for other
> i executed the commands:
> ip addr add 10.90.10.250/24 brd 10.90.10.255 dev eth1 label eth1:0
> ip addr 172.20.90.250/24 brd 172.20.90.255 dev eth1 label eth1:1
> and edit the file hosts as:
> loc eth1:192.168.54.0/24
> loc eth1:10.90.10.0/24
> loc eth1:172.20.90.0/24
> and edit the file interfaces as:
> <space> eth1 192.168.54.255,10.90.10.255,172.20.90.255
> (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