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.

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 active-gateway when the IP address is different from the SVI IP address on both VSX peers (valid for IPv6 and IPv4):

Switch 1:
switch1(config-if-vlan)# ip address 192.168.1.250/24
switch1(config-if-vlan)# active-gateway ip 192.168.1.253 mac 00:00:00:00:00:01
switch1(config-if-vlan)# active-gateway ipv6 fe80::01 mac 00:00:00:01:00:01
Switch 2:
switch2(config-if-vlan)# ip address 192.168.1.251/24
switch2(config-if-vlan)# active-gateway ip 192.168.1.253 mac 00:00:00:00:00:01
switch2(config-if-vlan)# active-gateway ipv6 fe80::01 mac 00:00:00:01:00:01

Configuring active-gateway when the IP address is the same as the SVI IP address on both VSX peers (valid for IPv4 only):

Switch 1:
switch1(config-if-vlan)# ip address 192.168.1.250/24
switch(config-if-vlan)# active-gateway ip 192.168.1.250 mac 00:00:00:00:00:01
Switch 2:
switch2(config-if-vlan)# ip address 192.168.1.250/24
switch2(config-if-vlan)# active-gateway ip 192.168.1.250 mac 00:00:00:00:00:01

Removing the active gateway for active-active routing:

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