Question Locked

Cisco Router Connection to Internet

0 helpful
14 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

External IP Address: 134.74.126.111
External Subnet: 255.255.255.0

External Gateway: 134.74.126.50

Internal IP Scheme
Internal Router Address: 192.168.30.97
Internal Subnet: 255.255.255.224
Internal Client to test: 192.168.30.100

I want to connect to internet through this CISCO router 2621.

Ping status -

From testing client 192.168.30.100 I can ping -
134.74.126.111
192.168.30.97 but NOT 134.74.126.50 (ie the external gateway)

From router console I can ping every address.

Please help.

AJ

14 replies

by mr.wiz

to 255.255.255.0 like everything else. If that doesn't work, I'd need to see the router config and the FULL ipconfig stats on the pc. (ipconfig /all).

by amanjsingh

by tomorrow. I am in NYC and I am at my home right now.

Thanks for your help.

by amanjsingh

Current configuration : 792 bytes

version 12.2
service timestamps debug uptime
service timestamps log uptime

hostname cisco4

enable secret %%%%%%%%%%%%%%%%%%%%%%%%
enable password ena
ip subnet-zero

interface fastEthernet0/0
ip address 134.74.126.111 255.255.255.0
ip nat outside
speed auto
full-duplex

interface serial0/0
no ip address
shutdown

interface fastEthernet0/1
ip address 192.168.30.97 255.255.255.0
ip nat inside
speed auto
full-duplex

iterface ethernet1/0
no ip address
half-duplex

ip classless
ip http server

dialer-list 1 protocol ip permit
dialer-list 1 protocol ipx permit

line con 0
line aux 0
line vty 0 4
password ena
login
line vty 5 15
password ena
login

no scheduler allocate
end

------------------
sh ip route --

gateway of last resort is not set

C 192.168.30.0/24 is directly connected. FastEthernet0/1
134.74.0.0/24 is subnetted, 1 subnets
C 134.74.126.0 is directly connected, FastEthernet0/0

---------------------
I want to connect my internal LAN to internet through this router. My organization Gateway that I need to be able to connect to is 134.74.126.50 but I am unable to do that. I am able to ping 134.74.126.111 and 192.168.30.97 from my machine (192.168.30.100)

Thanks a lot for your help.

by amanjsingh

If yes the how?

My basic requirement is -

My PC 192.168.30.100 ----
--(192.168.30.97) Router (134.74.126.111) ---
-- (134.74.126.50) organization network (internet)

Unsure of what to do. I have searched a lot on the internet but none helps this specific problem of mine.

Also, I have directly plugged in the T1 connection line to FasthEthernet0/0.
I also do not know where is Ethernet1/0 port physically located on this router (cisco 2621).

by amanjsingh

I tried this command -

ip route 0.0.0.0 0.0.0.0 134.74.126.50

I do not know if this is ok. Can you please throw some light on this issues looking at my IP addresses that what exactly do I need to do?

by mr.wiz

something like:

set default iproute 134.74.126.50 255.255.255.0
set default gateway 134.74.126.50 255.255.255.0

Without the gateway set in the router, you won't get anywhere.

by amanjsingh

Hi Thanks a lot for helping me here but..

I have tried those...the commands that I did are -

ip route 134.74.126.50 255.255.255.0 192.168.30.97

but it says "specify the next hop, its the same router."

Now there is where I am stuck.

ip default-gateway cannot be used here because I am using RIP which is dynamic and ip default-gateway is used when RIP is turned off in the router.

Any more suggestions...

by tonylewis

Based on the IP's you gave and the Cisco article linked in my previous post, I came up with the following:

int fa 0/1 (interface that conntects your internal network to the router)

ip address 192.168.30.97 255.255.255.224

(you already have this address assigned. I just put it here for reference).

ip nat inside

int f0/0 (interface that has your external ip address)

ip address 134.74.126.111 255.255.255.0
(you already have this address assigned. I just put it here for reference).

ip nat outside

ip nat pool ovrld 134.74.126.50 134.74.126.50 prefix 24

ip nat inside source list 7 pool ovrld overload

access-list 7 permit 192.168.30.96 0.0.0.31

(I created this access list based on your subnet scheme 255.255.255.224. If you want a wider range, the you'll need to change or add to it. )

Compare the above with the Cisco link I gave to verify, but I think that should work. Let us know.

Cheers,

Tony

by amanjsingh

I can ping the address 134.74.126.50 now. :-)

I am so relieved now that I can see that network from my own. Now I can setup the internet maybe after this but for now I am relieved. Thanks a mega to you guys. you rock!

by cg it

To Tony on all his posts...and anyone else who helped you.

kinda techrepublic's way of showing thanks.

by tonylewis

I'm glad it worked! It just so happened that I had just read about NAT during my studies so it was fresh in my head. ;-)

This discussion is closed to new replies.