Dell PowerEdge M520 Dell PowerConnect M6220/M6348/M8024 Switches Configuration - Page 30

Protocol-Based VLANs, Example #4: Viewing IP Subnet and MAC-Based VLAN Associations, CLI Example

Page 30 highlights

Example #4: Viewing IP Subnet and MAC-Based VLAN Associations console#show vlan association mac MAC Address VLAN ID 00FF.F2A3.8886 10 console#show vlan association subnet IP Subnet IP Mask 192.168.25.0 255.255.255.0 192.168.1.11 255.255.255.255 VLAN ID ------10 10 Protocol-Based VLANs The software supports protocol-based VLANs, where only packets are bridged based on their layer 3 protocol. Protocol-based VLANs are most often used in situations where network segments contain hosts running multiple protocols such as ARP, IP, and IPX. You can associate any protocol-identified by the packet's Ethertype field (1536 to 65535)-with a VLAN ID. To identify a protocol with a VLAN, you first create a protocol group and assign a protocol group ID number. You can also assign a name to the protocol group. Then, you add the protocol's Ethertype to the protocol group. Or, you can add a protocol to an existing protocol group. CLI Example The following commands create a vlan protocol group, name the group, add a protocol to it, and associate the protocol group with a port: console(config)#vlan protocol group 1 console(config)#vlan protocol group name 1 usergroup console(config)#vlan protocol group add protocol 2 ethertype 0x0800 The following command associates the protocol group with a port 1/g1: console(config)#interface ethernet 1/g1 console(config-if-1/g1)#protocol vlan group 1 To associate the protocol group with all ports, use the following command: console(config)#protocol vlan group all 1 30 Switching Configuration

  • 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

30
Switching Configuration
Example #4: Viewing IP Subnet and MAC-Based VLAN Associations
console#show vlan association mac
MAC Address
VLAN ID
-----------------
-------
00FF.F2A3.8886
10
console#show vlan association subnet
IP Subnet
IP Mask
VLAN ID
----------------
----------------
-------
192.168.25.0
255.255.255.0
10
192.168.1.11
255.255.255.255
10
Protocol-Based VLANs
The software supports protocol-based VLANs, where only packets are bridged based on their layer 3
protocol. Protocol-based VLANs are most often used in situations where network segments contain hosts
running multiple protocols such as ARP, IP, and IPX. You can associate any protocol—identified by the
packet’s Ethertype field (1536 to 65535)—with a VLAN ID.
To identify a protocol with a VLAN, you first create a protocol group and assign a protocol group ID
number. You can also assign a name to the protocol group. Then, you add the protocol’s Ethertype to the
protocol group. Or, you can add a protocol to an existing protocol group.
CLI Example
The following commands create a vlan protocol group, name the group, add a protocol to it, and
associate the protocol group with a port:
console(config)#vlan protocol group 1
console(config)#vlan protocol group name 1 usergroup
console(config)#vlan protocol group add protocol 2 ethertype 0x0800
The following command associates the protocol group with a port 1/g1:
console(config)#interface ethernet 1/g1
console(config-if-1/g1)#protocol vlan group 1
To associate the protocol group with all ports, use the following command:
console(config)#protocol vlan group all 1