R3303-HP 6600/HSR6600 Routers Network Management and Monitoring Command Reference
258
host-monitor add
Use host-monitor add to add legitimate flow entries.
Syntax
6602:
host-monitor add source source-ip destination destination-ip protocol protocol interface interface-type
interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ]
HSR6600/6604/6608/6616:
host-monitor add source source-ip destination destination-ip protocol protocol interface interface-type
interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ] [ slot slot-number ]
Views
System view
Default command level
3: Manage level
Parameters
source source-ip: Specifies the source IP address.
destination destination-ip: Specifies the destination IP address.
protocol protocol: Specifies the protocol number in the IPv4 header, in the range of 0 to 255. Common
protocols include ICMP (1), IGMP (2), TCP (6), and UDP (17).
interface interface-type interface-number: Specifies the incoming or outgoing interface of the traffic flow.
inbound: Specifies the incoming interface.
outbound: Specifies the outgoing interface.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN that has the traffic flow. The
vpn-instance-name argument represents the VPN name, a case-sensitive string of 1 to 31 characters. If
the traffic flow does not belong to any VPN, do not specify this option.
slot slot-number: Adds the flow entries to a card. The slot-number argument specifies a card by its slot
number. If no slot is specified, the flow entries are added to each card.
Usage guidelines
When you execute the command:
• If Host-monitor is not fixed, the added flow entry is unfixed.
• If Host-monitor is fixed, the added flow entry is fixed. If this entry already exists among illegitimate
flow entries, remove this existing entry.
Examples
# Add the flow entry with the source IP address at 1.1.1.1, destination IP address at 2.2.2.2, and protocol
number as 6 on GigabitEthernet 2/1/1 for the incoming traffic.
<Sysname> system-view
[Sysname] host-monitor add source 1.1.1.1 destination 2.2.2.2 protocol 6 interface
gigabitethernet 2/1/1 inbound
批注 [m023943]: 请张南和小
代关注:
这几个可以输入缩写吗?










