OcNOS-SP : Layer 3 Guide : Layer 3 Subinterface Commands : Layer 3 Subinterface Commands
Layer 3 Subinterface Commands
This chapter describes the Layer 3 subinterface commands:
encapsulation
Use this command to configure encapsulation under a subinterface. Using this command, a Layer 3 subinterface can be configured as a port-vlan or stacked vlan. Before configuring the encapsulation on sub-interface, the operating state of the sub-interface is admin down. After configuring the encapsulation, the operating state of the sub-interface becomes up.
Command Syntax
encapsulation ((dot1q|dot1ad) VLAN_ID (inner-dot1q VLAN_ID|))
no encapsulation
Parameters
dot1q
IEEE 802.1Q VLAN-tagged packets
dot1ad
IEEE 802.1ad VLAN-tagged packets
VLAN_ID
First (outer) VLAN identifier on the subinterface <2-4094>
inner-dot1q VLAN_ID
 
Second (inner 802.1Q) VLAN identifier on the subinterface <2-4094>
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
#configure terminal
(config-if)#interface xe9.1
(config-if)#encapsulation dot1q 10
 
(config-if)#interface xe9.2
(config-if)#encapsulation dot1q 20 inner-dot1q 20
 
(config-if)#interface xe9.3
(config-if)#encapsulation dot1ad 30
 
(config-if)#interface xe9.4
(config-if)#encapsulation dot1ad 40 inner-dot1q 40
 
interface IFNAME.SUBINTERFACE_ID
Use this command to configure a subinterface. Subinterfaces are supported for raw Ethernet interfaces as well as dynamic/static LAG interfaces. The number of subinterfaces supported is 2000 per parent port and a total of 4000 sub-interfaces per device. This command displays an error when the identifier of the subinterface is out of range.
Use no form of this command to unconfigure a sub-interface.
Command Syntax
interface IFNAME.SUBINTERFACE_ID
no interface IFNAME.SUBINTERFACE_ID
Parameters
IFNAME
Interface name, such as xe1, po1, or sa1
SUBINTERFACE_ID
 
Subinterface identifier <1-2000>
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
(config)#int xe1.5
(config-if)#exit
(config)#no interface xe1.5
 
(config)#int po1
(config-if)#exit
(config)#int po1.1
(config-if)#exit
(config)#no interface po1.1
 
(config)#int sa1
(config-if)#exit
(config)#int sa1.1
(config-if)#exit
(config)#no interface sa1.1
show interface IFNAME.SUBINTERFACE_ID
Use this command to display the details of the sub-interface.This command displays the information about the operating status, hardware address, VRF binding details, and input/output counters. This command can display details of the a sub-interface for a dynamic/static LAG as well.
Command Syntax
show interface IFNAME.SUBINTERFACE_ID
Parameters
IFNAME
Interface name, such as xe1, po1, or sa1
SUBINTERFACE_ID
 
Subinterface identifier <1-2000>
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
#show int xe1.1
Interface xe1.1
Hardware is SUBINTERFACE Current HW addr: 6cb9.c500.1647
Physical:6cb9.c500.1647 Logical:(not set)
Port Mode is Router
Interface index: 20482049
Metric 1 mtu 1500
<UP,BROADCAST,RUNNING,MULTICAST>
VRF Binding: Not bound
Label switching is disabled
No Virtual Circuit configured
Administrative Group(s): None
DHCP client is disabled.
Last Flapped: Never
Statistics last cleared: Never
inet6 fe80::6eb9:c5ff:fe00:1647/64
RX
unicast packets 0 multicast packets 0 broadcast packets 0
input packets 0 bytes 0
jumbo packets 0
undersize 0 oversize 0 CRC 0 fragments 0 jabbers 0
input error 0
input with dribble 0 input discard 0
Rx pause 0
TX
unicast packets 0 multicast packets 0 broadcast packets 0
output packets 0 bytes 0
jumbo packets 0
output errors 0 collision 0 deferred 0 late collision 0
output discard 0
Tx pause 0
 
#show int sa1.1
Interface sa1.1
Hardware is SUBINTERFACE Current HW addr: 6cb9.c500.1647
Physical:6cb9.c500.1647 Logical:(not set)
Port Mode is Router
Interface index: 409602049
Metric 1 mtu 1500
<UP,BROADCAST,RUNNING,MULTICAST>
VRF Binding: Not bound
Label switching is disabled
No Virtual Circuit configured
Administrative Group(s): None
DHCP client is disabled.
Last Flapped: Never
Statistics last cleared: Never
inet6 fe80::6eb9:c5ff:fe00:1647/64
RX
unicast packets 0 multicast packets 0 broadcast packets 0
input packets 0 bytes 0
jumbo packets 0
undersize 0 oversize 0 CRC 0 fragments 0 jabbers 0
input error 0
input with dribble 0 input discard 0
Rx pause 0
TX
unicast packets 0 multicast packets 0 broadcast packets 0
output packets 0 bytes 0
jumbo packets 0
output errors 0 collision 0 deferred 0 late collision 0
output discard 0
Tx pause 0
 
#show int po1.3
Interface po1.3
Hardware is SUBINTERFACE Current HW addr: 0030.abf1.0ec8
Physical:0030.abf1.0ec8 Logical:(not set)
Port Mode is Router
Interface index: 204802051
Metric 1 mtu 1500
<UP,BROADCAST,RUNNING,MULTICAST>
VRF Binding: Not bound
Label switching is disabled
No Virtual Circuit configured
Administrative Group(s): None
DHCP client is disabled.
Last Flapped: Never
Statistics last cleared: Never
inet 23.0.0.2/24 broadcast 23.0.0.255
inet6 fe80::230:abff:fef1:ec8/64
RX
unicast packets 0 multicast packets 0 broadcast packets 0
input packets 141805 bytes 9643544
jumbo packets 0
undersize 0 oversize 0 CRC 0 fragments 0 jabbers 0
input error 0
input with dribble 0 input discard 0
Rx pause 0
TX
unicast packets 0 multicast packets 0 broadcast packets 0
output packets 0 bytes 0
jumbo packets 0
output errors 0 collision 0 deferred 0 late collision 0
output discard 0
Tx pause 0