[j-nsp] Configuring an untagged native VLAN on an EX in a neat way
Christopher Hartley
chartley at oar.net
Fri Jun 11 08:56:30 EDT 2010
I'm guessing you could use something like
set vlan members apply-path "vlans <*> vlan-id <*>"
set vlan members apply-path-except "vlans <*> vlan-id 2" # Or match on the vlan name, rather than num.
Chris
>>> Tore Anderson <tore.anderson at redpill-linpro.com> 06/11/10 8:01 AM >>>
Hi list,
I'm trying to configure a untagged native VLAN on a trunk interface in a
sensible way on an EX switch running JUNOS 10.1R1.8.
If I do:
family ethernet-switching {
port-mode trunk;
vlan {
members all;
}
native-vlan-id 2;
}
...the egress packets from VLAN 2 will be tagged.
If I instead do:
family ethernet-switching {
port-mode trunk;
vlan {
members 3-4094;
}
native-vlan-id 2;
}
...the commit fails with the first undefined VLAN ID:
error: No vlan matches tag 4 for interface ge-0/0/46.0
error: configuration check-out failed
What works is to add all configured VLANs (except 2) to the members
statement. However that with a several hundred configured VLANs that
configuration statement gets really nasty-looking. And it'd be easy to
forget to add a newly configured VLAN there, too, so I'd rather avoid
doing it that way if at all possible. Any suggestions on how to do it
better would be greatly appreciated!
Best regards,
--
Tore Anderson
Redpill Linpro AS - http://www.redpill-linpro.com/
Tel: +47 21 54 41 27
_______________________________________________
juniper-nsp mailing list juniper-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp
More information about the juniper-nsp
mailing list