To query traffic information on a sub-interface, do as follows:
1. Run the statistics enable command in the sub-interface view to enable traffic statistics collection.
2. Run the display interface gigabitethernet [interface-number [.subnumber]] command to check traffic statistics on the sub-interface.