Difference between revisions of "IOS: Create a new VLAN"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
(→Misc) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
[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] | [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]] | + | * 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 == | == Delete VLAN == | ||
* <code>SW1(config)#no vlan #</code> | * <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 | ||
− | + | [[interface]] vlan199 | |
− | + | ip address 10.10.10.0 255.255.255.0 | |
− | [[ip address | + | 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 == | == Related commands == | ||
+ | * [[Change vlan configuration]] | ||
* <code>[[show interface status]]</code> | * <code>[[show interface status]]</code> | ||
* <code>[[show vlan]]</code> and <code>[[show vlan brief]]</code> | * <code>[[show vlan]]</code> and <code>[[show vlan brief]]</code> |
Latest revision as of 05:52, 16 November 2020
Create VLAN[edit]
- Create VLAN:
SW1(config)#vlan 9999
- Name VLAN:
SW1(config-vlan)#name YOUR_VLAN_NAME
Delete VLAN[edit]
SW1(config)#no vlan #
show vlan
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]
- Change vlan configuration
show interface status
show vlan
andshow vlan brief
show vtp status
show ip access-list
set vlan
interface vlan
See also[edit]
- VLAN, VTP, VLAN Access-List (VACL), IOS: Create a VLAN, Change vlan configuration,
show vlan
,show vlan brief
,show vlan summary
,show vtp status
,switchport
,set vlan
,vtp mode transparent
- Cisco IOS: Cisco IOS XE, Config (mode), VLANs, Cisco IOS logging, VTP, ACLs,
show logging
,show logging history
,show interface status
,debug
,archive
,show archive
,conf t
,int
,ip http server
,ip ssh
,ip address
, vty,show mac address-table
,show access-list
, Access-list,ip access-group
,admin
Advertising: