Petri IT Knowledgebase Forums
 

Petri.co.il forums Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List
Go Back   Petri IT Knowledgebase Forums > Networking > Cisco Routers & Switches How-to
Petri.co.il is happy to award auglan the title of Most Valuable Member !!!
Register Calendar Calendar Search Petri IT Knowledgebase Forums Search Todays Posts Today's Posts Mark Forums Read

Notices

Ciso Switch can't ping router

Ciso Switch can't ping router

this thread has 10 replies and has been viewed 2051 times

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th June 2012, 00:06
Stoshinator Stoshinator is offline
Casual
Casual
 
 Join Date: Jun 2012
  6 month star 12 month star
 Posts: 6
 Reputation: Stoshinator is on a distinguished road (10)
Default Ciso Switch can't ping router

So in my network the computers and servers can ping the router and the router can ping them, but the switch can't ping the router

This is my switch

Current configuration : 1249 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/4
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/5
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/6
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface Vlan1
no ip address
shutdown
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
end

This is the router

Current configuration : 1021 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname HQ
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
no ip address
ip nat inside
duplex auto
speed auto
!
interface FastEthernet0/0.1
encapsulation dot1Q 20
ip address 10.1.1.1 255.255.255.0
!
interface FastEthernet0/0.2
encapsulation dot1Q 10
ip address 10.1.2.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
ip address 170.1.1.2 255.255.255.0
encapsulation frame-relay
ip nat outside
clock rate 64000
!
interface Serial0/1/0
no ip address
clock rate 2000000
shutdown
!
interface Serial0/1/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
router rip
!
ip nat inside source static 10.1.1.2 170.1.1.4
ip nat inside source static 10.1.2.4 170.1.1.7
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end

can someone please help me out?
  #2  
Old 16th June 2012, 00:31
auglan's Avatar
auglan auglan is offline
Moderator
 
 Join Date: Apr 2010
  6 month star 12 month star
 Location: Raleigh, NC
 Posts: 1,208
 Reputation: auglan has a spectacular aura aboutauglan has a spectacular aura aboutauglan has a spectacular aura about (219)
Default Re: Ciso Switch can't ping router

Here is your problem. You need to put a layer 3 (IP address) on Vlan 1 if your going to use that as your management vlan. Then you can either create another sub-interface on the router for vlan 1 or you can just put an ip address on fa0/0 on the router in the Vlan 1 subnet. In production I dont recommend using vlan 1 for management. If you do decide to change the native vlan then make sure you change it on the sub-interface on the router and also on the trunk port on the switch.


interface Vlan1
no ip address
shutdown
__________________
CCNA, CCNA-Security, CCNP
CCIE Security (In Progress)
  #3  
Old 16th June 2012, 00:46
Stoshinator Stoshinator is offline
Casual
Casual
 
 Join Date: Jun 2012
  6 month star 12 month star
 Posts: 6
 Reputation: Stoshinator is on a distinguished road (10)
Default Re: Ciso Switch can't ping router

Quote:
Originally Posted by auglan View Post
Here is your problem. You need to put a layer 3 (IP address) on Vlan 1 if your going to use that as your management vlan. Then you can either create another sub-interface on the router for vlan 1 or you can just put an ip address on fa0/0 on the router in the Vlan 1 subnet. In production I dont recommend using vlan 1 for management. If you do decide to change the native vlan then make sure you change it on the sub-interface on the router and also on the trunk port on the switch.


interface Vlan1
no ip address
shutdown
What would you recommend the IP address to be on vlan 1 then?
  #4  
Old 16th June 2012, 01:11
auglan's Avatar
auglan auglan is offline
Moderator
 
 Join Date: Apr 2010
  6 month star 12 month star
 Location: Raleigh, NC
 Posts: 1,208
 Reputation: auglan has a spectacular aura aboutauglan has a spectacular aura aboutauglan has a spectacular aura about (219)
Default Re: Ciso Switch can't ping router

Whatever subnet you want for your management vlan.


Keeping with your ip scheme now:


10.1.3.0/24


Router interface:

10.1.3.1 255.255.255.0


Switch Interface:

10.1.3.2 255.255.255.0


Also don't forget to no shut the vlan 1 interface if you decide to use it.
__________________
CCNA, CCNA-Security, CCNP
CCIE Security (In Progress)
  #5  
Old 16th June 2012, 01:43
Stoshinator Stoshinator is offline
Casual
Casual
 
 Join Date: Jun 2012
  6 month star 12 month star
 Posts: 6
 Reputation: Stoshinator is on a distinguished road (10)
Default Re: Ciso Switch can't ping router

Quote:
Originally Posted by auglan View Post
Whatever subnet you want for your management vlan.


Keeping with your ip scheme now:


10.1.3.0/24


Router interface:

10.1.3.1 255.255.255.0


Switch Interface:

10.1.3.2 255.255.255.0


Also don't forget to no shut the vlan 1 interface if you decide to use it.
Ok I did that and the switch still can't ping the gateway or the serial port on the router... but the computers and servers can. And I did the no shut command on the switch and the router.
  #6  
Old 16th June 2012, 02:01
Stoshinator Stoshinator is offline
Casual
Casual
 
 Join Date: Jun 2012
  6 month star 12 month star
 Posts: 6
 Reputation: Stoshinator is on a distinguished road (10)
Default Re: Ciso Switch can't ping router

even set the default gateway on the switch to see if that would work but nope nothing it can't ping the router.
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I would like to add a wired switch or router to my wireless router ozellam General Networking 2 3rd March 2011 19:20
I can't ping to internet from router jenthevb Cisco Routers & Switches How-to 4 9th February 2011 01:44
Unable to ping past switch on remote site Doormat Cisco Routers & Switches How-to 7 20th April 2010 16:18
Cannot Ping Router kevinguerreiro Cisco Routers & Switches How-to 8 17th August 2009 17:27
Switch can't ping Router (CCNA Basics) tnshurtm Cisco Routers & Switches How-to 18 19th October 2007 17:48


All times are GMT +3. The time now is 10:31.

Steel Blue 3.5.4 vBulletin Style ©2006 vBEnhanced
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
 

Valid XHTML 1.0!   Valid CSS!

Copyright 2005 Daniel Petri