04-06-2013 03:55 AM - edited 03-07-2019 12:40 PM
04-06-2013 05:00 AM
04-06-2013 05:06 AM
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
04-06-2013 04:10 AM
You need to have the following to allow intervlan routing on a layer 3 switch:
Hope this helps
Please rate useful posts and remember to mark any solved questions as answered. Thank you.
04-06-2013 04:21 AM
Hi Bilal,
Could you share me some sample configuration.
04-06-2013 05:00 AM
04-06-2013 05:06 AM
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
10-04-2013 08:21 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide