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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

routing problem on 3550 switch

Status
Not open for further replies.

summerdike

Instructor
Oct 24, 2003
217
EU
I have two operational Vlan's on cisco switch (Vlan1 and Vlan23). The 3550 switch is connected to Router (PC router) that has another network connected including internet.

I can ping from hosts between Vlan's. So inter-vlan routing is working.
I can not ping from Vlan23-host to internet (& rest of network).Ping 172.16.2.1 does not work.

I CAN ping from host on vlan1 to the whole network.

What is wrong with configuration?
Ip address of switch is 172.16.2.2/24
Ip address of router to rest of network is 172.16.2.1/24

Configuration of switch (capture):

demoswitch1#show running-config
Building configuration...

Current configuration : 3336 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log datetime
no service password-encryption
service sequence-numbers
!
hostname demoswitch1
!
!
ip subnet-zero
ip routing
!
ip domain-name eon.local
ip name-server 172.30.0.1
ip name-server 172.30.0.3
!
vmps server 172.16.2.2 primary
spanning-tree mode pvst
spanning-tree extend system-id
!
!
interface FastEthernet0/1
switchport access vlan 21
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/2
switchport mode dynamic desirable
!
interface FastEthernet0/3
switchport mode dynamic desirable
!
interface FastEthernet0/4
switchport mode dynamic desirable
!
interface FastEthernet0/5
switchport mode dynamic desirable
!
interface FastEthernet0/6
switchport access vlan dynamic
switchport trunk encapsulation dot1q
switchport mode dynamic desirable
spanning-tree portfast
!
interface FastEthernet0/7
switchport mode dynamic desirable
!
interface FastEthernet0/8
switchport access vlan 2
switchport trunk encapsulation dot1q
switchport mode dynamic desirable
spanning-tree portfast
!
interface FastEthernet0/9
switchport mode dynamic desirable
!
interface FastEthernet0/10
switchport mode dynamic desirable
!
interface FastEthernet0/11
switchport access vlan 23
switchport mode access
!
interface FastEthernet0/12
switchport access vlan 23
switchport trunk encapsulation dot1q
switchport mode access
switchport voice vlan 2
spanning-tree portfast
!
interface FastEthernet0/13
switchport mode dynamic desirable
!
interface FastEthernet0/14
switchport mode dynamic desirable
!
interface FastEthernet0/15
switchport mode dynamic desirable
!
interface FastEthernet0/16
switchport mode dynamic desirable
!
interface FastEthernet0/17
switchport mode dynamic desirable
!
interface FastEthernet0/18
switchport mode dynamic desirable
switchport voice vlan 2
spanning-tree portfast
!
interface FastEthernet0/19
switchport mode dynamic desirable
!
interface FastEthernet0/20
switchport mode dynamic desirable
switchport voice vlan 1
spanning-tree portfast
!
interface FastEthernet0/21
switchport mode dynamic desirable
!
interface FastEthernet0/22
switchport trunk pruning vlan none
switchport mode dynamic desirable
!
interface FastEthernet0/23
switchport mode dynamic desirable
!
interface FastEthernet0/24
switchport trunk allowed vlan 1,1001-1005
switchport trunk pruning vlan none
switchport mode dynamic desirable
spanning-tree portfast
!
interface GigabitEthernet0/1
switchport mode dynamic desirable
!
interface GigabitEthernet0/2
switchport mode dynamic desirable
!
interface Vlan1
ip address 172.16.2.2 255.255.255.0
!
interface Vlan2
no ip address
!
interface Vlan21
ip address 172.17.0.1 255.255.0.0
!
interface Vlan22
no ip address
!
interface Vlan23
ip address 172.19.0.1 255.255.0.0
!
interface Vlan24
no ip address
!
interface Vlan26
no ip address
!
router rip
network 172.16.0.0
network 172.19.0.0
network 172.30.0.0
network 172.32.0.0
network 192.168.1.0
!
ip default-gateway 172.16.2.1
ip classless
ip route 0.0.0.0 0.0.0.0 172.30.0.1
ip route 0.0.0.0 0.0.0.0 172.16.2.1
ip http server
!

!
!
end





______________________________
"Reload and Restart Requested
System Initiated"
 
Remove this:

ip route 0.0.0.0 0.0.0.0 172.30.0.1

I don't see your switch has any L3 ports or SVIs configured for this subnet. So this default should not be working.

Also make sure your hosts in VLAN 23 has the following IP configurations:

IP subnet: 172.19.0.0
Subnet mask: 255.255.0.0
Default gateway: 172.19.0.1

And what about the IP configurations for hosts in VLAN 1?

Also do a "sh vlan" and make sure your VLAN 23 hosts are connected to the correct access ports. And for this:

interface FastEthernet0/12
switchport access vlan 23
switchport trunk encapsulation dot1q
switchport mode access
switchport voice vlan 2
spanning-tree portfast

If only voice is tagged while data is untagged, then I don't think you need the "switchport trunk encapsulation dot1q".

You should also run RIPv2.


 
Does your default router (172.16.2.1) have routes back to your internal networks? i.e. is it running RIP?

Andy
 
Added static route to router with interface 172.16.2.1:

route add 172.19.0.0 mask 255.255.0.0 172.16.2.1 if 0x4

(interface number 4 on router).

That did the job.

Thanks all!




______________________________
"Reload and Restart Requested
System Initiated"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top