Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Inter VLAN configuration

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

5 REPLIES

Re: Inter VLAN configuration

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

Hall of Fame Super Bronze

Re: Inter VLAN configuration

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.

Re: Inter VLAN configuration

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

Bronze

Re: Inter VLAN configuration

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

Hall of Fame Super Bronze

Re: Inter VLAN configuration

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.

129
Views
0
Helpful
5
Replies
CreatePlease to create content