xxx#vlan1 vs xxx#interface vlan 1 command
sparkeyluv
Member Posts: 9 ■□□□□□□□□□
in CCNA & CCENT
xxx#vlan1 vs xxx#interface vlan 1 command.. What's the difference?
While configuring vlan I got the below.
OxfordCable(config)#vlan 1
OxfordCable(config-vlan)#no shut
Command is only allowed on VLAN 2..1001.
OxfordCable(config-vlan)#exit
OxfordCable(config)#int vlan 1
OxfordCable(config-if)#no shut
OxfordCable(config-if)#exit
My question is this, what is the difference between vlan1 the command interface vlan 1?
While configuring vlan I got the below.
OxfordCable(config)#vlan 1
OxfordCable(config-vlan)#no shut
Command is only allowed on VLAN 2..1001.
OxfordCable(config-vlan)#exit
OxfordCable(config)#int vlan 1
OxfordCable(config-if)#no shut
OxfordCable(config-if)#exit
My question is this, what is the difference between vlan1 the command interface vlan 1?
Comments
-
elderkai Member Posts: 279VLAN configuration configures aspects of that particular layer 2 domain itself. VACLs, name, etc.
Interface Vlan1 configures the SVI, layer 3 interface, that the switch will have in that VLAN. Acts like most other routed interfaces, only it's virtual.