You might not want to make a L2 SVI if you use VTP pruning. If pruning is on, an unused VLAN will be pruned from the trunk, resulting in less unnecessary broadcast/flooding traffic. However, creating an SVI, creates an "active" interface on your switch. A quick check in GNS3 gives the following:
R1#show vlan-switch
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/1, Fa1/2, Fa1/3, Fa1/4
Fa1/5, Fa1/6, Fa1/7, Fa1/8
Fa1/9, Fa1/10, Fa1/11, Fa1/12
Fa1/13, Fa1/14, Fa1/15
3 VLAN0003 active
4 VLAN0004 active
[output omitted]
R1#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Fa1/0 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa1/0 1-4094
Port Vlans allowed and active in management domain
Fa1/0 1,3-4
Port Vlans in spanning tree forwarding state and not pruned
Fa1/0 1
Now, if I go to R2, connected to Fa1/0 and type R2(config)#int vlan 3
, we will see the following:
R2#show run interface vlan 3
Building configuration...
Current configuration : 38 bytes
!
interface Vlan3
no ip address
end
R2#show run | include vlan 3
R2#
As you can see, no interfaces in VLAN 3, except the SVI. And back on R1:
R1#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Fa1/0 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa1/0 1-4094
Port Vlans allowed and active in management domain
Fa1/0 1,3-4
Port Vlans in spanning tree forwarding state and not pruned
Fa1/0 1,3
As you can see, VLAN 3 just came up on the trunk, adding to the traffic levels on your trunks.
Best Answer
You are not really creating the VLANs; you are creating the SVIs for the VLANs. If your switch isn't getting the VLAN information from elsewhere, then you need to create the VLANs. From the global configuration mode, you use the
vlan
command to do this. Once you have create the VLAN, you have some options, e.g. you can name the VLAN.You can refer to the Cisco documentation, e.g. Configuring VLANs: