Tag: mode command using log ENC Global relay name configuration
Switch interface type:
- Access: Access mode, PC via switch internet this way
- Trunk: Trunk mode, inter-switch connection in this way
Switch VLAN creation mode:
- Database configuration mode
- Global configuration Mode
Database configuration mode:
- name Vlan20 (VLAN name optional) switch (VLAN) #exit
Global configuration mode:
- switch (config-vlan) #name vlan20 (VLAN name optional) switch (config-vlan) #exit
Switch VLAN Removal method:
When configured in VLAN database configuration mode, the VLAN that needs to be deleted can be removed via switch (VLAN) #no VLAN (the ID of the specific VLAN) .
You can also delete VLANs directly in global configuration mode, such as switch (config) #no VLAN
Add the switch interface to the VLAN:
- Adding VLANs on a per-interface basis
- Configure multiple interfaces to join VLANs at the same time
Add VLANs one by one:
# Add interface to vlan,access mode: switch#config tswitch (config) #interface F0/1switch (config-if ) #switchport mode accessswitch (config-if ) #exit # Connect between switches using Trunk mode: Switch (config) # interface F0/1(interface connected to another switch) switch (config- if) #switchport Mode Trunk
Multiple interfaces are configured simultaneously:
Switch (config) #int range f0/15 switch (config-if) #switchport Mode Accessswitch (config-if)switch (config-if
To remove an interface from the VLAN:
Other VLAN commands:
- Show VLAN Brief
- Switch (config) #switchport trunk encapsulation{isl|dotiq|negotiate} (requires a package type to connect to different brand switches)
- Switch (config-if) #switchport trunk allowed VLAN remove Vlan-id (relay mode does not transmit data from a VLAN)
Cisco-vlan Configuration