• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1003
  • Last Modified:

L3 Inter-VLAN Routing

This should be a simple one.  I have a 3750 setup as a L3 switch. I have two VLANs.

VLAN 20 and 132.

While logged into the switch I can ping devices on VLAN 20 and VLAN 132.  From a computer on VLAN 132, I cannot ping a computer on VLAN 20 and vice versa.

A computer on VLAN 132 can ping the VLAN 20 gateway 192.168.90.254.  
A computer on VLAN 20 can ping the VLAN 132 gateway 172.16.132.9.

What am I missing here?

no aaa new-model
switch 1 provision ws-c3750g-48ts
system mtu routing 1500
vtp mode transparent
authentication mac-move permit
ip subnet-zero
ip routing
no ip domain-lookup
!
!
spanning-tree mode pvst
spanning-tree etherchannel guard misconfig
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
vlan 10
 name CX_SPCI
!
vlan 20
 name CX_WEBDMZ
!
vlan 30
 name CX_UTILITY
!
vlan 40
 name CX_ROUTER_DMZ
!
vlan 50
 name CX_APPLICATION
!
vlan 60
 name CX_DEV
!
vlan 70
 name CX_CORPORATE
!
vlan 105
 name CX_ISCSI
!
vlan 124
 name M_DMZ
!
vlan 125
 name M_TRUST
!
vlan 131
 name VMOTION
!
vlan 132
 name MGMT
!
vlan 330,332,334,336,338,340,342,344,346,348,350,352,354,356
!
vlan 358
 name Tehama
!
ip ssh time-out 60
ip ssh version 2
!
!
interface Port-channel1
 description "LACP (E) Trunk to VRTX"
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Port-channel2
 description "LACP (M) Trunk to VRTX"
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Port-channel3
 description "LACP (CX) Trunk to VRTX"
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Port-channel4
 description "LACP (E) Uplink"
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Port-channel5
 description "LACP (M) Uplink"
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface Port-channel6
 description "LACP (CX) Uplink"
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface GigabitEthernet1/0/1
 description "VRTX (E) Trunk"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 1 mode active
!
interface GigabitEthernet1/0/2
 description "VRTX (E) Trunk"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 1 mode active
!
interface GigabitEthernet1/0/3
 description "VRTX (E) Trunk"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 1 mode active
!
interface GigabitEthernet1/0/4
 description "VRTX (E) Trunk"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 1 mode active
!
interface GigabitEthernet1/0/5
 description "LACP (E) Uplink"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 4 mode active
!
interface GigabitEthernet1/0/6
 description "LACP (E) Uplink"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 4 mode active
!
interface GigabitEthernet1/0/7
 description "LACP (E) Trunk"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 4 mode active
!
interface GigabitEthernet1/0/8
 description "LACP (E) Trunk"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 4 mode active
!
interface GigabitEthernet1/0/9
!
interface GigabitEthernet1/0/10
!
interface GigabitEthernet1/0/11
!
interface GigabitEthernet1/0/12
!
interface GigabitEthernet1/0/13
!
interface GigabitEthernet1/0/14
!
interface GigabitEthernet1/0/15
 description "CMC (E)"
 switchport access vlan 132
 switchport mode access
!
interface GigabitEthernet1/0/16
!
interface GigabitEthernet1/0/17
 description "VRTX (M) Trunk"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 2 mode active
!
interface GigabitEthernet1/0/18
 description "VRTX (M) Trunk"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 2 mode active
!
interface GigabitEthernet1/0/19
 description "VRTX (M) Trunk"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 2 mode active
!
interface GigabitEthernet1/0/20
 description "VRTX (M) Trunk"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 2 mode active
!
interface GigabitEthernet1/0/21
 description "LACP (M) Uplink"
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface GigabitEthernet1/0/22
 description "LACP (M) Uplink"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 5 mode active
!
interface GigabitEthernet1/0/23
 description "LACP (M) Uplink"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 5 mode active
!
interface GigabitEthernet1/0/24
 description "LACP (M) Uplink"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 5 mode active
!
interface GigabitEthernet1/0/25
!
interface GigabitEthernet1/0/26
!
interface GigabitEthernet1/0/27
!
interface GigabitEthernet1/0/28
!
interface GigabitEthernet1/0/29
!
interface GigabitEthernet1/0/30
!
interface GigabitEthernet1/0/31
 description "CMC (MPAY)"
 switchport access vlan 132
 switchport mode access
!
interface GigabitEthernet1/0/32
!
interface GigabitEthernet1/0/33
 description "VRTX (CX) Trunk"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 3 mode active
!
interface GigabitEthernet1/0/34
 description "VRTX (CX) Trunk"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 3 mode active
!
interface GigabitEthernet1/0/35
 description "VRTX (CX) Trunk"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 3 mode active
!
interface GigabitEthernet1/0/36
 description "VRTX (CX) Trunk"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 3 mode active
!
interface GigabitEthernet1/0/37
 description "LACP (CX) Uplink"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 6 mode active
!
interface GigabitEthernet1/0/38
 description "LACP (CX) Uplink"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 6 mode active
!
interface GigabitEthernet1/0/39
 description "LACP (CX) Uplink"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 6 mode active
!
interface GigabitEthernet1/0/40
 description "LACP (CX) Uplink"
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 6 mode active
!
interface GigabitEthernet1/0/41
!
interface GigabitEthernet1/0/42
!
interface GigabitEthernet1/0/43
!
interface GigabitEthernet1/0/44
!
interface GigabitEthernet1/0/45
!
interface GigabitEthernet1/0/46
!
interface GigabitEthernet1/0/47
 description "CMC (CX)"
 switchport access vlan 132
 switchport mode access
!
interface GigabitEthernet1/0/48
 switchport access vlan 132
 switchport mode access
!
interface GigabitEthernet1/0/49
!
interface GigabitEthernet1/0/50
!
interface GigabitEthernet1/0/51
!
interface GigabitEthernet1/0/52
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan10
 ip address 192.168.116.190 255.255.255.0
!
interface Vlan20
 ip address 192.168.90.254 255.255.255.0
!
interface Vlan132
 ip address 172.16.132.9 255.255.255.0
!
interface Vlan358
 ip address 10.2.58.253 255.255.255.0
!
ip default-gateway 172.16.132.1
ip classless
ip route 0.0.0.0 0.0.0.0 172.16.132.1
ip route 10.2.58.0 255.255.255.0 172.16.1.254
ip route 192.168.116.0 255.255.255.0 192.168.116.129
ip http server
ip http secure-server
!
ip sla enable reaction-alerts
0
lconnell
Asked:
lconnell
  • 3
  • 2
1 Solution
 
Craig BeckCommented:
Each PC needs to use the switch as its default gateway, so a PC using 192.168.90.100 needs to use 192.168.90.254 as its default gateway, and the PC using 172.16.132.100 needs to use 172.16.132.9 as its default gateway.

Machines on each VLAN need to use a gateway or they won't be able to send or receive traffic from other VLANs.

For example, if you configure a default gateway on a PC on VLAN20, and try to ping a device on VLAN132 which doesn't have a default gateway configured, the ping will fail.
0
 
lconnellAuthor Commented:
Doh!! I knew that.  I had the 172.16.132.0 network using a different gateway!! 172.16.132.1 instead of .9.

Thank you!
0
 
Craig BeckCommented:
:-)
0
 
lconnellAuthor Commented:
Can I tag you in my new questions so you always know when I post? lol
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now