mac-delimiter
Syntax
mac-delimiter {default | colon | hyphen | oui-nic | none}
no mac-delimiter {colon | hyphen | oui-nic}
Description
Configures a custom delimiter for all MAC address.
Theno
form of the command returns the MAC delimiter to its default which is to use no delimiter, displaying MAC addresses as XXXXXXXXXXXX.
Command context
config
Parameters
default
- MAC will be in traditional
PVOS
style which is XXXXXXXXXXXX. colon
Specifies the MAC delimiter format as XX:XX:XX:XX:XX:XX.
hyphen
Specifies the MAC delimiter format as XX-XX-XX-XX-XX-XX.
oui-nic
Specifies the MAC delimiter format as XXXXXX-XXXXXX.
none
- Specifies the MAC address without a delimiter.
Usage
- The MAC address is case insensitive. The format of the MAC delimiter can be accepted in lowercase, upper case, or mixed case.
- Use the
show running-config
command to display the MAC address in the configured format.
Examples
By using the command
mac-delimiter hyphen
, the MAC delimiter is now configured as hyphen. To verify the change to MAC delimiter, use
show mac-address
.
switch(config)# mac-delimiter hyphen switch(config)# show mac-address Status and Counters - Port Address Table MAC Address Port VLAN ----------------- ------------------------------- ---- 68-b5-99-a2-91-80 1 1 68-b5-99-a2-91-98 1 1
By using the command
mac-delimiter colon
, the MAC delimiter is now configured as colon. To verify the change to MAC delimiter, use
show mac-address
.
switch(config)# mac-delimiter colon switch(config)# show mac-address Status and Counters - Port Address Table MAC Address Port VLAN ----------------- ------------------------------- ---- 68:b5:99:a2:91:80 1 1 68:b5:99:a2:91:98 1 1
By using the command
mac-delimiter oui-nic
, the MAC delimiter is now configured with one hyphen (XXXXXX-XXXXXX). To verify the change to MAC delimiter, use
show mac-address
.
switch(config)# mac-delimiter oui-nic switch(config)# show mac-address Status and Counters - Port Address Table MAC Address Port VLAN ----------------- ------------------------------- ---- 68b599-a29180 1 1 68b599-a29198 1 1
By using the command
mac-delimiter default
, the MAC delimiter configuration is set to default. To verify the change to MAC delimiter, use
show mac-address
.
switch(config)# mac-delimiter default switch(config)# show mac-address Status and Counters - Port Address Table MAC Address Port VLAN ----------------- ------------------------------- ---- 68b599a29180 1 1 68b599a29198 1 1
By using the command
mac-delimiter none
, the MAC delimiter configuration is set to default. To verify the change to MAC delimiter, use
show mac-address
.
switch(config)# mac-delimiter none switch(config)# show mac-address Status and Counters - Port Address Table MAC Address Port VLAN ----------------- ------------------------------- ---- 68b599-a29180 1 1 68b599-a29198 1 1 <<<< Set to default