Search Anything You Like

Monday, February 27, 2012

Trunk & Access Interface(Port) Configuration in Cisco Switch


Trunk interface Configuration:
The below commands should be applied in switch interface which is connected to another switch.
       interface GigabitEthernet< interface number>
                switchport trunk encapsulation dot1q
                switchport trunk native vlan < unused vlan >
                switchport mode trunk
                switchport nonegotiate
                logging event link-status

Access port configuration:
 The below commands should be applied in switch interface which is connected to single host.
      interface GigabitEthernet< interface number>
                switchport mode access
                switchport access vlan
                spanning-tree portfast
                spanning-tree bpduguard enable
                switchport port-security
                switchport port-security maximum 1

No comments:

Post a Comment