Difference between revisions of "IOS: Create a new VLAN"

From wikieduonline
Jump to navigation Jump to search
 
(23 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
 
== Create VLAN ==
 
== Create VLAN ==
* Create VLAN: <code>SW1([[config]])#vlan #</code>
+
[https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3850/software/release/3se/vlan/configuration_guide/b_vlan_3se_3850_cg/b_vlan_3se_3850_cg_chapter_0100.html Reference document]
 +
 
 +
* Create VLAN: <code>SW1([[config]])#[[vlan]] 9999</code>
 
* Name VLAN:  <code>SW1([[config-vlan]])#name YOUR_VLAN_NAME</code>
 
* Name VLAN:  <code>SW1([[config-vlan]])#name YOUR_VLAN_NAME</code>
  
 +
== Delete VLAN ==
 +
* <code>SW1(config)#no vlan #</code>
 +
* <code>[[show vlan]]</code>
  
 +
== Misc ==
 +
Example:
 +
[[conf t]]
 +
[[interface]] vlan999
 +
[[ip address]] 10.10.xx.1 255.255.255.0
  
== Delete VLAN ==
+
[[interface]] vlan199
* <code>SW1(config)#no vlan #</code>
+
ip address 10.10.10.0 255.255.255.0
 +
Bad mask /24 for address 10.10.10.0
 +
 +
Solution: Change ip at 10.10.10.1
 +
 
 +
 
 +
%Failed to create VLANs 1555
 +
Extended VLAN(s) not allowed in current [[VTP]] mode.
 +
%Failed to commit extended VLAN(s) changes.
 +
 
 +
ip address 10.x.x.1 255.255.255.0
 +
% 10.x.x.0 is assigned as a secondary address on VlanXXX
 +
 
 +
== Related commands ==
 +
* [[Change vlan configuration]]
 +
* <code>[[show interface status]]</code>
 +
* <code>[[show vlan]]</code> and <code>[[show vlan brief]]</code>
 +
* <code>[[show vtp status]]</code>
 +
* <code>[[show ip access-list]]</code>
 +
* <code>[[set vlan]]</code>
 +
* <code>[[interface vlan]]</code>
  
 
== See also ==
 
== See also ==
 
* {{VLAN}}
 
* {{VLAN}}
 +
* {{IOS}}
  
  
 
[[Category:Cisco]]
 
[[Category:Cisco]]

Latest revision as of 05:52, 16 November 2020


Create VLAN[edit]

Reference document

Delete VLAN[edit]

Misc[edit]

Example:

conf t
interface vlan999
ip address 10.10.xx.1 255.255.255.0
interface vlan199 
ip address 10.10.10.0 255.255.255.0
Bad mask /24 for address 10.10.10.0

Solution: Change ip at 10.10.10.1


%Failed to create VLANs 1555
Extended VLAN(s) not allowed in current VTP mode.
%Failed to commit extended VLAN(s) changes.
ip address 10.x.x.1 255.255.255.0
% 10.x.x.0 is assigned as a secondary address on VlanXXX

Related commands[edit]

See also[edit]

Advertising: