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

IP Routing Question

Status
Not open for further replies.

coxit

MIS
Jul 20, 2007
6
US
I need some help on finding out what "ip route" statement I need to add to my Cisco 4000 router.

I currently have my 4007 router connected to the Internet via CM on Ethernet 0 with the IP of 68.105.X.X. On ethernet 1 (10.10.10.1) it is connected to a Cisco 4006 switch. The only route I have currently in place is 0.0.0.0 0.0.0.0 68.105.207.1. I can ping internet addresses from the router, however when I try to ping internet addys from the switch it fails. When I do a traceroute from the 4006 switch to say google IP the only hop i get is the router eth1 interface (10.10.10.1) and then it fails after that. Of course I am able to ping both eth 0 and eth 1 of the router from the switch but thats it.

Any help would be appreciated. Thanks
 
Sounds more like you need a gateway setting in the switch actually.

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
What should i make the gateway to be. The router interface 10.10.10.1 or the port connected to the cable modem which holds the IP od 68.105.207.27?
 
Here is the config on the switch:

time: Fri Aug 3 2007, 08:04:52 EST
!
#version 7.6(7)
!
!
#system web interface version(s)
set password $2$7oph$KJ2E1TeNHus6blKnYn6./1
set enablepass $2$XI12$ASp3Fq6I6dcyiPnJWCndc0
!
#system
set system name 4006
!
#frame distribution method
set port channel all distribution mac both
!
#ip
set interface sc0 1 10.10.10.2/255.255.255.0 10.10.10.255

set interface sl0 down
set interface me1 down
set ip route 68.0.0.0/255.0.0.0 10.10.10.1
set ip alias default 0.0.0.0
!
#dns
set ip dns server 68.10.16.30 primary
set ip dns enable
!
#ntp
set ntp server 83.170.1.225
set ntp server 216.176.179.138
set timezone EST -5 0
set summertime disable EDT
set summertime recurring second Sunday March 02:00 first Sunday November 02:00 60
!
#set boot command
set boot config-register 0x2
set boot system flash bootflash:cat4000-k9.7-6-7.bin
!
#multicast filter
set igmp filter disable
!
#module 1 : 2-port 1000BaseX Supervisor
!
#module 2 : 48-port 10/100BaseTx Ethernet
!
#module 3 : 48-port Inline Power Module
!
#module 4 empty
!
#module 5 empty
!
#module 6 empty
end


And on the router:

interface Ethernet0
description WAN COnnection
ip address 68.105.207.27 255.255.255.224
no ip directed-broadcast
no ip route-cache
no ip mroute-cache
media-type 10BaseT
!
interface Ethernet1
description To 4006 Switch
ip address 10.10.10.1 255.255.255.0
no ip directed-broadcast
ip nat inside
no ip route-cache
no ip mroute-cache
media-type auto-select
!
interface Ethernet2
no ip address
no ip directed-broadcast
media-type auto-select
!
interface Ethernet3
ip address 10.20.21.1 255.255.255.224
no ip directed-broadcast
shutdown
media-type auto-select
!
interface Serial0
no ip address
no ip directed-broadcast
no ip route-cache
no ip mroute-cache
!
interface Serial1
no ip address
no ip directed-broadcast
no ip route-cache
no ip mroute-cache
!
interface Serial2
no ip address
no ip directed-broadcast
no ip route-cache
no ip mroute-cache
!
ip classless
ip route 0.0.0.0 0.0.0.0 68.105.207.1
!

ETH0 is my connection to the Internet and ETH1 is connected to the 4006 switch.
 
router>en
router#conf t
router(config)#int e0
router(config-if)#ip nat outside
router(config-if)#exit
router(config)#ip nat inside source list 1 int e0 overload
router(config)#access-list 1 permit 10.10.10.0 0.0.0.255

Burt
 
Right-on Burt as usual. Also as Matt pointed out,
and the OP isn't clear, if trying to ping from the
switch console,

ip default-gateway 10.10.10.1

But this only affects the switch itself, not any
devices connected to it.

--jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top