source-mac-addr

Configures the source MAC address for encapsulation of outgoing packets.

Syntax

source-mac-addr mac-addr
no source-mac-addr mac-addr

Parameters

source-mac-addr mac-addr
Specifies the MAC address to be configured as source MAC.

Modes

Encap config mode

Usage Guidelines

Validations for the command are as follows:

Table 1. Error messages
Error: Invalid address as Source MAC address MAC address format should be XX:XX:XX:XX:XX:XX
Error: Source MAC address is already configured Single destination MAC address per encapsulation is allowed
Error: Source and Destination MAC addresses cannot be same Source and destination addresses but be different MAC addresses.
Error: invalid format MAC address format should be XX:XX:XX:XX:XX:XX

Examples

The following example configures the source MAC address.

device(config-encap)# source-MAC-addr 00:01:02:03:04:05 
device(config-encap)#  

Show running:  
device# show running-configuration 

encap encap-1 
destination-mac-addr 00:01:02:03:04:05