HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 168

Con VLAN 3 as an IPv4 based VLAN., ethernetii, ethernetii etype, snap etype, protocol-vlan

Page 168 highlights

mode: Configures a user-defined protocol template for the VLAN, which could also have the following encapsulation formats: ethernetii, llc, and snap. ethernetii etype etype-id: Matches Ethernet II encapsulation format and the corresponding protocol type values. The etype-id argument is the protocol type ID of inbound packets, in the range of 0x0600 to 0xFFFF (excluding 0x0800, 0x809B, 0x8137, and 0x86DD). llc: Matches the llc encapsulation format. dsap dsap-id: Specifies the destination service access point, in the range of 0x00 to 0xFF. ssap ssap-id: Specifies the source service access point, in the range of 0x00 to 0xFF. snap etype etype-id: Matches SNAP encapsulation format and the corresponding protocol type values. The etype-id argument is the Ethernet type of inbound packets, in the range of 0x0600 to 0xFFFF (excluding 0x8137). protocol-index: Specifies a protocol template index, in the range of 0 to 15. The system will automatically assign an index if this parameter is not specified. to protocol-end: Specifies the end protocol index, in the range of 0 to 15. The protocol-end argument must be greater than or equal to the protocol-index argument. all: Removes all the protocols bound to the VLAN. Description Use protocol-vlan to configure the VLAN as a protocol based VLAN and configure the protocol template for the VLAN. Use undo protocol-vlan to remove the configured protocol template. By default, no VLAN is bound to any protocol template. When you use the mode keyword to configure a user-defined protocol template, do not set etype-id in ethernetii etype etype-id to 0x0800, 0x809B, 0x8137, or 0x86DD. Otherwise, the encapsulation format of the matching packets will be the same as that of the IPv4, AppleTalk, IPX, and IPv6 packets, respectively. Do not configure both the dsap-id and ssap-id arguments in the protocol-vlan command as 0xE0 or 0xFF when you configure the user-defined template for llc encapsulation. Otherwise, the encapsulation format of the matching packets will be the same as that of the ipx llc or ipx raw packets, respectively. When either of the dsap-id and ssap-id arguments is configured, the system assigns 0XAA to the other argument. When you use the mode keyword to configure a user-defined protocol template, do not set etype-id in snap etype etype-id to 0x8137. Otherwise, the template format will be the same as that of the IPX protocol. You can set etype-id to 0x0800, 0x809B, or 0x86DD, corresponding to IPv4, AppleTalk, and IPv6, respectively. Related commands: display protocol-vlan vlan. Examples CAUTION: IP uses ARP for address resolution in Ethernet. To prevent communication failure, configure the IP and ARP templates in the same VLAN and associate them with the same port. # Configure VLAN 3 as an IPv4 based VLAN. system-view 160

  • 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
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245

160
mode
: Configures a user-defined protocol template for the VLAN, which could also have the following
encapsulation formats:
ethernetii
,
llc
, and
snap
.
ethernetii etype
etype-id
: Matches Ethernet II encapsulation format and the corresponding protocol type
values. The
etype-id
argument is the protocol type ID of inbound packets, in the range of 0x0600 to
0xFFFF (excluding 0x0800, 0x809B, 0x8137, and 0x86DD).
llc
: Matches the
llc
encapsulation format.
dsap
dsap-id
: Specifies the destination service access point, in the range of 0x00 to 0xFF.
ssap
ssap-id
: Specifies the source service access point, in the range of 0x00 to 0xFF.
snap etype
etype-id
: Matches SNAP encapsulation format and the corresponding protocol type values.
The
etype-id
argument is the Ethernet type of inbound packets, in the range of 0x0600 to 0xFFFF
(excluding 0x8137).
protocol-index
: Specifies a protocol template index, in the range of 0 to 15. The system will automatically
assign an index if this parameter is not specified.
to
protocol-end
: Specifies the end protocol index, in the range of 0 to 15. The
protocol-end
argument
must be greater than or equal to the
protocol-index
argument
.
all
: Removes all the protocols bound to the VLAN.
Description
Use
protocol-vlan
to configure the VLAN as a protocol based VLAN and configure the protocol template
for the VLAN.
Use
undo protocol-vlan
to remove the configured protocol template.
By default, no VLAN is bound to any protocol template.
When you use the
mode
keyword to configure a user-defined protocol template, do not set
etype-id
in
ethernetii etype
etype-id
to 0x0800, 0x809B, 0x8137, or 0x86DD. Otherwise, the encapsulation format
of the matching packets will be the same as that of the IPv4, AppleTalk, IPX, and IPv6 packets,
respectively.
Do not configure both the
dsap-id
and
ssap-id
arguments in the
protocol-vlan
command as 0xE0 or 0xFF
when you configure the user-defined template for
llc
encapsulation. Otherwise, the encapsulation format
of the matching packets will be the same as that of the
ipx llc
or
ipx raw
packets, respectively. When
either of the
dsap-id
and
ssap-id
arguments is configured, the system assigns 0XAA to the other
argument.
When you use the
mode
keyword to configure a user-defined protocol template, do not set
etype-id
in
snap etype
etype-id
to 0x8137. Otherwise, the template format will be the same as that of the IPX protocol.
You can set
etype-id
to 0x0800, 0x809B, or 0x86DD, corresponding to IPv4, AppleTalk, and IPv6,
respectively.
Related commands:
display protocol-vlan vlan
.
Examples
CAUTION:
IP uses ARP for address resolution in Ethernet. To prevent communication failure, configure the IP and ARP
templates in the same VLAN and associate them with the same port.
# Configure VLAN 3 as an IPv4 based VLAN.
<Sysname> system-view