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

Layer 3 Inter VLAN Routing

vsabariraja
Level 1
Level 1

Hi All,

How to make inter VLAN routing in layer 3 switch.

2 Accepted Solutions

Accepted Solutions

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

Bilal Nawaz
VIP Alumni
VIP Alumni

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.

Hi Bilal,

Could you share me some sample configuration.

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.

nefer_junior
Level 1
Level 1

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

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:

Review Cisco Networking products for a $25 gift card