subnet

Specifies the local IP address with the subnet mask of the routing device.

Syntax

subnet subnet_addr
no subnet subnet_addr

Command Default

The command is disabled by default.

Parameters

subnet_addr
Specifies the subnet mask of the IP address.

Modes

MPLS CSPF-group configuration mode

Usage Guidelines

When the command is configured, every link in the subnet is penalized.

The no form of the command disables the command.

MPLS is supported only on devices based on the DNX chipset family. For a list of such devices, see "Supported Hardware".

Examples

The following example configures subnet 10.1.2.0 with a mask length of 24.

device# configure
device(config)# router mpls
device(config-router-mpls)# cspf-group group3
device(config-router-mpls-cspf-group-group3)# subnet 10.1.2.0/24