MACΒΆ
The MAC address can be changed on ethernet interfaces.
To configure the MAC address of the existing interface eth0
in vrf
main
, do:
vrouter running config# vrf main
vrouter running vrf main# interface physical eth0
vrouter running physical eth0# ethernet mac-address 00:01:02:03:04:05
vrouter running physical eth0# commit
To display an interface MAC address:
vrouter> show state / vrf main interface physical eth0
physical eth0
ipv6
address fe80::dced:1ff:fec4:3a04/64
..
mtu 2000
port pci-b0s4
counters
in-octets 7316
out-unicast-pkts 7
out-octets 7316
in-unicast-pkts 113
in-discards 0
in-errors 0
out-discards 0
out-errors 0
..
ethernet
mac-address 00:01:02:03:04:05
..
oper-status UP
enabled true
..
The same configuration can be made using this NETCONF XML configuration:
vrouter> show config xml absolute vrf main interface physical eth0
<config xmlns="urn:6wind:vrouter">
<vrf>
<name>main</name>
<interface xmlns="urn:6wind:vrouter/interface">
<physical>
<name>eth0</name>
(...)
<ethernet>
<mac-address>00:01:02:03:04:05</mac-address>
</ethernet>
</physical>
</interface>
</vrf>
</config>
See also
The command reference for details.