R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference
255
host-monitor add
Use host-monitor add to add legitimate flow entries.
Syntax
In standalone mode:
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 ]
In IRF mode:
host-monitor add source source-ip destination destination-ip protocol protocol interface interface-type
interface-number { inbound | outbound } [ vpn-instance vpn-instance-name ] [ chassis chassis-number
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. (In standalone mode.)
chassis chassis-number slot slot-number: Adds flow entries for a card on an IRF member device. The
chassis-number argument represents the ID of the IRF member device and the slot-number argument
represents the number of the slot where the card resides. If no slot is specified, the flow entries are added
to each card in the IRF fabric. (In IRF mode.)
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