Netgear CSM4532 Software Administration Manual - Page 52

Trunk, General, switchport trunk allowed vlan, remove

Page 52 highlights

untagged are processed as if they are tagged with the access port PVID. Packets received that are tagged with the PVID are also processed. Packets received that are tagged with a VLAN other than the PVID are dropped. If the VLAN associated with an access port is deleted, the PVID of the access port is set to VLAN 1. VLAN 1 may not be deleted. •Trunk-Trunk-mode ports are intended for switch-to-switch links. Trunk ports can receive both tagged and untagged packets. Tagged packets received on a trunk port are forwarded on the VLAN contained in the tag if the trunk port is a member of the VLAN. Untagged packets received on a trunk port are forwarded on the native VLAN. Packets received on another interface belonging to the native VLAN are transmitted untagged on a trunk port. •General-General ports can act like access or trunk ports or a hybrid of both. VLAN membership rules that apply to a port are based on the switchport mode configured for the port. The following table shows the behavior of the three switchport modes. Table 3-4: Switchport Mode Behavior When a port is in General mode (by default all interfaces are in general mode), all VLAN features are configurable. When ingress filtering is on, the frame is dropped if the port is not a member of the VLAN identified by the VLAN ID in the tag. If ingress filtering is off, all tagged frames are forwarded. The port decides whether to forward or drop the frame when the port receives the frame. The following example configures a port in Access mode with a single VLAN membership in VLAN 10: (Switch) #config (Switch) (Config)#interface 0/5 (Switch) (Interface 0/5)#switchport mode access (Switch) (Interface 0/5)#switchport access vlan 10 (Switch) (Interface 0/5)#exit The following example configures a port in Trunk mode. The switchport trunk allowed vlan command with the add keyword adds the list of VLANs that can receive and send traffic on the interface in tagged format when in trunking mode. Alternatively, the all keyword can be used to specify membership in all VLANs, the remove keyword can be used to remove membership. If this command is omitted, the port is a member of all configured VLANs. The native VLAN specifies the VLAN on which the port forwards untagged packets it receives. (Switch) #config (Switch) (Config)#interface 0/8 (Switch) (Interface 0/8)#switchport mode trunk (Switch) (Interface 0/8)#switchport trunk allowed vlan add 10,20,30 (Switch) (Interface 0/8)#switchport trunk native vlan 100 NETGEAR M4500 Series Switches Software Administration Manual 52

  • 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
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251

NETGEAR M4500 Series Switches Software Administration Manual
52
untagged are processed as if they are tagged with the access port PVID. Packets received that are tagged with
the PVID are also processed. Packets received that are tagged with a VLAN other than the PVID are dropped. If
the VLAN associated with an access port is deleted, the PVID of the access port is set to VLAN 1. VLAN 1 may
not be deleted.
Trunk
Trunk-mode ports are intended for switch-to-switch links. Trunk ports can receive both tagged and
untagged packets. Tagged packets received on a trunk port are forwarded on the VLAN contained in the tag if
the trunk port is a member of the VLAN. Untagged packets received on a trunk port are forwarded on the
native VLAN. Packets received on another interface belonging to the native VLAN are transmitted untagged
on a trunk port.
General
General ports can act like access or trunk ports or a hybrid of both. VLAN membership rules that
apply to a port are based on the switchport mode configured for the port.
The following table shows the behavior of the three switchport modes.
Table 3-4: Switchport Mode Behavior
When a port is in General mode (by default all interfaces are in general mode), all VLAN features are
configurable. When ingress filtering is on, the frame is dropped if the port is not a member of the VLAN
identified by the VLAN ID in the tag. If ingress filtering is off, all tagged frames are forwarded. The port decides
whether to forward or drop the frame when the port receives the frame.
The following example configures a port in Access mode with a single VLAN membership in VLAN 10:
(Switch) #config
(Switch) (Config)#interface 0/5
(Switch) (Interface 0/5)#switchport mode access
(Switch) (Interface 0/5)#switchport access vlan 10
(Switch) (Interface 0/5)#exit
The following example configures a port in Trunk mode. The
switchport trunk allowed vlan
command with the
add
keyword adds the list of VLANs that can receive and send traffic on the interface in tagged format when in
trunking mode. Alternatively, the all keyword can be used to specify membership in all VLANs, the
remove
keyword can be used to remove membership. If this command is omitted, the port is a member of all
configured VLANs. The native VLAN specifies the VLAN on which the port forwards untagged packets it
receives.
(Switch) #config
(Switch) (Config)#interface 0/8
(Switch) (Interface 0/8)#switchport mode trunk
(Switch) (Interface 0/8)#switchport trunk allowed vlan add 10,20,30
(Switch) (Interface 0/8)#switchport trunk native vlan 100