cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
304
Views
0
Helpful
6
Replies

Vlan routing

aksher
Level 1
Level 1

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

6 Replies 6

paul.matthews
Level 5
Level 5

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.

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

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?

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

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.

As mentioned in my first reply ;-)

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: