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!

Access a computer from outside the cisco 17231 router 1

Status
Not open for further replies.

Kamikaziad

Technical User
Joined
May 13, 2004
Messages
3
Location
PR
I'm trying to setup the router so i can access a computer inside the lan. Let's say that the computer Ip I Want to acces is 192.168.1.18 my router address is 66.50.124.186. how can I get to the computer from the outside here is my confg. DO I Need to set a Ip Route, Work with NAT INside???
Thanks, Carlos


kamikazi#sh run
Building configuration...

Current configuration : 1142 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption

!
no ip subnet-zero
ip name-server 196.28.61.145
ip name-server 196.28.61.161
!
ip dhcp pool 1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.146
!
!
!
!
interface FastEthernet0
description connected to EthernetLAN
ip address 192.168.1.146 255.255.255.0
ip nat inside
speed auto
!
interface Serial0
description connected to Internet
ip address 66.50.124.186 255.255.255.252
ip nat outside
service-module t1 timeslots 1-4
!
ip nat pool Cisco1721-natpool-1 66.50.124.186 66.50.124.186 netmask 255.255.255.
252
ip nat pool overload 66.50.124.186 66.50.124.186 netmask 255.255.255.252
ip nat inside source list 1 pool Cisco1721-natpool-1 overload
ip nat inside source list 30 pool overload
ip classless
ip route 0.0.0.0 0.0.0.0 66.50.124.185
ip http server
!
!
access-list 1 permit 192.168.1.0 0.0.0.255

--More--
 
You need to do it on a port by port basis, so if you want to access web server you need to enable port 80 translation etc..

eg:

ip nat inside source static tcp 192.168.1.18 80 66.50.124.186 80

HTH, Rich
 
I copy the command and change the ip address and port number of the web server i want to access but still i can not access the server. If i go directly form the lan and type I still can not acees the server, If i do it directly fron inside the LAN it will do it good

here is the new sh run....

no ip subnet-zero
ip name-server 196.28.61.145
ip name-server 196.28.61.161
!
ip dhcp pool 1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.146
!
!
!
!
interface FastEthernet0
description connected to EthernetLAN
ip address 192.168.1.146 255.255.255.0
ip nat inside
speed auto
!
interface Serial0
description connected to Internet
ip address 66.50.124.186 255.255.255.252
ip nat outside
service-module t1 timeslots 1-4
!
ip nat pool Cisco1721-natpool-1 66.50.124.186 66.50.124.186 netmask 255.255.
252
ip nat pool overload 66.50.124.186 66.50.124.186 netmask 255.255.255.252
ip nat inside source list 1 pool Cisco1721-natpool-1 overload
ip nat inside source list 30 pool overload
ip nat inside source static tcp 192.168.1.30 591 66.50.124.186 591 extendabl
ip classless
ip route 0.0.0.0 0.0.0.0 66.50.124.185
ip http server
!
!
access-list 1 permit 192.168.1.0 0.0.0.255
 
NOW IT IS Working great Thanks!!!!!!
 
You will only be able to do it from the outside, as the translation is from outside to in and not in to in. Try it from an external address.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top