10-22-2010 07:35 AM - edited 03-06-2019 01:41 PM
haii everybody,
Suppose we have two layer2 switches(2960) and one multi layer switch(catalyst3560) .These two layer2 switches carry 3 vlans (vlan20,vlan30,vlan40).and there is no router or other layer 3 device .with these devices is it possible to set up intervlan routing.if possible could you pls give a sample configuration.
Thanks
Solved! Go to Solution.
10-22-2010 08:36 AM
Configuration for the 3560
!
!
!enable ip routing on the 3560
!
ip routing
system mtu routing 1500
!
! Note the IP's Listed here would need to be your Default Gateways on the Hosts
!
interface vlan 1
ip address 192.168.1.1 255.255.255.0
!
interface vlan 10
ip address 192.168.2.1 255.255.255.0
!
!
interface vlan 20
ip address 192.168.3.1 255.255.255.0
!
!
!
!Enable a routing protocol for intervlan routing
!
router eigrp 1
network 192.168.1.0
network 192.168.2.0
network 192.168.3.0
!
!
! NOTE IF you have a non Gig switch it would be FastEthernet0/1
!
interface GigabitEthernet0/1
description link to 2960 1
switchport trunk encap dot1q
switchport mode trunk
interface GigabitEthernet0/1
description link to 2960 2
switchport trunk encap dot1q
switchport mode trunk
#######################
2960 Configuration
interface GigabitEthernet0/1
description trunk to 3560 port g0/1
switchport trunk encap dot1q
switchport mode trunk
#######################
2960 2 config
interface GigabitEthernet0/2
description trunk to 3560 port g0/2
switchport trunk encap dot1q
switchport mode trunk
Then assign your switchports on the 2960's as needed
Interface GigabitEthernet0/Some number
switchport access vlan 20
switchport mode access
spanning-tree portfast
Substitute your interface names & IP's as necessary
10-22-2010 08:36 AM
Configuration for the 3560
!
!
!enable ip routing on the 3560
!
ip routing
system mtu routing 1500
!
! Note the IP's Listed here would need to be your Default Gateways on the Hosts
!
interface vlan 1
ip address 192.168.1.1 255.255.255.0
!
interface vlan 10
ip address 192.168.2.1 255.255.255.0
!
!
interface vlan 20
ip address 192.168.3.1 255.255.255.0
!
!
!
!Enable a routing protocol for intervlan routing
!
router eigrp 1
network 192.168.1.0
network 192.168.2.0
network 192.168.3.0
!
!
! NOTE IF you have a non Gig switch it would be FastEthernet0/1
!
interface GigabitEthernet0/1
description link to 2960 1
switchport trunk encap dot1q
switchport mode trunk
interface GigabitEthernet0/1
description link to 2960 2
switchport trunk encap dot1q
switchport mode trunk
#######################
2960 Configuration
interface GigabitEthernet0/1
description trunk to 3560 port g0/1
switchport trunk encap dot1q
switchport mode trunk
#######################
2960 2 config
interface GigabitEthernet0/2
description trunk to 3560 port g0/2
switchport trunk encap dot1q
switchport mode trunk
Then assign your switchports on the 2960's as needed
Interface GigabitEthernet0/Some number
switchport access vlan 20
switchport mode access
spanning-tree portfast
Substitute your interface names & IP's as necessary
10-23-2010 01:51 AM
hai,
thank you...for your immediate reply.your answar was defenitely helpfull.
10-22-2010 09:31 AM
Yes a 3560 will do your intervlan routing and a lot faster than a normal router also .
10-24-2010 11:52 PM
Perform below configs
--------------------------------
L2 Switch
------------
1) Create L2 vlans
2) Configure default gateway as L3 switch
3) Create L2 trunk to the L3 switch
L3 Switch
------------
1) Create Vlan SVI, assign IP address
2) Create L2 trunk connecting to L2 Switch
3) Advertise the network under protocol in L3 switch
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