To display the
interface information for the IP subscriber interfaces, use the
show ipsubscriber
interface command in the
EXEC mode.
show ipsubscriber interface {type interface-path-id | access-interface | address-family | brief | dynamic-routes [location node-id] | location node-id | outer-vlan-id id [inner-vlan-id id] | subscriber-ip | subscriber-label | | subscriber-mac | vrf}
Syntax Description
type
|
Interface
type. For more information on interface types available for this command, use
the question mark (?) online help function.
|
interface-path-id
|
Physical
interface or virtual interface.
Note
|
Use the
show
interfaces
command to see a list of all interfaces currently
configured on the router.
|
For more
information about the syntax for the router, use the question mark (
?
) online help function.
|
access-interface
|
Specifies
the access or parent interface.
|
address-family
|
Specifies
the address-family in which the IP subscriber interface operates.
|
brief
|
Displays the
brief summary of IP Subscriber access interface status and configuration.
|
dynamic-routes
|
Specifies the dynamic routes.
|
location
|
Specifies
the IP subscriber location.
|
node-id
|
Specifies
the fully qualified location specification.
|
outer-vlan-id
|
Specifies the subscriber outer VLAN ID.
|
id
|
Outer VLAN ID. The range is from 1 to 4094.
|
inner-vlan-id
|
Specifies the subscriber inner VLAN ID.
|
id
|
Inner VLAN ID. The range is from 1 to 4094.
|
subscriber-ip
|
Specifies
the subscriber IPv4 address.
|
subscriber-label
|
Specifies
the subscriber label.
|
subscriber-mac
|
Specifies
the subscriber MAC address.
|
vrf
|
Specifies
the VRF in which the IP subscriber interface operates.
|
Command History
Release
|
Modification
|
Release 4.2.0
|
This
command was introduced.
|
Release 4.3.1
|
The outer-vlan-id keyword along with an optional inner-vlan-id keyword was added.
|
Release 5.1
|
The dynamic-routes keyword was added.
|
Release 5.3.0
|
A new output field, Template ID , was added for show ipsubscriber interface internal command.
|
Usage Guidelines
For interface-based static sessions in the BNG, the value of Type field in the show ipsubscriber interface command output is displayed as Static.
Task ID
Task ID
|
Operation
|
network
|
read
|
Examples
This is the sample
output of the
show ipsubscriber
interface command:
RP/0/RSP0/CPU0:router# show ipsubscriber interface
Interface: GigabitEthernet0/1/0/0.11.ip1
Type: L2-connected
Ifhandle: 0x201000c0
Access Interface: GigabitEthernet0/1/0/0.11 (0x20100080)
Subscriber MAC: 0100.0000.0000
Subscriber IP: 11.10.10.9 <------- this line will not be shown if empty
Subscriber IPv6 Prefix: FE80::10 <------- this line will not be shown if empty
Subscriber Label: 0x8000000
IPv4: Initiator: Packet-Trigger <-- this line will not be shown if not enabled
IPv6: Initiator: DHCPv6 <-- this line will not be shown if not enabled
Created: May 11 16:33:08 (age 00:03:08)
VRF: vpn1 (0x60000002), IPv4 Table: default (0xe0000002), IPv6 Table: default (0xe0000002)
IPv4: State: Up(9) (old: Adjacency added(8))
Last state change: May 11 16:33:08 (00:03:08 in current state)
IPv6: State: Up(9) (old: Adjacency added(8))
Last state change: May 11 16:33:08 (00:03:08 in current state)
RP/0/RSP0/CPU0:router# show ipsubscriber interface brief
Codes: INV - Invalid, INIT - Initialized, STRTD - Session Creation Started,
CPEXCTG - Control-Policy Executing, CPEXCTD - Control-Policy Executed,
FTAPPLD - Session Features Applied, VRFCFGD - VRF Configured,
ADJADDG - Adding Adjacency, ADJADDD - Adjacency Added, UP - Up,
DOWN - Down, DISCG - Disconnecting, DISCD - Disconnected, ERR - Error,
UNKWN - Unknown State, PKT - Packet Trigger Initiation,
PKTv6 - Packet Trigger Initiation for IPv6,
DHCP - DHCP Initiation, DHCPv6 - DHCPv6 Initiation
Interface Proto Subscriber IP MAC Address Sublabel VRF State
---------------------- ------ ------------------ ------------------ ---------- ---------- ----------
Gi0/0/0/0.ip1 DHCP 1.10.10.9 0100.0000.0000 0x40 default UP
DHCPv6 0100.0000.0000 0x40 default UP
Gi0/0/0/0.ip2 PKT 2.20.20.9 0200.0000.0000 0x20 default UP
PKTv6 0200.0000.0000 0x20 default UP
Gi0/0/0/0.ip3 DHCPv6 5.40.20.9 0200.2200.0000 0x21 default UP
Gi0/0/0/0.ip4 PKTv6 7.91.20.9 0200.2210.0000 0x31 default UP
This is the sample output of the show ipsubscriber interface outer-vlan-id command:
RP/0/RSP0/CPU0:router# show ipsubscriber interface outer-vlan-id 200 inner-vlan-id 100
Interface: Bundle-Ether1.200.ip1
Type: L2-connected
Access Interface: Bundle-Ether1.200
Subscriber MAC: 0000.0000.0014
Subscriber IPv4: 1.10.9.246
Subscriber Label: 0x4f
IPv4 Initiator: Packet-Trigger
VLAN ID: outer 200 inner 100
Created: Dec 22 00:32:28 (age 00:00:43)
VRF: default, IPv4 Table: default
IPv4 State: Up (old: Adjacency added)
Last state change: Apr 9 00:32:28 (00:00:43 in current state)
This is the sample output of the show ipsubscriber interface dynamic-routes command:
RP/0/RSP0/CPU0:router# show ipsubscriber interface dynamic-routes
Interface Dynamic-Routes
---------------------- ------------------------------------------------------------
BE1.1.ip3 45.1.32.0/24 (vrf vpn1) nhop 12.1.0.32 (vrf vpn1) distance 3 tag 34 (added)
BE1.1.ip4 45.1.33.0/24 (vrf vpn1) nhop 12.1.0.33 (vrf vpn1) distance 14 tag 340 (added)
This is a sample output of the show ipsubscriber interface internal command, with BNG Subscriber Templates feature enabled:
RP/0/RSP0/CPU0:router# show ipsubscriber interface internal
Tue Nov 4 12:52:33.016 EDT
Interface: Bundle-Ether601.603.ip8
Type: L2-connected
Access Interface: Bundle-Ether601.603
Ifhandle: 0x9e0
Access Ifhandle: 0x560
Subscriber MAC: 0000.6611.0103
Subscriber IPv4: 15.15.0.4
Subscriber Label: 0xc3
IPv4 Initiator: DHCP
VLAN ID: 603
Created: Nov 2 13:42:34 (age 1d23h)
VRF: default (0x60000000), IPv4 Table: default (0xe0000000)
IPv4 State: Up (old: Adjacency added)
Last state change: Nov 2 13:42:35 (1d23h in current state)
Flags: 0x80030811 (V4_ROUTE_ADDED AFI_IPV4 ACTIVTED )
Flags2: 0x4 (V4_INIT_DONE )
AAA Transaction Id: 8589934603
Interface Number: 8
Wavl Tree Pointer: 0x10827c58
Template ID : 0x6e0
[IPv4 Event History]
Nov 2 13:42:34.368 FSOL Received
Nov 2 13:42:34.368 Session Created
Nov 2 13:42:34.880 IM Intf Created
Nov 2 13:42:35.008 VRF Received
Nov 2 13:42:35.008 VRF Conf Received
Nov 2 13:42:35.008 Feature-Conf Activated
Nov 2 13:42:35.520 EA-DPC Success
Nov 2 13:42:35.520 Subscriber Route Added
Nov 2 13:42:35.520 All RIB Route Added
This table
describes the significant fields shown in the display.
Table 2. show
ipsubscriber interface Field Descriptions
Field
|
Description
|
Interface
|
Specifies
the access interface type.
|
Proto
|
Specifies
the prototype, for instance, DHCP, DHCPv6, PKTv6.
|
Subscriber
IP
|
Specifies
the IP address of the subscriber interface.
|
MAC
Address
|
Specifies
the MAC address for each interface type.
|
Sublabel
|
Specifies
the sub label type for each interface.
|
VRF
|
Specifies
the default VRF type.
|
State
|
Specifies
the various states of the access interface, for example, up, down, deleted, and
unknown state.
|