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!

configuring cisco 2501 & cable modem

Status
Not open for further replies.

raaudia4

Technical User
Mar 1, 2002
88
US
Need help trying to get to the internet using my (2) cisco 2501 routers and a cable modem. This is the configuration I'm running on the border router.I've tried everything I could think of to get to the internet. If any has any ideas or suggestions they would be greatly appreciated.
Thanx in advance


Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R1
!
!
ip subnet-zero
ip name-server 167.216.253.54
ip name-server 216.23.22.110
!
!
!
interface Ethernet0 (interface to cable modem)
ip address 24.1.1.1 255.255.252.0
no ip directed-broadcast
ip nat outside
ip ospf interface-retry 0
!
--More--
interface Serial0 (connect to my other 2501 router)
ip address 192.168.2.2 255.255.255.0
no ip directed-broadcast
ip nat inside
ip ospf interface-retry 0
!
interface Serial1
no ip address
no ip directed-broadcast
shutdown
!
router ospf 10
network 24.0.0.0 0.255.255.255 area 2
network 192.168.1.0 0.0.0.255 area 1
network 192.168.2.0 0.0.0.255 area 0
!
ip nat translation dns-timeout 30
ip nat pool net-11 24.1.1.1 24.1.1.1 netmask 255.255.252.0
ip nat inside source list 3 pool net-11 overload
ip classless
ip route 0.0.0.0 0.0.0.0 24.x.x.x (gateway obtained from cable)
!
access-list 3 permit 192.168.1.0 0.0.0.255
--More--


router ospf 10
network 24.0.0.0 0.255.255.255 area 2
network 192.168.1.0 0.0.0.255 area 1
network 192.168.2.0 0.0.0.255 area 0
!
ip nat translation dns-timeout 30
ip nat pool net-11 24.1.1.1 24.1.1.1 netmask 255.255.252.0
ip nat inside source list 3 pool net-11 overload
ip classless
ip route 0.0.0.0 0.0.0.0 24.x.x.x
!
access-list 3 permit 192.168.1.0 0.0.0.255
!
line con 0
logging synchronous
transport input none
line aux 0
line vty 0 4
login
!
end
 
You can't assign an Ip to and interface and still use it in a nat statement. Instead use 'ip nat inside source list 3 interface eth0 overload'

Optionally you can do port redirection with
'ip nat inside source static tcp 192.168.x.x 80 24.1.1.1 80 extendable' (for a web server on port 80)

Also it's a good idea to either remove any access-lists during troubleshooting or at least add 'log' at the end then do a 'sh ip access-list' to see the statements being matched.

 
Thanx for the feed back.Will let you know if it works out.again, Thanx
 
Hi matrix77, finally got it to work. Had to use the mac address of the computer on E0 of the router then switch to a different nic card on the computer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top