Configuring Basic Port Parameters
You can configure basic port parameters
from the global configuration mode.
- Enter the global configuration mode.
- Specify a port address for a data port, stacking port, or management port.
- 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. - 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. - Assigning a name to a
port.
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