Configuring the AS Number Format and Interface Index Length on an IPv6 Network
Context
AS number format: According to RFC recommendations, IP packets carry 16-bit AS numbers. However, in some networks, IP packets carry 32-bit AS numbers. To ensure that the NDE can collect flow statistics between ASs, you may need to configure the AS number format on the NDE.
Interface index: The NMS obtains the interface information of exported packets according to the interface indexes in NetStream packets. Interface index formats include 16-bit and 32-bit. The NMS devices of different vendors may use different interface index formats. The interface index format used by the NDE must be the same as the interface index format used by the NMS. For example, if the NMS can parse 32-bit interface indexes, set the format of the interface indexes contained in exported NetStream packets to 32-bit.
- On a network that uses the 32-bit AS number format, the NMS must be able to identify the 32-bit AS numbers. Otherwise, the NMS cannot identify inter-AS flows sent from devices.
Because the CE6880EI and CE5880EI do not support AS information sampling, they do not support the AS number format.
Procedure
- Run the system-view command to enter the system view.
- Run the netstream as-mode { 16 | 32 } command to set the AS number format.
By default, a device uses 16-bit AS numbers.
- Run the netstream export ipv6 index-switch index-switch command to set the interface index length in the exported packets carrying IPv6 flow statistics
By default, 16-bit interface indexes are contained in the exported packets carrying IPv6 flow statistics.
- Run the commit command to commit the configuration.