Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Vlan routing

How to associate vlan with routing like defining a vlan for an ISP and defining on physical port?

6 REPLIES

Re: Vlan routing

Assuming a L3 switch

int vlan 10

desc ISP link

ip add

no shut

int vlan20

des ground floor users

ip add

no shut

int vlan 30

des basement users

ip add

no shut

int fas 0/1

des link to isp

switch mode acce

switch acce vlan 10

int range fas 0/2 - 10

des ground floor users

switch mode acce

switch acce vlan 20

int range fas 0/11 - 20

des basement users

switch mode acce

switch acce vlan 30

ip route 0.0.0.0 0.0.0.0

will create two VLAN routing interfaces for users, allow routing between them, a third interface to the ISP, allow routing there for all unknown traffic. and put ports into those VLANs

Paul.

Silver

Re: Vlan routing

Or, if you want a L3 interface instead, you may do this:

int fas0/1

no switchport

ip address

That way it really acts as a L3 interface (like a router).

HTH,

Leo

New Member

Re: Vlan routing

DOes an SVI always gets created on L3. Which command is used to check whether a SW is an L3 or L2 other than show mls statistics?

New Member

Re: Vlan routing

In this case why do we create a separate vlan with int vlan command as we have defined the vlan on physical interface?

Re: Vlan routing

Defining the interface as an L3 interface, and assigning the IP address locally permits just that one interface in tthat subnet.

The use of an SVI means multiple iports can be in the same VLAN and routed.

Paul.

Silver

Re: Vlan routing

As mentioned in my first reply ;-)

117
Views
0
Helpful
6
Replies