
DETAILED STEPS
Purpose
Command or Action
Enters XR configuration mode.
configure
Example:
Step 1
RP/0/RP0/CPU0:router# configure
Enters subinterface configuration mode and specifies the
interface type, location, and subinterface number.
interface
{
TenGigE
|
Bundle-Ether
}
interface-path-id.subinterface
Step 2
Example:
• Replace the
interface-path-id
argument with one of
the following instances:
RP/0/RP0/CPU0:router(config)# interface TenGigE
0/2/0/4.10
• Physical Ethernet interface instance, or with an
Ethernet bundle instance. Naming notation is
rack
/
slot
/
module
/
port
, and a slash between values
is required as part of the notation.
• Ethernet bundle instance. Range is from 1 through
65535.
• Replace the
subinterface
argument with the
subinterface value. Range is from 0 through 4095.
• Naming notation is
interface-path-id.subinterface
, and
a period between arguments is required as part of the
notation.
Sets the Layer 2 encapsulation of an interface.
encapsulation dot1q
Example:
Step 3
RP/0/RP0/CPU0:router(config-subif)# encapsulation
dot1q 100
Assigns an IP address and subnet mask to the subinterface.
ipv4 address ip-address mask
Step 4
Example:
• Replace
ip-address
with the primary IPv4 address for
an interface.
RP/0/RP0/CPU0:router(config-subif)# ipv4 address
178.18.169.23/24
• Replace
mask
with the mask for the associated IP
subnet. The network mask can be specified in either
of two ways:
• The network mask can be a four-part dotted
decimal address. For example, 255.0.0.0 indicates
that each bit equal to 1 means that the
corresponding address bit belongs to the network
address.
• The network mask can be indicated as a slash (/)
and number. For example, /8 indicates that the
first 8 bits of the mask are ones, and the
corresponding bits of the address are network
address.
Interface and Hardware Component Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
114
Configuring 802.1Q VLAN Interfaces
Configuring 802.1Q VLAN Subinterfaces