set prefix
To set the MAC address prefix to use when autogenerating MAC addresses for container instance interfaces,
use the
set prefix
command.
set prefix prefix
Syntax Description
Specifies a decimal value between 1 and 65535. This prefix is converted to a
four-digit hexadecimal number, and used as part of the MAC address.
prefix
Command Modes
scope ssa/scope auto-macpool/
Command History
Modification
Release
Command added.
2.4(1)
Usage Guidelines
The FXOS chassis automatically generates MAC addresses for container instance interfaces, and guarantees
that a shared interface in each instance uses a unique MAC address.
If you manually assign a MAC address to a shared interface within the application, then the manually-assigned
MAC address is used. If you later remove the manual MAC address, the autogenerated address is used. In the
rare circumstance that the generated MAC address conflicts with another private MAC address in your network,
we suggest that you manually set the MAC address for the interface within the application.
Because autogenerated addresses start with A2, you should not start manual MAC addresses with A2 due to
the risk of overlapping addresses.
Even if you are not sharing a subinterface, if you manually configure MAC addresses, make sure you use
unique MAC addresses for all subinterfaces on the same parent interface to ensure proper classification.
Note
The FXOS chassis generates the MAC address using the following format:
A2
xx
.
yyzz
.
zzzz
Where
xx
.
yy
is a user-defined prefix or a system-defined prefix, and
zz
.
zzzz
is an internal counter generated
by the chassis. The system-defined prefix matches the lower 2 bytes of the first MAC address in the burned-in
MAC address pool that is programmed into the IDPROM. Use
connect fxos
, then
show module
to view the
MAC address pool. For example, if the range of MAC addresses shown for module 1 is b0aa.772f.f0b0 to
b0aa.772f.f0bf, then the system prefix will be f0b0.
The user-defined prefix is an integer that is converted into hexadecimal. For an example of how the user-defined
prefix is used, if you set a prefix of 77, then the chassis converts 77 into the hexadecimal value 004D (
yyxx
).
When used in the MAC address, the prefix is reversed (
xxyy
) to match the chassis native form:
A2
4D
.
00zz
.
zzzz
For a prefix of 1009 (03F1), the MAC address is:
A2
F1
.
03zz
.
zzzz
Cisco Firepower 4100/9300 FXOS Command Reference
213
S Commands
set prefix
Summary of Contents for Firepower 4100 Series
Page 4: ...Cisco Firepower 4100 9300 FXOS Command Reference 2 About the FXOS CLI Command Reference Guide ...
Page 25: ...P A R T I A R Commands A C Commands on page 25 D R Commands on page 81 ...
Page 26: ......
Page 122: ...Cisco Firepower 4100 9300 FXOS Command Reference 120 A R Commands return ...
Page 124: ......
Page 236: ...Cisco Firepower 4100 9300 FXOS Command Reference 234 S Commands set vlan ...
Page 379: ...P A R T III T W Commands T W Commands on page 379 ...
Page 380: ......
Page 390: ...Cisco Firepower 4100 9300 FXOS Command Reference 388 T W Commands where ...
Page 391: ...P A R T IV connect shell Commands connect shell Commands on page 391 ...
Page 392: ......