HP Comware 5 Debug Manual Vol 2

[Sysname] ip count enable
[Sysname] ip count rule 13.13.13.0 255.255.255.0
[Sysname] interface Ethernet 1/0
[Sysname-Ethernet1/0] port link-mode route
[Sysname-Ethernet1/0] ip address 13.13.13.46 255.255.255.0
[Sysname-Ethernet1/0] ip count outbound-packets
[Sysname-Ethernet1/0] ip count inbound-packets
[Sysname-Ethernet1/0] quit
[Sysname] interface Ethernet 1/1
[Sysname-Ethernet1/1] port link-mode route
[Sysname-Ethernet1/1] ip address 33.33.33.46 255.255.255.0
[Sysname-Ethernet1/1] quit
[Sysname] ip route-static 13.13.13.0 255.255.255.0 13.13.13.40
[Sysname] ip route-static 33.33.33.0 255.255.255.0 33.33.33.41
[Sysname] return
# Enable IP accounting data debugging on Router B. Output similar to the following example is
generated when packets pass Router B:
<Sysname> debugging ip count data
<Sysname> terminal debugging
*Sep 23 06:41:12:228 2009 Sysname IPA/7/IPA:Protocol:1
Direction:13.13.13.40-->33.33.33.41 From:Ethernet1/0
*Sep 23 06:41:12:228 2009 Sysname IPA/7/IPA:Dealing with the inbound-packet permitted by
the firewall.
// Router B received packets with protocol number 1 from 13.13.13.40 to 33.33.33.41 on Ethernet 1/0.
*Sep 23 06:41:12:229 2009 Sysname IPA/7/IPA:Protocol:1
Direction:33.33.33.41-->13.13.13.40 From:Ethernet1/0
*Sep 23 06:41:12:230 2009 Sysname IPA/7/IPA:Dealing with the outbound-packet permitted
by the firewall.
// Router B sent packets with protocol number 1 from 33.33.33.41 to 13.13.13.40 through Ethernet 1/0.
120