09-26-2007 01:52 AM - edited 03-05-2019 06:42 PM
How to associate vlan with routing like defining a vlan for an ISP and defining on physical port?
09-26-2007 02:28 AM
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.
09-26-2007 02:55 AM
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
09-26-2007 08:47 PM
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?
09-26-2007 09:43 PM
In this case why do we create a separate vlan with int vlan command as we have defined the vlan on physical interface?
09-27-2007 12:23 AM
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.
09-27-2007 12:25 AM
As mentioned in my first reply ;-)
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: