source ip

Syntax

source ip

Description

Configures the source IP address for a VXLAN interface. All VXLAN encapsulated packets use this source IP address in the outer IP header.

If you change an existing source IP address, all tunnels with the old source IP address are deleted, and new tunnels are created with the new source IP address.

Thenoform of this command deletes the source IP address for the VXLAN interface and deletes all VXLAN tunnels using this source IP address.

Command context

config-vxlan-if

Parameters

Specifies the IP address to assign to the VXLAN interface in IPv4 format (x.x.x.x), wherexis a decimal number from 0 to 255. This must be an address assigned to an existing switch interface, either a loopback interface or a layer 3 interface.

Authority

Administrators or local user group members with execution rights for this command.

Examples

On the 6400 Switch Series, interface identification differs.

Configuring the loopback IP address as the source IP address:

switch(config)#interface loopback 1switch(config-loopback-if)#ip address 1.1.1.1/24switch(config)#interface vxlan 1switch(config-vxlan-if)#source ip 1.1.1.1

Configuring a layer 3 interface IP address as the source IP address:

switch(config)#interface 1/1/2switch(config-if)#no shutdownswitch(config-if)#routing(6300/6400 only)switch(config-if)#ip address 11.10.10.1/24switch(config)#interface vxlan 1switch(config-vxlan-if)#源ip 10.10.10.1

删除源IP地址s for VXLAN interface 1:

switch(config)#interface vxlan 1switch(config-vxlan-if)#no source ip 10.10.10.1