VLAN/VTP/DTP commands Flashcards
How do you view VLAN info on a switch?
sh vlan brief
How do you view VLAN info on a specific interface?
sh interface gig0/1 switchport
How do you configure a port as a trunk port?
()interface gig0/1
(if)switch mode trunk
How do you configure a port as an access port?
()interface gig0/1
(if)switch mode access
How do you add a port to VLAN 10?
()interface gig0/1
(if)switchport access vlan 10
What is good practice when configuring ports?
give a name and description for the port
How do you configure VLAN 75 as the native vlan?
First select unused VLAN.
()vlan 75
(vlan)name Native
Then
()interface gig0/1
(if)switchport mode trunk
(if)switchport native vlan 75
On older switches you must do what when configuring every single trunk interface?
How do you do this?
You must specify the trunking protocol to be used because they support both Inter-switch Link (ISL) and 802.1Q, they default to ISL.
(if)switchport trunk encapsulation dot1q
How do you limit allowed VLANS?
Navigate to the trunk port with
()interface GigabitEthernet 0/1
List allowed VLANs, there is an implicit deny. (if)switchport trunk allowed vlan 10,30
What is DTP and how do you disable it if it’s on by default?
Dynamic Trunking Protocol allows switches to automatically negotiate trunk connections.
(f)switchport nonegotiate
How do you change a switch port to DTP desirable?
(if)switchport mode dynamic desirable
How do you change a switch port to DTP auto?
(if)switchport mode dynamic auto
DTP is not recommended, what should you do instead for trunking?
manual configuration using these as needed.
(if) switchport mode access
(if) switchport mode trunk
What is VTP?
VLAN Trunking Protocol.
It allows switches to automatically populate VLAN databases to reduce the amount of maintenance needed for large campus networks.
How does VTP work?
- Switches are configured either as VTP clients, VTP transparent, or VTP servers.
- VTP client switches will automatically synchronize their VLAN database with that of the VTP server.
- VTP transparent devices do not participate but will forward VTP requests.