Configuration Guide Vol. 1


26.2.3 Port configuration

Points to note

The example below shows how to use the Ethernet interface configuration mode and port channel interface configuration mode to set the port type. Set the VLAN type according to the type of VLAN to be used.

For details about configuring port VLANs, protocol VLANs, and MAC VLANs, see the subsequent sections.

Command examples

  1. (config)# interface gigabitethernet 1/0/1

    Switches to the Ethernet interface configuration mode for port 1/0/1.

  2. (config-if)# switchport mode access

    (config-if)# exit

    Sets port 1/0/1 as an access port. Port 1/0/1 handles untagged frames for the port VLAN.

  3. (config)# interface port-channel 10

    Switches channel group 10 to port channel interface configuration mode.

  4. (config-if)# switchport mode trunk

    Sets channel group 10 as a trunk port. Port channel 10 handles tagged frame.