HP 6125G HP 6125G & 6125G/XG Blade Switches Network Management and Mon - Page 111

mirroring-group mirroring-port

Page 111 highlights

Use undo mirroring-group to remove the specified mirroring groups. To mirror packets from a port to another port on the same device, create a local mirroring group. To mirror packets from a port (a source port) on the current device to another port (the monitor port) either on the same device or on a different device, create remote mirroring groups. When doing that, create the remote source group on the device where the source port is located and create the remote destination group on the device where the monitor port is located. By default, no mirroring group exists on a device. Related commands: sampler. Examples # Create a local mirroring group numbered 1. system-view [Sysname] mirroring-group 1 local mirroring-group mirroring-port Syntax mirroring-group group-id mirroring-port mirroring-port-list { both | inbound | outbound } View undo mirroring-group group-id mirroring-port mirroring-port-list { both | inbound | outbound } System view Default level 2: System level Parameters group-id: Number of a local or remote source group, ranging from 1 to 4. The mirroring group specified by the group-id argument must already exist. mirroring-port-list: A list of source ports/port ranges to be assigned to or removed from the mirroring group specified by group-id. You can specify up to eight single ports, port ranges, or combinations of both for the list. A single port takes the form of interface-type interface-number. A port range takes the form interface-type interface-number to interface-type interface-number, where the end port number must be greater than the start port number. For example, you may specify up to eight combinations of single ports and port ranges for the list like this: gigabitethernet 1/0/1 gigabitethernet 1/0/3 gigabitethernet 1/0/5 gigabitethernet 2/0/2 to gigabitethernet 2/0/10 gigabitethernet 3/0/1 gigabitethernet 3/0/4 gigabitethernet 3/0/6 to gigabitethernet 3/0/10 gigabitethernet 3/0/12. both: Mirrors both inbound and outbound packets on the specified ports. inbound: Mirrors only inbound packets on the specified ports. outbound: Mirrors only outbound packets on the specified ports. Description Use mirroring-group mirroring-port to assign ports to a local or remote source group as source ports. Use undo mirroring-group mirroring-port to remove source ports from the mirroring group. By default, no source port is configured for any mirroring group. You cannot configure source ports for a remote destination group. 105

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196

105
Use
undo mirroring-group
to remove the specified mirroring groups.
To mirror packets from a port to another port on the same device, create a local mirroring group.
To mirror packets from a port (a source port) on the current device to another port (the monitor port) either
on the same device or on a different device, create remote mirroring groups. When doing that, create the
remote source group on the device where the source port is located and create the remote destination
group on the device where the monitor port is located.
By default, no mirroring group exists on a device.
Related commands:
sampler
.
Examples
# Create a local mirroring group numbered 1.
<Sysname> system-view
[Sysname] mirroring-group 1 local
mirroring-group mirroring-port
Syntax
mirroring-group
group-id
mirroring-port
mirroring-port-list
{
both
|
inbound
|
outbound
}
undo mirroring-group
group-id
mirroring-port
mirroring-port-list
{
both
|
inbound
|
outbound
}
View
System view
Default level
2: System level
Parameters
group-id
: Number of a local or remote source group, ranging from 1 to 4. The mirroring group specified
by the
group-id
argument must already exist.
mirroring-port-list
: A list of source ports/port ranges to be assigned to or removed from the mirroring
group specified by
group-id
. You can specify up to eight single ports, port ranges, or combinations of
both for the list. A single port takes the form of
interface-type interface-number
. A port range takes the
form
interface-type interface-number
to
interface-type interface-number
, where the end port number must
be greater than the start port number. For example, you may specify up to eight combinations of single
ports and port ranges for the list like this:
gigabitethernet 1/0/1 gigabitethernet 1/0/3 gigabitethernet
1/0/5 gigabitethernet 2/0/2 to gigabitethernet 2/0/10 gigabitethernet 3/0/1 gigabitethernet 3/0/4
gigabitethernet 3/0/6 to gigabitethernet 3/0/10 gigabitethernet 3/0/12
.
both
: Mirrors both inbound and outbound packets on the specified ports.
inbound
: Mirrors only inbound packets on the specified ports.
outbound
: Mirrors only outbound packets on the specified ports.
Description
Use
mirroring-group mirroring-port
to assign ports to a local or remote source group as source ports.
Use
undo mirroring-group mirroring-port
to remove source ports from the mirroring group.
By default, no source port is configured for any mirroring group.
You cannot configure source ports for a remote destination group.