Trunk

 #en
#conf t
#int fa or gig (fa 0/1 or gig 0/1)
if you need to config more than 1 port at the same time you can :
#int range fa 0/1, fa 1/2
#switchport trunk encapsulation dot1q
#switchport mode trunk
#exit

1. Check Trunk Status and Allowed VLANs


show interfaces trunk
  • Displays:
    • Interfaces operating as trunks.
    • Allowed VLANs.
    • VLANs in the active state on the trunk.
    • Native VLAN.

2. View Detailed Information for a Specific Interface


show interfaces [interface-id] switchport
  • Replace [interface-id] with the specific trunk interface, e.g., GigabitEthernet0/1.
  • Displays:
    • Administrative mode (e.g., trunk).
    • Operational mode (actual status, e.g., trunk or access).
    • Allowed VLANs and native VLAN.

3. Verify Running Configuration for the Interface


show running-config interface [interface-id]
  • Replace [interface-id] with the specific trunk interface.
  • Confirms the configured mode (switchport mode trunk) and other related settings.

4. Check VLANs Active on the Trunk


show vlan brief
  • Ensures VLANs intended for trunking are present and active.

5. Verify Dynamic Trunking Protocol (DTP)


show dtp interface [interface-id]
  • Replace [interface-id] with the trunk interface.
  • Provides details on DTP status and negotiation parameters.
Share:

VLAN

 

VLAN

#en
#conf t
#Vlan <Vlan-ID> exp : vlan 10
#Name <name xxx>
#exit (untuk mengaktifkan vlan, kalau tidak exit maka tidak di save pengaturanya)

untuk menerapkan di interface

#en
#conf t fa/gig (port number) ex fa 0/1 or gig 0/1
#switchport mode access
#switchport access <Vlan-ID> exp : vlan 10
#exit

Delete Vlan

#no vlan  <Vlan-ID> exp : vlan 10

1. Check VLAN Summary


show vlan brief
  • Displays all VLANs configured on the device, their names, status, and associated ports.

2. Verify Interface VLAN Assignment


show interfaces [interface-id] switchport
  • Replace [interface-id] with the specific interface (e.g., GigabitEthernet0/1).
  • This shows:
    • Administrative and operational mode (e.g., access or trunk).
    • VLAN assigned to the interface.

3. Check VLAN Trunking Information

show interfaces trunk
  • Displays:
    • Interfaces in trunk mode.
    • Allowed VLANs on the trunk.
    • Native VLAN for the trunk.

4. View VLAN in the Spanning Tree


show spanning-tree vlan [vlan-id]
  • Replace [vlan-id] with the VLAN you want to check.
  • Displays the spanning-tree topology for the specified VLAN.

5. Verify the Running VLAN Configuration


show running-config
  • Look for the VLAN configuration under the relevant interface or VLAN sections.

6. Check VLAN Status in the Database

show vlan
  • Provides more details, including VLAN IDs, names, and status (active/suspended).

Share: