<---- click on the start there to give me kudos if I deserve.
On
http://www.juniper.net/techpubs/en_US/junos11.4/topics/concept/bridging-ex-series-understanding.html
see
Packets Are Either Tagged or Untagged
....packets belong to. The presence of these unique IDs means the packets are now tagged. VLAN tags 0 and 4095 are reserved by the Juniper Networks Junos operating system (Junos OS), so you cannot assign those tags to a VLAN in your network. The VLAN tags 1 through 4094 can be assigned to VLANs.
What is not mentioned is when you enable vstp , to have similar behave of cisco pvstp.
With vstp you go down to up 253 vlans only.
Here is a lab that I did on a ex3300
mylogin@lab-ex330# run show vlans summary
VLANs summary:
Total: 4094, Configured VLANs: 4093
Internal VLANs: 1, Temporary VLANs: 0
Dot1q VLANs summary:
Total: 4094, Tagged VLANs: 4093, Untagged VLANs: 1
{master:0}[edit]
mylogin@lab-ex330# run show vlans vlan.0
error: vlan vlan.0 does not exist
{master:0}[edit]
mylogin@lab-ex330# run show vlans vlan.1
Name Tag Interfaces
vlan.1 1
None
{master:0}[edit]
mylogin@lab-ex330# run show vlans vlan.4094
error: vlan vlan.4094 does not exist
{master:0}[edit]
mylogin@lab-ex330# run show vlans vlan.4095
error: vlan vlan.4095 does not exist
{master:0}[edit]
mylogin@lab-ex330# run show vlans vlan.3959
Name Tag Interfaces
vlan.3959 3959
None
{master:0}[edit]
mylogin@lab-ex330# set vlans vlan.0 vlan-id 0
^
Value 0 is not within range (1..4094) at '0'
{master:0}[edit]
mylogin@lab-ex330# set vlans vlan.1 vlan-id 1
{master:0}[edit]
mylogin@lab-ex330# set vlans vlan.4094 vlan-id 4094
{master:0}[edit]
mylogin@lab-ex330# set vlans vlan.4095 vlan-id 4095
error: Value 4095 is not within range (1..4094): 4095
{master:0}[edit]
mylogin@lab-ex330# set vlans ?
Possible completions:
<vlan-name> VLAN name
+ apply-groups Groups from which to inherit configuration data
+ apply-groups-except Don't inherit configuration data from these groups
default VLAN name
> traceoptions VLAN trace options
vlan.1 VLAN name
vlan.10 VLAN name
{master:0}[edit]
mylogin@lab-ex330# show | compare
[edit vlans]
+ vlan.4094 {
+ vlan-id 4094;
+ }
+ vlan.4095;
{master:0}[edit]
mylogin@lab-ex330# commit
[edit vlans]
'vlan.998'
Maximum number of vlans cannot exceed 4094, including <default> vlan.
error: configuration check-out failed
{master:0}[edit]
mylogin@lab-ex330# delete vlans vlan.4095
{master:0}[edit]
mylogin@lab-ex330# commit
[edit vlans]
'vlan.999'
Maximum number of vlans cannot exceed 4094, including <default> vlan.
error: configuration check-out failed
{master:0}[edit]
mylogin@lab-ex330# delete vlans vlan.4094
{master:0}[edit]
mylogin@lab-ex330# commit
configuration check succeeds
fpc1:
commit complete
commit complete
{master:0}[edit]
mylogin@lab-ex330#
!!! now when enabling vstp,
mylogin@lab-ex330# commit check
[edit protocols vstp]
'vlan all'
Cannot configure VSTP on all VLANs when more than 253 VLANs are configured. Configure vstp vlan-group along
with STP or RSTP to cover all VLANs
[edit protocols]
'vstp'
Failed to configure vstp on all vlans
error: configuration check-out failed
{master:0}[edit]
mylogin@lab-ex330#