cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
739
Views
5
Helpful
5
Replies
Beginner

Layer 3 Inter VLAN Routing

Hi All,

How to make inter VLAN routing in layer 3 switch.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Enthusiast

Re: Layer 3 Inter VLAN Routing

Highlighted
Engager

Re: Layer 3 Inter VLAN Routing

Sure,
Start by enabling routing, then we'll create the vlan, then the SVI. Lastly we'll put two access ports in different vlans and test a ping.

Conf t
!
Ip routing
!
Vlan 100
!
Vlan 200
!
Interface vlan 100
IP address 100.0.0.1 255.255.255.0
No shut
!
Interface vlan 200
IP address 200.0.0.1 255.255.255.0
No shut
!
Interface fa0/1
Description PC 100
Switchport
Switchport mode access
Switchport access vlan 100
Spanning-tree portfast
No shut
!
Interface fa0/2
Switchport
Switchport mode access
Switchport access vlan 200
Spanning-tree portfast
No shut

So I have enabled ip routing, created my vlans, my SVI's too, and finally I'll plug PCs in to fa0/1 on vlan 100 with a static ip of 100.0.0.2 and a gateway 100.0.0.1

PC that is in fa0/2 on vlan 200 with static ip of 200.0.0.2 and a gateway of 200.0.0.1

To test, from PC1 you can ping the gateway and PC2

PC1

Ping 100.0.0.1
Ping 200.0.0.1
Ping 200.0.0.2

If all is fine then you have accomplished inter vlan routing.

Examples here:

http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008015f17a.shtml

Hope this helps

Sent from Cisco Technical Support iPhone App

Please rate useful posts & remember to mark any solved questions as answered. Thank you.

View solution in original post

5 REPLIES 5
Highlighted
Engager

Re: Layer 3 Inter VLAN Routing

You need to have the following to allow intervlan routing on a layer 3 switch:

  • Layer 2 vlans
  • SVI's (Vlan interfaces)
  • enable 'ip routing'
  • Trunk or access port that is active for the vlans so the SVI can change to an 'up up' state

Hope this helps

Please rate useful posts and remember to mark any solved questions as answered. Thank you.

Please rate useful posts & remember to mark any solved questions as answered. Thank you.
Highlighted
Beginner

Re: Layer 3 Inter VLAN Routing

Hi Bilal,

Could you share me some sample configuration.

Highlighted
Enthusiast

Re: Layer 3 Inter VLAN Routing

Highlighted
Engager

Re: Layer 3 Inter VLAN Routing

Sure,
Start by enabling routing, then we'll create the vlan, then the SVI. Lastly we'll put two access ports in different vlans and test a ping.

Conf t
!
Ip routing
!
Vlan 100
!
Vlan 200
!
Interface vlan 100
IP address 100.0.0.1 255.255.255.0
No shut
!
Interface vlan 200
IP address 200.0.0.1 255.255.255.0
No shut
!
Interface fa0/1
Description PC 100
Switchport
Switchport mode access
Switchport access vlan 100
Spanning-tree portfast
No shut
!
Interface fa0/2
Switchport
Switchport mode access
Switchport access vlan 200
Spanning-tree portfast
No shut

So I have enabled ip routing, created my vlans, my SVI's too, and finally I'll plug PCs in to fa0/1 on vlan 100 with a static ip of 100.0.0.2 and a gateway 100.0.0.1

PC that is in fa0/2 on vlan 200 with static ip of 200.0.0.2 and a gateway of 200.0.0.1

To test, from PC1 you can ping the gateway and PC2

PC1

Ping 100.0.0.1
Ping 200.0.0.1
Ping 200.0.0.2

If all is fine then you have accomplished inter vlan routing.

Examples here:

http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008015f17a.shtml

Hope this helps

Sent from Cisco Technical Support iPhone App

Please rate useful posts & remember to mark any solved questions as answered. Thank you.

View solution in original post

Highlighted
Beginner

Layer 3 Inter VLAN Routing

good

I did that but the vlan configuration has no internet haceso

as I can give internet haceso the vlans

http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008019e74e.shtml

CreatePlease to create content
Content for Community-Ad