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 4,040 active-gateways (IPv4 and IPv6) SVIs are supported on the 832x series switches, and a maximum of 4,094 active-gateways (IPv4 and IPv6) SVIs are supported 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:00:00:00:01
switch(config-if-vlan)# ipv6 address aa:bb::cc:dd/24
switch(config-if-vlan)# active-gateway ipv6 2001:DB8::/32 mac 00:00:00:01:00:01
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:00:00:00:01
   active-gateway ipv6 2001:DB8::/32 mac 00:00:00:01:00:01
   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