Chapter 17
| VLAN Commands
Configuring IP Subnet VLANs
– 418 –
Default Setting
Priority: 0
Command Mode
Global Configuration
Command Usage
◆
Each IP subnet can be mapped to only one VLAN ID. An IP subnet consists of an
IP address and a subnet mask. The specified VLAN need not be an existing
VLAN.
◆
When an untagged frame is received by a port, the source IP address is checked
against the IP subnet-to-VLAN mapping table, and if an entry is found, the
corresponding VLAN ID is assigned to the frame. If no mapping is found, the
PVID of the receiving port is assigned to the frame.
◆
The IP subnet cannot be a broadcast or multicast IP address.
◆
When MAC-based, IP subnet-based, or protocol-based VLANs are supported
concurrently, priority is applied in this sequence, and then port-based VLANs
last.
Example
The following example assigns traffic for the subnet 192.168.12.192, mask
255.255.255.224, to VLAN 4.
Console(config)#subnet-vlan subnet 192.168.12.192 255.255.255.224 vlan 4
Console(config)#
show subnet-vlan
This command displays IP Subnet VLAN assignments.
Command Mode
Privileged Exec
Command Usage
◆
Use this command to display subnet-to-VLAN mappings.
◆
The last matched entry is used if more than one entry can be matched.
Example
The following example displays all configured IP subnet-based VLANs.
Console#show subnet-vlan
IP Address Mask VLAN ID Priority
--------------- --------------- ------- --------
192.168.12.0 255.255.255.128 1 0
192.168.12.128 255.255.255.192 3 0
192.168.12.192 255.255.255.224 4 0
Содержание EX-3524
Страница 2: ......
Страница 28: ...Figures 28 ...
Страница 34: ...Section I Getting Started 34 ...
Страница 58: ...Chapter 1 Initial Switch Configuration Setting the System Clock 58 ...
Страница 72: ...Chapter 2 Using the Command Line Interface CLI Command Groups 72 ...
Страница 156: ...Chapter 5 SNMP Commands Notification Log Commands 156 ...
Страница 164: ...Chapter 6 Remote Monitoring Commands 164 ...
Страница 218: ...Chapter 7 Authentication Commands Management IP Filter 218 ...
Страница 268: ...Chapter 8 General Security Measures Port based Traffic Segmentation 268 ...
Страница 292: ...Chapter 9 Access Control Lists ACL Information 292 ...
Страница 312: ...Chapter 10 Interface Commands Power Savings 312 ...
Страница 324: ...Chapter 11 Link Aggregation Commands Trunk Status Display Commands 324 ...
Страница 366: ...Chapter 15 Address Table Commands 366 ...
Страница 428: ...Chapter 17 VLAN Commands Configuring Voice VLANs 428 ...
Страница 572: ...Chapter 25 IP Interface Commands IPv6 Interface 572 ...
Страница 578: ...Section I Appendices 578 ...
Страница 594: ...Appendix C Customer Support Manuals 594 ...