The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter contains the following sections:
You can use VXLAN trunk is used to configure ports that can individually map to an IEEE 802.1Q tag value to a VXLAN. Ports that receive the packets with the 802.1Q tag are used to map the packet into a VXLAN. You can use the VXLAN trunk feature to support network service Virtual Machines (VMs) that need access to more VXLANs than the number of NICs that VMware supports on a VM.
You can trunk multiple VXLANs on a single vEthernet interface.
1. switch# configure terminal
2. switch(config )# port-profile type vethernet name
3. (Optional) switch(config-port-prof)# switchport mode access
4. switch(config -port-profile)# switchport access bridge-domain name-string
5. switch(config -port-profile)# [no] service instance place holder
6. switch(config -port-profile)# encapsulation profileencapsulation-profile-name
7. (Optional) switch(config-port-prof)# no shutdown
8. (Optional) switch(config-port-prof)# state enabled
9. (Optional) switch(config-port-prof)# end
10. (Optional) switch# show run port-profile csr-access
This example shows how to configure a VXLAN trunk:
switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. switch(config)# port-profile type vethernet csr-access switch(config-port-prof)# switchport mode access switch(config-port-prof)# switchport access bridge-domain bd-701 switch(config-port-prof)# service instance 10 switch(config-port-prof-srv)# encapsulation dot1q 600 bridge-domain bd-600 switch(config-port-prof-srv)# encapsulation dot1q 601 bridge-domain bd-601 switch(config-port-prof-srv)# encapsulation dot1q 602 bridge-domain bd-602 switch(config-port-prof-srv)# no shutdown cswitch(config-port-prof-srv)# state enabled switch(config-port-prof)# end
switch# show run port-profile csr-access port-profile type vethernet csr-access switchport mode access switchport access bridge-domain bd-701 service instance 10 encapsulation dot1q 600 bridge-domain bd-600 encapsulation dot1q 601 bridge-domain bd-601 encapsulation dot1q 602 bridge-domain bd-602 state enabled
This example shows how to display VXLAN trunk interface mappings:
switch(config-bd)# show bridge-domain mappings ------------------------------------------------------------------------------- Interface Module Serv Inst Vlan Segment BD-Name ------------------------------------------------------------------------------- Vethernet923 8 1 1561 6061 vxlan6061 8 2 1562 6062 vxlan6062 8 3 1563 6063 vxlan6063 8 4 1564 6064 vxlan6064 switch(config-bd)#
Note | The value in the Interface column varies based on the VXLAN gateway or the VXLAN trunk feature. Vethernet<number> in the Interface column indicates the mapping for the VXLAN trunk feature; port-channel<number> in the Interface column indicates the mapping that configured on the VXLAN gateway. |
You can mark a virtual Ethernet interface as capable of sourcing packets from multiple MAC addresses.
Do not use the multi-MAC capability feature if MAC distribution (segment distribution MAC) is enabled.
1. switch# configure terminal
2. switch(config )# port-profile type vethernet name
3. (Optional) switch(config-port-prof)# switchport mode access
4. switch(config-port-prof)# switchport access bridge-domain name-string
5. switch(config-port-prof)# [no] capability multi- mac
6. (Optional) switch(config-port-prof)# no shutdown
7. (Optional) switch(config-port-prof)# state enabled
8. (Optional) switch(config-port-prof)# end
9. (Optional) switch# show running-config port-profile csr-multi-mac-access
Command or Action | Purpose | |
---|---|---|
Step 1 | switch# configure terminal | Enters global configuration mode. |
Step 2 | switch(config )# port-profile type vethernet name |
Enters port profile configuration mode for the named port profile. If the port profile does not already exist, it is created using the following characteristics: |
Step 3 | switch(config-port-prof)# switchport mode access | (Optional) Designates that the interfaces are to be used as a trunking ports. A trunk port transmits untagged packets for the native VLAN and transmits encapsulated, tagged packets for all other VLANs. |
Step 4 | switch(config-port-prof)# switchport access bridge-domain name-string | Assigns a VXLAN bridge domain to this profile for non-dot1q traffic. |
Step 5 | switch(config-port-prof)# [no] capability multi- mac |
Marks the vEthernet port as multi-MAC capable. |
Step 6 | switch(config-port-prof)# no shutdown | (Optional) Administratively enables all ports in the profile. |
Step 7 | switch(config-port-prof)# state enabled | (Optional) Enables the port profile and applies its configuration to the assigned ports. |
Step 8 | switch(config-port-prof)# end | (Optional) Exits the global configuration mode. |
Step 9 | switch# show running-config port-profile csr-multi-mac-access | (Optional) Displays the configuration of the port profile. |
This example shows how to configure the multi-MAC capability feature:
switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. switch(config-port-prof)# port-profile type vethernet csr-multi-mac-access switch(config-port-prof)# switchport mode access switch(config-port-prof)# switchport access bridge-domain bd-701 switch(config-port-prof)# capability multi-mac switch(config-port-prof)# state enabled switch(config-port-prof)# no shutdown switch(config-port-prof)# end
switch# show running-config port-profile csr-multi-mac-access port-profile type vethernet csr-multi-mac-access switchport mode access switchport access bridge-domain bd-701 capability multi-mac no shutdown state enabled
1. switch(config )# encapsulation profile segment encapsulation-profile-name
2. switch(config )# dot1q vlan bridge-domain vxlan
3. switch(config )# show encapsulation profile
Command or Action | Purpose | |
---|---|---|
Step 1 | switch(config )# encapsulation profile segment encapsulation-profile-name |
Creates an encapsulation profile for configure mappings. |
Step 2 | switch(config )# dot1q vlan bridge-domain vxlan |
Creates a VLAN-VXLAN mapping. Ensure corresponding VLAN and VXLAN BD is created for mapping to be pushed to VEM data-path. |
Step 3 | switch(config )# show encapsulation profile |
Displays all the encapsulation profiles created. |
switch(config)# encapsulation profile segment test switch(config-vxlan-encap-prof)# dot1q 1560 bridge-domain vxlan6000 switch(config)# show encapsulation profile ------------------------------------------------------------------------------- Vlan Bridge-domain ------------------------------------------------------------------------------- 1601 vxlan6101 1602 vxlan6102 1603 vxlan6103 1604 vxlan6104