ip-subnet

Configures an IP subnet VLAN within a VLAN.
Syntax
ip-subnet { ip-address ip-mask [ name string ] }
no ip-subnet { ip-address ip-mask [ name string ] }
Command Default

A VLAN is not configured with an IP subnet and mask.

Parameters
ip-address
Specifies the IP address you want to assign to a VLAN. The IP address can be in the format A.B.C.D or A.B.C.D/L, where L is the subnet mask length.
ip-mask
Specifies the subnet mask you want to assign. This is required when the subnet mask length is not specified along with the IP address.
name string
Specifies the name of the IP subnet. The name can be up to 32 characters in length.
Modes

VLAN configuration mode

Usage Guidelines

The no form of the command removes the IP subnet VLAN.

Examples

The following example shows how to configure an IP subnet VLAN within a VLAN.

device(config)# vlan 4
device(config-vlan-4)# ip-subnet 10.1.3.0/24 name Brown