cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
19508
Views
0
Helpful
19
Replies

i can't get connected to internet on my pc, but my router can

Dear All

 

Today i have installed a new 1921 Cisco Router, i want to connect my isp modem to one of the gigabit port at the router, and then my pc to the other gigabit port.

 

i have configured my pc ip statically to be in the same range of the gigabit port 0/1

the isp modem port is in the same range of the gigabit port 0/0

 

the network is like this

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC (192.168.1.5)  ==> router port 0/1 (192.168.1.1)

isp modem (192.168.100.1) ==> router port 0/0 (192.168.100.4)

 

i have configured the NAT, so my pc now is natted to forward the traffic to port 0/0

 

after all this, now i can ping the isp modem, and i can even enter the GUI page of the ISP modem, but i dont have internet connection.

from the router, i can ping both far interfaces, and i can even ping google.com or 8.8.8.8 so my router is connected to internet.

i tried to pull out the cable from the router and plugged it directly to the modem and after modifying the ip of the PC, i am able to connect to internet.

 

maybe i am missing something here, please help me.

 

the Show IP interface breaf is:

 

 

 

 

SJ_Router#sh ip in br
Interface                                                    IP-Address      OK?           Method Status                Protocol
Embedded-Service-Engine0/0            unassigned      YES          NVRAM  administratively down down
GigabitEthernet0/0                               192.168.100.4   YES         NVRAM  up                    up
GigabitEthernet0/1                                  192.168.1.1     YES         NVRAM  up                    up
NVI0                                                         192.168.100.4   YES            unset  up                    up

 

 

 

 

 

 

 

 

 

 

 

 

 

 

this is the sh run-conf print out

 

!

hostname SJ_Router

!

boot-start-marker

boot-end-marker

!

!

logging buffered 51200 warnings

!

no aaa new-model

!

ip cef

!

!

!

ip dhcp excluded-address 192.168.1.1 192.168.1.10

!

ip dhcp pool "SJM_DHCP_Pool"

!

ip dhcp pool SJM_DHCP_Pool

network 192.168.1.0 255.255.255.0

default-router 192.168.100.1

dns-server 8.8.8.8

!

!

!

ip domain name yourdomain.com

no ipv6 cef

multilink bundle-name authenticated

icense udi pid CISCO1921/K9 sn FGL183123E4

!

!

username SJ_Router privilege 15 secret 5 $1$wqbn$w6fdF34HevDaa8OI0gjYm.

!

!

!

!

!

!

interface Embedded-Service-Engine0/0

no ip address

shutdown

!

interface GigabitEthernet0/0

description $ETH-LAN$$ETH-SW-LAUNCH$$INTF-INFO-GE 0/0$

ip address 192.168.100.4 255.255.255.0

ip nat outside

ip virtual-reassembly in

duplex auto

speed auto

!

interface GigabitEthernet0/1

ip address 192.168.1.1 255.255.255.0

ip nat inside

ip virtual-reassembly in

duplex auto

speed auto

!

ip forward-protocol nd

!

ip http server

ip http access-class 23

ip http authentication local

ip http secure-server

ip http timeout-policy idle 60 life 86400 requests 10000

!

ip nat inside source list 1 interface GigabitEthernet0/0 overload

ip route 0.0.0.0 0.0.0.0 192.168.100.1

!

access-list 1 permit 192.168.1.0 0.0.0.255

 

Can you please help me with this.

 

19 Replies 19

Hi again

now i can ping the IPs of the websites but i cant ping the domain names of the websites.

 

i.e. i can ping 173.194.66.139, and even if i enter this IP in the browser it directs me to google.com

but i can not ping google.com or try to enter google.com from my browser 

Hi Isgabrillo

 

yes my pc got an IP which is:

IP: 192.168.1.11

Subnetmask: 255.255.255.0

Default GW: 192.168.1.1

DHCP: 192.168.1.1

DNS: 8.8.8.8

 

I did ping the 8.8.8.8 and it replies back to me correctly, also the system tray shows that i am connected to internet but i can not ping google.com or even go to google.com by browser

 

thanks for your help

Aztec_
Level 1
Level 1

Hi Mohammed,

 

i think you need to reconfigure the default-gateway on you DHCP pool.

It supposed to be 192.168.1.1.

 

then retry pinging to google.

If it still failed, you neeed to verify your ip had been translated.

"#show ip nat translation"

Crap, didnt see that

Yeah it is your DHCP pool. Your set gateway is wrong, it should be 192.168.1.1

Hi Tommy

thanks for your response.

 

i have changed the default-router to 192.168.1.1

now in my pc the system tray shows that i am connected to internet, but in fact i am not because i tried to ping google.com or do tracert, but there is nothing.

from my PC i tried to ping 8.8.8.8, and yeah it replies

as for the IP Nat translation this is the print-out:

 

SJ_Router(config)#do sh ip nat translations
Pro Inside global                    Inside local           Outside local               Outside global
udp 192.168.100.4:137      192.168.1.11:137     192.168.1.255:137    192.168.1.255:137
udp 192.168.100.4:52215  192.168.1.11:52215    8.8.8.8:53                     8.8.8.8:53
udp 192.168.100.4:52216  192.168.1.11:52216    8.8.8.8:53                    8.8.8.8:53
udp 192.168.100.4:52217  192.168.1.11:52217    8.8.4.4:53                    8.8.4.4:53
udp 192.168.100.4:52992  192.168.1.11:52992    8.8.8.8:53                    8.8.8.8:53
udp 192.168.100.4:52994  192.168.1.11:52994    8.8.8.8:53                    8.8.8.8:53
udp 192.168.100.4:53869  192.168.1.11:53869    8.8.8.8:53                    8.8.8.8:53
udp 192.168.100.4:54611  192.168.1.11:54611    8.8.8.8:53                    8.8.8.8:53
udp 192.168.100.4:55964  192.168.1.11:55964    8.8.8.8:53                    8.8.8.8:53
udp 192.168.100.4:55965  192.168.1.11:55965    8.8.8.8:53                    8.8.8.8:53
udp 192.168.100.4:55966  192.168.1.11:55966    8.8.4.4:53                    8.8.4.4:53
udp 192.168.100.4:56039  192.168.1.11:56039    8.8.8.8:53                    8.8.8.8:53
udp 192.168.100.4:58705  192.168.1.11:58705    8.8.8.8:53                    8.8.8.8:53
udp 192.168.100.4:60304  192.168.1.11:60304    8.8.8.8:53                    8.8.8.8:53
udp 192.168.100.4:60305  192.168.1.11:60305    8.8.8.8:53                    8.8.8.8:53
udp 192.168.100.4:60306  192.168.1.11:60306    8.8.4.4:53                    8.8.4.4:53
udp 192.168.100.4:60558  192.168.1.11:60558    8.8.8.8:53                    8.8.8.8:53
udp 192.168.100.4:62432  192.168.1.11:62432    8.8.8.8:53                    8.8.8.8:53
udp 192.168.100.4:62903  192.168.1.11:62903    8.8.8.8:53                    8.8.8.8:53
udp 192.168.100.4:64574  192.168.1.11:64574    8.8.8.8:53                    8.8.8.8:53 

 

any other ideas please

Review Cisco Networking for a $25 gift card