active-gateway

Syntax

active-gateway {ip | ipv6} <IP-ADDRESS> mac <VMAC-ADDRESS>

no active-gateway {ip | ipv6}

Description

Configures a virtual IP and virtual MAC for an interface VLAN. A maximum of 256 active-gateways (IPv4 and IPv6) can be configured on the 8320 series switches, and a maximum of 512 active-gateways (IPv4 and IPv6) can be configured on the 8400 series switches.

The no form of this command removes the active gateway for active-active routing.

NOTE:

This active-gateway {ip | ipv6} <IP-ADDRESS> mac <VMAC-ADDRESS> command replaces the active-gateway {ip <IPV4-ADDR> | ipv6 <IPV6-ADDR>} [<VMAC-ADDR>] command that is supported only in 10.00 releases.

Command context

config-if-vlan

Parameters

ip

Specifies the configuration of an IPv4 address.

ipv6

Specifies the configuration of an IPv6 address.

<IP-ADDRESS>
Specifies the IPv4 or IPv6 address.
  • Syntax for IPv4: A.B.C.D

  • Syntax for IPv6: A:B::C:D

<VMAC-ADDR>

Specifies the Virtual MAC address. Syntax: xx:xx:xx:xx:xx:xx

Authority

Administrators

Usage

Active forwarding cannot be configured when ICMP redirect is enabled. Enter the no ip icmp redirect command for disabling ICMP redirect.

It is highly recommended that you use an IPv6 link local address as a gateway (VIP) on the active gateway IPv6 configuration.

Examples

Configuring a virtual IPv4 and IPv6 address for an interface VLAN:

switch# config
switch(config)# vlan 2
switch(config)# interface vlan 2 
switch(config-if-vlan)# ip address 10.0.0.1/24
switch(config-if-vlan)# active-gateway ip 10.0.0.2 mac 00:00:5E:00:53:FF
switch(config-if-vlan)# ipv6 address aa:bb::cc:dd/24
switch(config-if-vlan)# active-gateway ipv6 2001:DB8::/32 mac 00:00:5E:00:53:00
Viewing the configuration from the previous example:
switch(config-if-vlan)# show running-config interface vlan2
interface vlan2
   ip address 10.0.0.1/24
   active-gateway ip 10.0.0.2 mac 00:00:5E:00:53:FF
   active-gateway ipv6 2001:DB8::/32 mac 00:00:5E:00:53:00
   ipv6 address aa:bb::cc:dd/24
   exit

Removing the active gateway for active-active routing:

switch(config-if-vlan)# no active-gateway ip
switch(config-if-vlan)# no active-gateway ipv6