cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5984
Views
0
Helpful
4
Replies

difference between int vlan100 and vlan100 configs

lcaruso
Level 6
Level 6

Hi,

What's the difference between creating vlans like this?

interface vlan100

ip address ....

vlan 100

name test

ip address...

Thanks.

2 Accepted Solutions

Accepted Solutions

Roman Rodichev
Level 7
Level 7

the int vlan100 creates  layer3 interface for routing

it requires creation of layer 2 vlan first, which is created with

vlan100 command

(there should not be "ip address" option here)

layer3 interface is not required unless you need to route

View solution in original post

vlan 100
name test

You are creating a VLAN instance in the VLAN database.

View solution in original post

4 Replies 4

Roman Rodichev
Level 7
Level 7

the int vlan100 creates  layer3 interface for routing

it requires creation of layer 2 vlan first, which is created with

vlan100 command

(there should not be "ip address" option here)

layer3 interface is not required unless you need to route

thanks. I must have been running some pretty old code. I was doing static routing with only the int vlan100 commands being used.

vlan 100
name test

You are creating a VLAN instance in the VLAN database.

that explains this message...I never created the vlan100 artifact before creating the int vlan100

Switch(config-if)#switchport access vlan 100
% Access VLAN does not exist. Creating vlan 100

Thanks!