CLI Examples
35
3 Virtual LANs
CLI Examples
The following examples show how to create VLANs, assign ports to the VLANs, and assign a
VLAN as the default VLAN to a port.
Example #1: Create Two VLANs
Use the following commands to create two VLANs and to assign the VLAN IDs while leaving
the names blank.
(DWS-3024) #vlan database
(DWS-3024) (Vlan)#vlan 2
(DWS-3024) (Vlan)#vlan 3
(DWS-3024) (Vlan)#exit
Example #2: Assign Ports to VLAN2
This sequence shows how to assign ports to VLAN2, specify that frames will always be
transmitted tagged from all member ports, and that untagged frames will be rejected on
receipt.
(DWS-3024) #config
(DWS-3024) (Config)#interface 0/1
(DWS-3024) (Interface 0/1)#vlan participation include 2
(DWS-3024) (Interface 0/1)#vlan acceptframe vlanonly
(DWS-3024) (Interface 0/1)#exit
(DWS-3024) (Config)#interface 0/2
(DWS-3024) (Interface 0/2)#vlan participation include 2
(DWS-3024) (Interface 0/2)#vlan acceptframe vlanonly
(DWS-3024) (Interface 0/2)#exit
(DWS-3024) (Config)#exit
(DWS-3024) #config
(DWS-3024) (Config)#vlan port tagging all 2
(DWS-3024) (Config)#exit
Example #3: Assign Ports to VLAN3
This example shows how to assign the ports that will belong to VLAN 3, and to specify that
untagged frames will be accepted on port 0/4.
Note that port 0/2 belongs to both VLANs and that port 0/1 can never belong to VLAN 3.
(DWS-3024) #config
(DWS-3024) (Config)#interface 0/2
(DWS-3024) (Interface 0/2)#vlan participation include 3
(DWS-3024) (Interface 0/2)#exit
(DWS-3024) (Config)#interface 0/3
(DWS-3024) (Interface 0/3)#vlan participation include 3
(DWS-3024) (Interface 0/3)#exit
(DWS-3024) (Config)#interface 0/4
(DWS-3024) (Interface 0/4)#vlan participation include 3
(DWS-3024) (Interface 0/4)#exit
(DWS-3024) (Config)#
(DWS-3024) (Config)#exit
(DWS-3024) #config
(DWS-3024) (Config)#interface 0/4
(DWS-3024) (Interface 0/4)#vlan acceptframe all
Содержание UNIFIED WIRED & WIRELESS ACCESS SYSTEM...
Страница 2: ...2 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 12: ...12 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 14: ...14 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 32: ...32 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 40: ...40 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 44: ...44 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 55: ...Web Examples 55 6 IGMP Snooping Figure 19 IGMP Snooping Multicast Router VLAN Configuration Page ...
Страница 56: ...56 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 66: ...66 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 84: ...84 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 90: ...90 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 103: ...Web Examples 103 15 Access Control Lists ACLs Figure 57 Attach IP ACL to an Interface ...
Страница 110: ...110 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 123: ...Web Examples 123 18 Port Security Figure 70 Port Security Violation Status ...
Страница 124: ...124 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 129: ...RADIUS Configuration Examples 129 19 RADIUS Figure 73 Configuring the RADIUS Server ...
Страница 137: ...TACACS Configuration Example 137 20 TACACS Figure 82 Set the User Login TACACS ...
Страница 138: ...138 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 146: ...146 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 166: ...166 2001 2011 D Link Corporation All Rights Reserved Configuration Guide Figure 109 DHCP Filter Binding Information ...
Страница 176: ...176 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...
Страница 183: ...Web Interface Examples 183 28 Simple Network Time Protocol SNTP Figure 115 Summer Time Configuration Page ...
Страница 184: ...184 2001 2011 D Link Corporation All Rights Reserved Configuration Guide ...