Multiple IP addresses configuration on a VLAN (multinetting)

Use one of the following forms of the vlan command to configure multiple IP addresses on a VLAN (multinetting).
  • vlan <vlan-id> ip address <ip-address>/<mask-length>
  • vlan <vlan-id> ip address <ip-address> <mask-bits>
The following is supported:
  • Up to 2000 IP addresses for the switch.
  • Up to 32 IP addresses for the same VLAN
  • Up to 512 IP VLANs, that is, VLANs on which you can configure IP addresses
  • Each IP address on a VLAN must be for a separate subnet, whether on the same VLAN or different VLANs.

The Internet (IP) Service screen in the Menu interface displays the first IP address for each VLAN. You must use the CLI show ip command to display the full IP address listing for multinetted VLANs.

Configuring and displaying multi netted VLAN

If you wanted to multinet VLAN_20 (VID = 20) with the IP addresses shown below, you would perform steps similar to the following. For this example, assume that the first IP address is already configured.

IP Address

VID

IP Address

Subnet Mask

1st address

20

10.25.33.101

255.255.240.0

2nd address

20

10.26.33.101

255.255.240.0

3rd address

20

10.27.33.101

255.255.240.0

switch(config)# vlan 20
switch(vlan-20)# ip address 10.26.33.101/20
switch(vlan-20)# ip address 10.27.33.101/20

switch(config)# show ip

 Internet (IP) Service

   IP Routing      : Disabled

   Default Gateway : 10.20.227.1
   Default TTL     : 64
   Arp Age         : 20
   Domain Suffix   : 
   DNS server      :

                       |                                           Proxy ARP
   VLAN                | IP Config  IP Address      Subnet Mask    Std Local
   ------------------- + ---------- --------------- -------------- ----------
   DEFAULT_VLAN        | Manual     10.20.30.100   255.255.240.0   No   No
   VLAN_20             | Manual     10.25.33.101   255.255.240.0   No   No
                       | Manual     10.26.33.101   255.255.240.0   No   No
                       | Manual     10.27.33.101   255.255.240.0   No   No

Multinetting on the default VLAN

To multinet the default VLAN, you would do the following:

switch(vlan-20)# vlan 1
switch(vlan-1)# ip address 10.21.30.100/20

switch(config)# show ip

 Internet (IP) Service

   IP Routing      : Disabled

   Default Gateway : 10.20.227.1
   Default TTL     : 64
   Arp Age         : 20
   Domain Suffix   : 
   DNS server      :

                       |                                           Proxy ARP
   VLAN                | IP Config  IP Address      Subnet Mask    Std Local
   ------------------- + ---------- --------------- -------------- ----------
   DEFAULT_VLAN        | Manual     10.20.30.100   255.255.240.0   No   No
                       | Manual     10.21.30.100   255.255.240.0   No   No
   VLAN_20             | Manual     10.25.33.101   255.255.240.0   No   No
                       | Manual     10.26.33.101   255.255.240.0   No   No
                       | Manual     10.27.33.101   255.255.240.0   No   No