cisco:switch:vlans
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
cisco:switch:vlans [2021/02/19 11:35] – created peter | cisco:switch:vlans [2021/02/19 11:52] (current) – peter | ||
---|---|---|---|
Line 4: | Line 4: | ||
**NOTE: | **NOTE: | ||
</ | </ | ||
- | |||
---- | ---- | ||
Line 17: | Line 16: | ||
<code bash> | <code bash> | ||
+ | ... | ||
+ | 1 default | ||
+ | Fa0/5, Fa0/6, Fa0/7, Fa0/8 | ||
+ | Fa0/9, Fa0/10, Fa0/11, Fa0/12 | ||
+ | Fa0/13, Fa0/14, Fa0/15, Fa0/16 | ||
+ | Fa0/17, Fa0/18, Fa0/19, Fa0/20 | ||
+ | Fa0/21, Fa0/22, Fa0/23, Fa0/24 | ||
+ | ... | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
---- | ---- | ||
+ | |||
+ | ===== Create a new VLAN ===== | ||
+ | |||
+ | <code bash> | ||
+ | vlan 50 | ||
+ | exit | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Assign port FA0/1-FA0/4 to that VLAN ==== | ||
+ | |||
+ | <code bash> | ||
+ | interface range fastethernet 0/1 – 4 | ||
+ | switchport mode access | ||
+ | switchport access vlan 50 | ||
+ | exit | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Check that VLAN has been configured ==== | ||
+ | |||
+ | <code bash> | ||
+ | show vlan | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | ... | ||
+ | 1 default | ||
+ | Fa0/9, Fa0/10, Fa0/11, Fa0/12 | ||
+ | Fa0/13, Fa0/14, Fa0/15, Fa0/16 | ||
+ | Fa0/17, Fa0/18, Fa0/19, Fa0/20 | ||
+ | Fa0/21, Fa0/22, Fa0/23, Fa0/24 | ||
+ | 50 | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Delete VLAN ===== | ||
+ | |||
+ | Remove assigned ports to VLAN 50. | ||
+ | |||
+ | <code bash> | ||
+ | interface range fastethernet 0/1 – 4 | ||
+ | switchport mode access | ||
+ | switchport access vlan 1 | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Remove the VLAN ==== | ||
+ | |||
+ | <code bash> | ||
+ | no vlan 50 | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Check that the VLAN has been removed ==== | ||
+ | |||
+ | <code bash> | ||
+ | show vlan | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
cisco/switch/vlans.1613734504.txt.gz · Last modified: 2021/02/19 11:35 by peter