Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inter_vlan routing

Status
Not open for further replies.

ianuk1974

Programmer
Feb 5, 2005
130
GB
I am having a few problems with inter vlan routing between 3350,3560 and a few 2950's.

the 3350 is a 12 port gigabit switch which 5 of the ports are congifured as trunk ports and link to each individual switch.

I am using VTP the 3560 is the server and is also the routing switch. I have 2 vlans 1 for data and 2 for voice.

the problem i am having is that i can not ping from 1 vlan to the other even though i have L3 configuration and trunk ports on all switches set for dot1q as thats all 2950's support.

Vlan 1 is my active vlan on all switches and have ip addresses configured 172.16.10.XXX per switch.

Here is the config of the 3560 switch to see anyone can figure out what my problem will be.

Building configuration...

Current configuration : 4700 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname sw_006
!
enable secret 5 $1$w6bJ$M3gF8DBHzVqAKxLoqJp8r1
!
ip subnet-zero
ip routing
!
ip host sw_001 172.16.10.101
ip host sw_002 172.16.10.102
ip host sw_003 172.16.10.103
ip host sw_004 172.16.10.104
ip host sw_005 172.16.10.105
ip host sw_006 172.16.10.106
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
description Cisco PIX Firewall
switchport mode access
!
interface FastEthernet0/2
description Telephone system server
switchport access vlan 3
switchport mode access
!
interface FastEthernet0/3
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/4
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/5
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/6
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/7
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/8
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/9
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/10
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/11
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/12
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/13
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/14
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/15
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/16
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/17
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/18
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/19
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/20
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/21
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/22
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/23
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface FastEthernet0/24
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,2,1002-1005
switchport mode trunk
spanning-tree portfast
!
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1-3,1000-1005
switchport mode trunk
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 172.16.10.106 255.255.0.0
!
interface Vlan3
ip address 172.17.0.1 255.255.0.0
!
ip default-gateway 172.16.0.1
ip classless
ip route 0.0.0.0 0.0.0.0 172.16.0.1
ip http server
!
!
control-plane
!
!

end

sw_006#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 172.16.0.1 to network 0.0.0.0

C 172.17.0.0/16 is directly connected, Vlan3
C 172.16.0.0/16 is directly connected, Vlan1
S* 0.0.0.0/0 [1/0] via 172.16.0.1


Thank you in advance


Ian
 
There is a couple of things I see that might point you in the rigth direction.

1)Where is "Int Vla 2" ?

2)If the 3550 is the hub that connects all of your switches, than the trunk port that conects the 3550(hub) to the 3560(L3) needs to have trunks 1,2 and 3 allowed.

This seems to be a router on a stick setup and I would suggest making the 3550 the L3 (if you have the EMI image)

3) Check to see if you L2 has the correct port associated with the correct Vlans. Also check to see if your Vlan interfaces are in a up/up state.
 
Do a show vlan , does vlan 2 show up in the list . I don't see the layer 2 vlan setup for vlan 2 . Also don't see a layer 3 interface configured for vlan 2 either , see a vlan 3 ip address but but not 2 . If vlan 2 does not show when doing a show vlan then go into conf mode , conf t . Enter vlan 2 , enter . "NOT" interface vlan 2 , vlan 2 . This will put it in the vlan database . Then you need to create a layer 3 interface for vlan 2 and give it an ip address . conf t, "interface vlan 2" , enter . Then put your ip address in . See what that gives you . At this point I don't see either a layer or 3 configured for vlan 2 . Just because you permit the vlan across the trunk doesn't mean the vlan is active .
 
Sorry

It would help if i gave you correct information.

vlan 3 is for voice I have notiuced my error on the fastethernet ports however on this particular switch that does not matter at this precise moment the only interface in ooperation is the gigabit.

Having thought about my problem when my head was clear i think i know what my problem is. The defalt-gateway on the hosts on vlan 1 is 172.16.0.1, but it should be 172.16.10.106. I will be back on site tomorrow so will check this.

If anyone has any further thoughts please feel free to let me know.

Thanks again

 
Vlan 3 aside, I still think you need to add a L3 int for Vlan2. If you look at your route table, how is Vlan1 going to route to the Vlan 2 subnet, when its not in the route table?
 
Well this is interesting.

I uploaded my configs on a few switches in the LAB with identical IOS and could not replicate the problem.

So besides trying from scratch again dont know what to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top