[j-nsp] Configuring an untagged native VLAN on an EX in a neat way

Kari Asheim ka at mork.no
Fri Jun 11 08:43:35 EDT 2010


On Fri, Jun 11, 2010 at 12:55:19PM +0200, Tore Anderson wrote:

> If I instead do:
> 
> family ethernet-switching {
>     port-mode trunk;
>     vlan {
>         members 3-4094;
>     }
>     native-vlan-id 2;
> }
> 

You can remove the members from the port and instead use apply-groups
to add this to all vlans something like this:

groups {
    PORT {
        vlans {
            <*> {
                interface {
                    ge-2/0/15.0;
                }
            }
        }
    }
}

vlans {
    apply-groups PORT;
    vlan2 {
        vlan-id 2;
        apply-groups-except PORT;
   }
[...]
}

Kari



More information about the juniper-nsp mailing list