Commands for Configuring Subinterfaces
This section describes the commands you use to create and configure subinterfaces on the RPM ATM switch interface:
show interfaceDisplays the status of a specific interface or all interfaces on the RPM.
interfaceCreates or accesses the configuration of an interface or subinterface.
shutdownDisables an interface or subinterface. The no shutdown command activates an interface.
ip addressAssigns an IP address and subnet mask to a subinterface.
Show Interface Command
The show interface command output lists detailed interface and subinterface configuration and status information. You can specify a particular interface. Otherwise, all interfaces are listed.
Here is the show interface command syntax:
show interface [switch <slot-number>/<interface-number>.[subinterface-number]]
The keyword and parameter options are as follows:
a keyword, all interfaces are listed.
slot-numberIf you specify the switch keyword, you must specify the RPM card slot number.
interface-numberIf you specify the switch keyword, you must specify the interface number. For the RPM switch interface, the only valid value is 1.
subinterface-numberYou can also specify a subinterface number.
For example, type show interface 9/1.100 to list information for subinterface 100 on the ATM switch interface of the RPM in slot 9. Type show interface to list information for all interfaces on the RPM. Example 22-20 shows the show interface switch output for a subinterface.
Example 22-20 show interface switch Output
rpm01>sho int switch 9/1.100 Switch1.100 is up, line protocol is up Hardware is ENHANCED ATM PA Internet address is 10.100.100.2/24 MTU 4470 bytes, BW 149760 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ATM 0 packets input, 0 bytes 9 packets output,531 bytes 0 OAM cells input, 0 OAM cells output |
Useful information in the show interface switch output includes the following:
Interface statusUp or down
Line protocol statusUp or down
IP address
Maximum Transmission Size (MTU)The largest packet size, in bytes, permitted on the interface
Bandwidth (BW)The interface bandwidth in kbps
EncapsulationAlways ATM
Ingress and egress traffic counters
You can clear the traffic counters by using the clear counters switch command.
Interface Command
The interface global configuration command accesses interface-specific configuration mode. You also use the interface command to create a new subinterface.
When you use the interface command, the CLI prompt changes from hostname(config)# to hostname(config-if)#.
Here is the interface command syntax:
interface [switch <slot-number>/<interface-number>.[subinterface-number]] {point-to-point | multipoint | tag}
The keyword and parameter options are as follows:
switchThis optional keyword shows the switch interface.
slot-numberIf you specify the switch keyword, you must specify the RPM card slot number.
interface-numberIf you specify the switch keyword, you must specify the interface number. For the RPM switch interface, the only valid value is 1.
subinterface-numberYou can also specify a subinterface number.
point-to-pointCreates a point-to-point subinterface that supports only one PVC. You need to specify this keyword only when you are creating a new subinterface.
multipointCreates a multipoint subinterface that supports multiple PVCs. You need to specify this keyword only when you are creating a new subinterface.
tagCreates a tag (MPLS) subinterface. You need to specify this keyword only when you are creating a new subinterface.
Shutdown Command
The shutdown interface-specific configuration command deactivates an interface. Use the no shutdown command to activate an interface. By default, a subinterface is active when you create it using the interface command.
IP Address Command
The ip address interface-specific configuration command is used to assign an IP address to a subinterface.
Here is the ip address command syntax:
ip address <IP-address> <subnet-mask>
The parameter options are as follows:
IP-addressThe IP address assigned to the subinterface. Remember when choosing an IP address that subinterfaces with PVCs between them must be on the same IP network. The IP address is entered in dotted-decimal format, such as 172.100.100.54.
subnet-maskThe subnet mask used on the subinterface. Subinterfaces with PVCs between them should all be configured with the same subnet mask. The subnet mask is entered in dotted-decimal format, such as 255.255.255.0.