08-29-2006 08:49 AM - edited 03-03-2019 01:48 PM
I would like to have my switch handle interVLAN communication instead of having my router handle the in flux of packets by setting up sub-if's on the router for the two interfaces I to communicate to and from.
Would this be the correct syntax or command to do so on a 3560 switch:
interface FastEthernet0/1
description "Access Trunk For Both Subnets (192.168.16.0 and 192.168.17.0)
switchport mode trunk
switchport trunk encapsulation dot1q
!
!
!
!
interface VLAN 2
ip address 192.168.16.2 255.255.255.0
no ip directed-broadcast
no ip route-cache
interface VLAN 3
192.168.17.2 255.255.255.0
no ip directed-broadcast
no ip route-cache
ip route 0.0.0.0. 0.0.0.0 192.168.16.1
ip default-gateway 192.168.16.1 (this may not be necessary..is it?)
Please advise.... thanks
08-29-2006 10:04 AM
Hello,
As long as you create the VLANS and add those to the correct port. You're good to go.
you need to enable routing too.
ip routing
in this case ip default-gateway wont be needed.
Check this link:
http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a008015f17a.shtml
HTH,
Vlad
08-29-2006 10:24 AM
Jonathan,
What device is connected on Fa0/1 ?
Make sure ip routing is running on the switch and no you don't need the ip default-gateway since you have the ip default route there.
08-29-2006 10:28 PM
You just need to have Ip routing enabled on the layer 3 capable switch and it will take care of the inter vlan communication.
Narayan
08-29-2006 10:55 PM
Hi
I think cisco 3560 support Layer 3 switching, you need to use routing protocol ( like RIP/OSPF) , need to network broadcast on this protocol, both Vlan able to talk to each other using this, I hope this will solve your problem,
pl. rate this post
-Minu
08-30-2006 05:51 AM
minu,
Implementing a routing protocol such as RIP or OSPF is not necessary on this case.
The interfaces are locally connected and they will be automatically inserted into the switch routing table if 'ip routing' is enabled.
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: