Syntax
display ip user-based-sharing
interface-assignment [ ip-address ]
View
Any view
Parameter
ip-address:
User IP address, in dotted decimal notation.
Description
Use the display ip user-based-sharing
interface-assignment command to display the assignment of the outgoing
interfaces to users.
If no user IP address is specified, the
assignment of the outgoing interfaces to all users will be displayed.
Example
# Display the assignment of the outgoing
interfaces to all the users.
<H3C> display ip
user-based-sharing interface
Total: 7 entry(s).
User IP Route
Interface Next-hop
10.0.1.12 0.0.0.0/0
Ethernet0/0 202.22.56.1
10.0.1.13 0.0.0.0/0
Ethernet0/1 198.223.16.1
10.0.1.14 0.0.0.0/0
Ethernet0/0 202.22.56.1
10.0.1.15 0.0.0.0/0
Ethernet0/0 202.22.56.1
10.0.1.16 0.0.0.0/0
Ethernet0/1 198.223.16.1
10.0.1.17 0.0.0.0/0
Ethernet0/0 202.22.56.1
10.0.1.18 0.0.0.0/0
Ethernet0/1 198.223.16.1
Table 1-1 Description on the fields of the display ip user-based-sharing
interface command
|
Field
|
Description
|
|
User IP
|
User IP
address
|
|
Route
|
Route
entry
|
|
Interface
|
Outgoing
interface assigned to the user
|
|
Next-hop
|
Nexthop
address
|
Syntax
display ip user-based-sharing statistic [ ip-address | sort-by-load ]
View
Any view
Parameter
ip-address:
User IP address, in dotted decimal notation.
sort-by-load:
Displays user traffic statistics in a descending order of load.
Description
Use the display ip user-based-sharing
statistic command to display user traffic statistics.
If no user IP address is specified, the
traffic statistics of all the users will be displayed.
Example
# Display the traffic statistics of all the
users.
<H3C> display ip
user-based-sharing statistic
Total: 7 entry(s).
Unit:kilobytes/second
User IP SUM-IN SUM-OUT
TCP-IN TCP-OUT UDP-IN UDP-OUT ICMP-IN ICMP-OUT
10.0.1.12 86.0 24.0
78.0 22.0 7.8 2.2 0.1 0.0
10.0.1.13 60.0 11.0
47.0 11.0 12.0 1.0 0.2 0.1
10.0.1.14 7.3 24.0
5.4 1.2 1.9 23.0 0.0 0.0
10.0.1.15 54.0 24.0
44.0 12.0 10.0 12.0 0.0 0.0
10.0.1.16 29.0 8.1
6.8 2.3 22.0 5.6 0.1 0.3
10.0.1.17 35.0 11.0
33.0 9.2 2.2 0.2 0.1 0.2
10.0.1.18 290.0 33.0
283.0 10.0 0.1 11.0 0.0 0.0
Table 1-2 Description on the fields of
the display ip user-based-sharing statistic command
|
Field
|
Description
|
|
User IP
|
User IP address
|
|
SUM-IN
|
Total incoming traffic, in kbps
|
|
SUM-OUT
|
Total outgoing traffic, in kbps
|
|
TCP-IN
|
Incoming TCP traffic, in kbps
|
|
TCP-OUT
|
Outgoing TCP traffic, in kbps
|
|
UDP-IN
|
Incoming UDP traffic, in kbps
|
|
UDP-OUT
|
Outgoing UDP traffic, in kbps
|
|
ICMP-IN
|
Incoming ICMP traffic, in kbps
|
|
ICMP-OUT
|
Outgoing ICMP traffic, in kbps
|
Syntax
ip user-based-sharing acl acl-number
undo ip user-based-sharing acl
View
System view
Parameter
acl-number:
ACL number, in the range 2000 to 3999.
Description
Use the ip user-based-sharing acl command
to reference an ACL for packets filtering.
Use the undo ip user-based-sharing acl command
to disable the ACL based packet filtering.
The system records the source IP addresses of
load balanced packets in a user table. Therefore, large numbers of different
source IP addresses will fill up the user table, causing user-based load sharing
to fail. In such a case, use the user-based-sharing acl command to
ensure that user-based load sharing is performed on only the packets permitted by
the ACL. The traffic denied by the ACL will still be forwarded, but no entry
for the traffic will be installed in the user table.
Example
# Filter the
packets using ACL 3000.
[H3C] ip user-based-sharing acl 3001
Syntax
ip user-based-sharing aging-time seconds
undo ip user-based-sharing aging-time
View
System view
Parameter
seconds:
User entry aging time, in seconds. It is in the range 30 to 7200 and defaults
to 300.
Description
Use the ip user-based-sharing aging-time
command to configure the user entry aging time.
Use the undo ip user-based-sharing
aging-time command to restore the default user entry aging time.
Example
# Configure the user entry aging time.
[H3C] ip user-based-sharing
aging-time 30
Syntax
ip user-based-sharing enable
undo ip user-based-sharing enable
View
System view
Parameter
None
Description
Use the ip
user-based-sharing enable command to enable user-based load sharing.
Use the undo
ip user-based-sharing enable command to disable user-based load sharing.
By default,
user-based load sharing is disabled.
Example
# Enable user-based load sharing.
[H3C] ip user-based-sharing enable
Syntax
ip user-based-sharing route ip-address net-mask
undo ip user-based-sharing route ip-address net-mask
View
System view
Parameter
ip-address: Destination
IP address of a matching route, in dotted decimal notation.
net-mask: Mask
of the IP address, in dotted decimal notation or a mask length.
Description
Use the ip user-based-sharing route command
to specify a matching route for user-based load sharing.
Use the undo ip user-based-sharing route
command to remove a matching route for user-based load sharing.
You can specify more than one route by
executing this command multiple times. User-based load sharing is performed on
the packets forwarded through the specified routes.
Example
# Specify a matching route for user-based
load sharing.
[H3C] ip user-based-sharing route
0.0.0.0 0
Syntax
ip user-based-sharing stat-interval seconds
undo ip user-based-sharing stat-interval
View
System view
Parameter
seconds: Interval
for collecting traffic statistics, in seconds. It can be 5, 10, 15, 30, 45, and
60, and defaults to 10.
Description
Use the ip user-based-sharing
stat-interval command to specify an interval for collecting traffic
statistics.
Use the undo ip user-based-sharing
stat-interval command to restore the default interval.
Example
# Specify the interval for collecting
traffic statistics.
[H3C] ip user-based-sharing
stat-interval 45
Syntax
reset ip user-based-sharing cache [ ip-address ]
View
User view
Parameter
ip-address:
User IP address, in dotted decimal notation.
Description
Use the reset ip user-based-sharing
cache command to clear the specified user entry or all the user entries.
Example
# Clear the user entry of 10.0.1.25.
<H3C> reset ip
user-based-sharing cache 10.0.1.25