Skip to content

Instantly share code, notes, and snippets.

@seysn
Created November 20, 2018 10:46
Show Gist options
  • Save seysn/1908040a7599fa438fb13d593ef7bbc9 to your computer and use it in GitHub Desktop.
Save seysn/1908040a7599fa438fb13d593ef7bbc9 to your computer and use it in GitHub Desktop.

if vlan 15 doesn't exists in db

SV3# sh run
... // Pas de vlan 15
SV3# vlan database
SV3# vlan 15
SV3# vtp transparent
SV3# apply
Vlan added !!!!!

Vlan :

SV3>enable
SV3#config t
SV3(config)#interface fastEthernet 0/1
SV3(config-if)#switchport mode access 
SV3(config-if)#switchport access vlan 15
SV3(config-if)#ex

Trunk :

SV3>enable
SV3#config t
SV3(config)#interface fastEthernet 0/11
SV3(config-if)#switchport mode trunk
SV3(config-if)#switchport trunk encapsulation dot1q 
SV3(config-if)#switchport trunk native vlan 15
SV3(config-if)#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment