Configuring Basic Port Parameters

You can configure basic port parameters from the global configuration mode.
  1. Enter the global configuration mode.
    device# configure terminal
  2. Specify a port address for a data port, stacking port, or management port.
    • Specifying a data port.
      device(config)# interface ethernet 1/1/2
    • Specifying a stacking port.
      device(config)# interface ethernet 3/2/2
    • Specifying a management port.
      device(config)# interface management 1
  3. Configure a multi-port static MAC address.
    device(config)# vlan 30
    device(config-vlan-30)# static-mac-address 0000.0063.67ff ethernet 1/1/1 to 1/1/6 priority 7
    In the example, a static entry for a server with a MAC address of 0000.0063.67ff and a priority of 7 is added.
  4. Assign port names from the interface configuration mode using one of the following methods.
    • Assigning a name to a port.
      device(config)# interface ethernet 1/1/1
      device(config-if-e1000-1/1/1)# port-name Mike
    • Assigning same name to a range of ports.
      device(config)# interface ethernet 1/1/1 to 1/1/10
      device(config-mif-1/1/1-1/1/10)# port-name connected-to-the nearest device
    • Assigning same name to individual multiple ports.
      device(config)# interface ethernet 1/1/1 ethernet 1/1/5 ethernet 1/1/7
      device(config-mif-1/1/1, 1/1/5, 1/1/7)# port-name connected-to-the nearest device
    You can assign text strings as port names. You can assign port names to individual ports or to a group of ports. You can assign a port name to physical ports, virtual interfaces, and loopback interfaces.

The following example shows how to configure basic port parameters. The Ethernet ports from 1/4/2 through 1/4/4 are assigned a static MAC address 0000.0063.67ff with priority 7. The Ethernet port 1/4/2 is assigned a name, Mike.

device# configure terminal
device(config)# vlan 30
device(config-vlan-30)# static-mac-address 0000.0063.67ff ethernet 1/1/1 to 1/1/6 priority 7
device(config)# interface ethernet 1/4/2
device(config-if-e1000-1/4/2)# port-name Mike