Configuring an Alternate IP Address and Gateway

This procedure explains how to configure an alternate IP address and gateway.
  1. View the alternate IP address configuration using the show stacking configuration command:
    Slot-1 stacK.13 # show stacking configuration
    Stack MAC in use: 00:04:96:26:6a:f1
    Node               Slot         Alternate          Alternate
    MAC Address        Cfg Cur Prio Mgmt IP / Mask     Gateway         Flags     Lic
    ------------------ --- --- ---- ------------------ --------------- --------- ---
    *00:04:96:26:6a:f1 1   1   11   <none>             <none>          CcEeMm--- Aa
    00:04:96:26:6c:93 2   2   Auto <none>             <none>          CcEeMm--- Aa
    00:04:96:27:c8:c7 3   3   Auto <none>             <none>          CcEeMm--- Aa
    00:04:96:26:5f:4f 4   4   4    <none>             <none>          CcEeMm--- Aa
    00:04:96:1f:a5:43 5   5   Auto <none>             <none>          CcEeMm--- Aa
    00:04:96:28:01:8f 6   6   6    <none>             <none>          CcEeMm--- Aa
    00:04:96:20:b2:5c 7   7   Auto <none>             <none>          CcEeMm--- Aa
    00:04:96:26:6c:92 8   8   Auto <none>             <none>          CcEeMm--- Aa
    * - Indicates this node
    Flags:  (C) master-Capable in use, (c) master-capable is configured,
    (E) Stacking is currently Enabled, (e) Stacking is configured Enabled,
    (M) Stack MAC in use, (m) Stack MACs configured and in use are the same,
    (N)  Stack link protocol Enhanced in use, (n) Stack link protocol Enhanced configured,
    (i) Stack MACs configured and in use are not the same or unknown,
    (-) Not in use or not configured
    License level restrictions: (C) Core, (A) Advanced edge, or (E) Edge in use,
    (c) Core, (a) Advanced edge, or (e) Edge configured,
    (-) Not in use or not configured
    
    In the example above, no alternate IP address or alternate gateway is configured.
  2. If you have a continuous block of IP addresses to assign to the stack, enter the configure stacking alternate-ip-address [ipaddress netmask | ipNetmask] gateway automatic command.
    For example:
    Slot-1 Stack.14 # configure stacking alternate-ip-address 10.127.4.131/24 10.127.4.254 automatic
    Slot-1 Stack.15 # show stacking configuration
    Stack MAC in use: 00:04:96:26:6a:f1
    Node               Slot         Alternate          Alternate
    MAC Address        Cfg Cur Prio Mgmt IP / Mask     Gateway         Flags     Lic
    ------------------ --- --- ---- ------------------ --------------- --------- ---
    *00:04:96:26:6a:f1 1   1   11   10.127.4.131/24    10.127.4.254    CcEeMm--- Aa
    00:04:96:26:6c:93 2   2   Auto 10.127.4.132/24    10.127.4.254    CcEeMm--- Aa
    00:04:96:27:c8:c7 3   3   Auto 10.127.4.133/24    10.127.4.254    CcEeMm--- Aa
    00:04:96:26:5f:4f 4   4   4    10.127.4.134/24    10.127.4.254    CcEeMm--- Aa
    00:04:96:1f:a5:43 5   5   Auto 10.127.4.135/24    10.127.4.254    CcEeMm--- Aa
    00:04:96:28:01:8f 6   6   6    10.127.4.136/24    10.127.4.254    CcEeMm--- Aa
    00:04:96:20:b2:5c 7   7   Auto 10.127.4.137/24    10.127.4.254    CcEeMm--- Aa
    00:04:96:26:6c:92 8   8   Auto 10.127.4.138/24    10.127.4.254    CcEeMm--- Aa
    * - Indicates this node
    Flags:  (C) master-Capable in use, (c) master-capable is configured,
    (E) Stacking is currently Enabled, (e) Stacking is configured Enabled,
    (M) Stack MAC in use, (m) Stack MACs configured and in use are the same,
    (N)  Stack link protocol Enhanced in use, (n) Stack link protocol Enhanced configured,
    (i) Stack MACs configured and in use are not the same or unknown,
    (-) Not in use or not configured
    License level restrictions: (C) Core, (A) Advanced edge, or (E) Edge in use,
    (c) Core, (a) Advanced edge, or (e) Edge configured,
    (-) Not in use or not configured
    
  3. If you do not have a continuous block of IP addresses for the stack, assign an alternate IP address and gateway to each node using the configure stacking [node-address node-address | slot slot_number] alternate-ip-address [ipaddress netmask | ipNetmask] gateway command.
    For example:
    Slot-1 Stack.18 # configure stacking slot 4 alternate-ip-address 10.127.4.139/24 10.127.4.254
    Note

    Note

    If you try to assign an alternate IP address and gateway to a node that is already configured with these parameters, an error message appears. To remove an existing configuration so you can change the alternate IP address and gateway, enter the unconfigure stacking {node-address node_address | slot slot_number} alternate-ip-address command.
  4. Enter the show stacking configuration command to verify that the alternate IP address and gateway is configured as intended for each node.
    Slot-1 Stack.19 # show stacking configuration
    Stack MAC in use: 00:04:96:26:6a:f1
    Node               Slot         Alternate          Alternate
    MAC Address        Cfg Cur Prio Mgmt IP / Mask     Gateway         Flags     Lic
    ------------------ --- --- ---- ------------------ --------------- --------- ---
    *00:04:96:26:6a:f1 1   1   11   10.127.4.131/24    10.127.4.254    CcEeMm--- Aa
    00:04:96:26:6c:93 2   2   Auto 10.127.4.132/24    10.127.4.254    CcEeMm--- Aa
    00:04:96:27:c8:c7 3   3   Auto 10.127.4.133/24    10.127.4.254    CcEeMm--- Aa
    00:04:96:26:5f:4f 4   4   4    10.127.4.139/24    10.127.4.254    CcEeMm--- Aa
    00:04:96:1f:a5:43 5   5   Auto 10.127.4.135/24    10.127.4.254    CcEeMm--- Aa
    00:04:96:28:01:8f 6   6   6    10.127.4.136/24    10.127.4.254    CcEeMm--- Aa
    00:04:96:20:b2:5c 7   7   Auto 10.127.4.137/24    10.127.4.254    CcEeMm--- Aa
    00:04:96:26:6c:92 8   8   Auto 10.127.4.138/24    10.127.4.254    CcEeMm--- Aa
    * - Indicates this node
    Flags:  (C) master-Capable in use, (c) master-capable is configured,
    (E) Stacking is currently Enabled, (e) Stacking is configured Enabled,
    (M) Stack MAC in use, (m) Stack MACs configured and in use are the same,
    (N)  Stack link protocol Enhanced in use, (n) Stack link protocol Enhanced configured,
    (i) Stack MACs configured and in use are not the same or unknown,
    (-) Not in use or not configured
    License level restrictions: (C) Core, (A) Advanced edge, or (E) Edge in use,
    (c) Core, (a) Advanced edge, or (e) Edge configured,
    (-) Not in use or not configured