Göran Höglund <[email protected]> wrote:

> I am trying to understand the logic for defining virtual interfaces (and 
> VLAN) on an interface towards internet.

OK, I don't see anything to do with VLANs in the rest of the message - do you 
really mean VLANs ?

> Then I create a virtual interface on eth0 as eth0:3, the network 
> settings works fine (when all firewalling is disabled).

Do you need to use a virtual interface for this ? For most applications they 
are fairly obsolete. It's simpler to just add "ip address add a.b.c.d/nn dev 
ethx" to a suitable place in your interface script. In Debian (and derivatives) 
I just put :

  post-up ip address add a.b.c.d/nn dev ethx
  pre-down ip address delete a.b.c.d/nn dev ethx
to the relevant interface stanza in /etc/network/interfaces



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to