Bob Proulx <b...@proulx.com> wrote:
> Mimiko wrote:

>> I set up in interfaces:
>> auto eth0
>> iface eth0 inet static
>>       address local_lan_ip
>>       netmask mask
>> auto eth1.2
>> iface eth1.2 inet static
>>       address isp1
>>       netmask mask
>> auto eth1.4
>> iface eth2.4 inet static
>>       address isp2
>>       netmask mask
>> 
>> VLAN ID 2 is for tagging to ISP1
>> VLAN ID 4 is for tagging to ISP2

> I see no vlans in your configuration above.  The above simply shows
> additional IP addresses being assigned.  If your switch is requiring
> vlan tagging then that is likely your problem.

Ah, nope. 

It's "magic". Since Wheezy ifupdown knows the notation 
"interface dot VLAN-ID" and automatically creates an appropriatly
configured interface. (In Squeeze you needed the "vlan"-package or a
small scriptled in /etc/network/if-pre-up.d to issue the correct
"ip"-commands.)

Try for you self, put one config like the above in your
network/interfaces file and use "ifup -v" to see what commands are used.

Also see the man-page for interfaces(5):

,----
| VLAN AND BRIDGE INTERFACES
|        To  ease  the  configuration  of  VLAN  interfaces, interfaces having .
|        (full stop character) in the name are configured as 802.1q tagged  vir‐
|        tual  LAN  interface. For example, interface eth0.1 is a virtual inter‐
|        face having eth0 as physical link, with VLAN ID 1.
`----

> See the documentation for setting up vlans here:

>   https://wiki.debian.org/NetworkConfiguration

That is horribly outdated. It even says "Etch" on the part for VLANs.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/hbfnsl4ro...@mids.svenhartge.de

Reply via email to