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

Cisco 5500/RSM VLAN problem

Status
Not open for further replies.

kcbell

IS-IT--Management
Joined
Dec 27, 2001
Messages
275
After I created the VLAN2 and activated the VLAN2 in the 5500, I cannot access the host on valn2 on the 5500. I was able to ping from the router to the switch and the host on VLAN2 but I cannot ping the host in VLAN2 from switch. The 5500 switch said VLAN2 is unreachable.

ip for vlan1 is 192.168.1.1 255.255.255.0
ip for router is 192.168.1.1
ip for switch is 192.168.1.2
ip for vlan2 is 192.168.2.1 255.255.255.0

a "sh vlan" shows that vlan2 is active.

I can ping the gateway of vlan2 from the host. I can also ping the router but I cannot ping the switch.

What am I missing?
 
Did you set the default gateway on the 5500 switch to 192.168.1.1? (I assume that your router is doing inter-vlan routing using sub-interfaces and encapsulation isl/dot1q, so your hosts should be using the corresponding IP addresses on the sub-interfaces as their default gateway)
 
Do a show ip route on the 5500 and it will show you what the default gateway is , should be the router interface for vlan 1 I assume . You would have to post the 5500 configs and maybe the router configs minus the addresses so we could take a look if you can't figure it out .
 
PLease see the following. Thanks

sh run
Building configuration...

Current configuration:
!
version 11.2
service timestamps debug datetime localtime
service timestamps log datetime localtime
service password-encryption
no service udp-small-servers
no service tcp-small-servers
!
hostname 5500
!
!
ip subnet-zero
no ip source-route
ip host-routing
clock timezone 8
buffers small permanent 200
buffers small max-free 400
!
interface Vlan1
ip address 192.168.1.1 255.255.255.0
!
!
interface Vlan2
ip address 192.168.2.1 255.255.255.0
!

router rip
network 192.168.0.0
!
ip default-gateway 192.168.1.1
ip classless
!
line con 0
line aux 0
modem InOut
transport input all
line vty 0 4
exec-timeout 0 0
password 7 xxxxxxx
login
!

end

5500#sh ip route
Codes: C - connected, S - static, I - IGRP, 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, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

C 192.168.2.0/24 is directly connected, Vlan2
C 192.168.1.0/24 is directly connected, Vlan1
C 127.0.0.0/8 is directly connected, Vlan0

 
Ok you must have an RSM card in the 5500 . Go into the switch side and do a sh ip route and make sure it says 192.168.1.1 for the default gateway . Also do a show vlan and make sure the port that you think is in vlan 2 actually is .
 
vipergg:

You are 10 minutes before me. I was going to post my results. You are exactly right! I need to add

set ip route default 192.168.1.1

Before adding the default the sh ip route would look like this

destination gateway
192.168.1.1 192.168.1.2
default default

After I added the line above, the sh ip route becomes

destination gateway
default 192.168.1.1
192.168.1.1 192.168.1.2
default default

and everything is fine now.

Thank!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top