13.14. VARP Commands

13.14.1. ip virtual-router mac

Command Purpose

Use this command to configure a virtual mac for switch.

Use the no form of this command to remove the virtual-router mac.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

ip virtual-router mac mac-addr

no ip virtual-router mac

Parameter

Parameter Description

Parameter Value

mac-addr

Virtual MAC address

MAC Address

Command Mode

Global Config

Default

None

Usage

This virtual mac is used for interface configured virtual IP address. The address is receive-only; the switch never sends packets with this address as the source. And it only exists in ARP replay for virtual IP.

Examples

The following example is the result of this command:

Switch# configure terminal
Switch(config)# ip virtual-router mac 1.1.1

13.14.2. ip virtual-router address

Command Purpose

Use this command to configure a virtual IP address for interface.

Use the no form of this command to remove the virtual-router IP.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

ip virtual-router address (A.B.C.D|A.B.C.D/M)

no ip virtual-router address

Parameter

Parameter Description

Parameter Value

A.B.C.D

Virtual IP address without mask

IPv4 Address

A.B.C.D/M

Virtual IP address with mask

IPv4 Address and mask length

Command Mode

Interface Configuration

Default

None

Usage

The IP virtual-router address command assigns a virtual IP address to the interface. The virtual IP address without mask should be in the subnet of the primary IP address assigned to the interface and the virtual IP address with mask should not be in the subnet of the primary IP address assigned to the interface. The virtual IP address without mask and the virtual IP address with mask must be selected only one to be configured. if virtual mac is not configured, there is no reply to ARP request packet for the virtual IP address.

Examples

The following example is the result of this command:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ip virtual-router address 1.1.1.1

Related Commands

ip virtual-router mac

13.14.3. ipv6 virtual-router address

Command Purpose

Use this command to configure a virtual IPv6 address for interface.

Use the no form of this command to remove the virtual IPv6 address.

Prerequisites

Platform

Software

License

Comments

AQ-N3000

7.0

Base

AQ-N5000

7.0

Base

AQ-N6000

7.0

Base

Command Syntax

ipv6 virtual-router address IPv6-ADDRESS

no ipv6 virtual-router address (IPv6-ADDRESS| )

Parameter

Parameter Description

Parameter Value

IPv6-ADDRESS

Virtual IPv6 address

IPv6 Address, cannot be link-local address.

Command Mode

Interface Configuration

Default

None

Usage

The ipv6 virtual-router address command assigns a virtual IPv6 address to the interface. The virtual IPv6 address should be in the subnet of the IPv6 address assigned to the interface. If virtual mac is not configured, there is no reply to NS packet for the virtual IPv6 address.

Examples

The following example is the result of this command:

Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ipv6 address 2000::1/64
Switch(config-if)# ipv6 virtual-router address 2000::2

Related Commands

ip virtual-router mac