07-08-2024 10:31 AM
I don't know how to do it or what command I need to make the router work. I've been trying to get it to work for several days but it doesn't work. I have ping to 8.8.8.8 and google.com from the router but from the PC it only pings to 8.8.8.8 both through the gig0/0/0 (wan) and gig0/0/1 (lan) interface. What command do I need so I can solve the problem? I'm looking forward to changing the Cisco router for an Aruba or TP Link, they are easier to configure.
Show run:
Building configuration...
Current configuration : 2268 bytes
!
! Last configuration change at 13:14:19 EST Mon Jul 8 2024
!
version 16.6
service timestamps debug datetime msec
service timestamps log datetime msec
platform qfp utilization monitor load 80
no platform punt-keepalive disable-kernel-core
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
vrf definition Mgmt-intf
!
address-family ipv4
exit-address-family
!
address-family ipv6
exit-address-family
!
enable secret 5 xxxxxxxxxxxxxxxxxxxx
enable password xxxxxxxxxxxxxxxxxxxxxx
!
no aaa new-model
clock timezone EST -23 0
!
ip host R1 192.168.1.1
ip name-server 8.8.8.8 4.2.2.2
ip domain name cisco.com
ip dhcp excluded-address 192.168.1.1 192.168.1.20
!
ip dhcp pool pool1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
domain-name cisco.com
!
subscriber templating
!
multilink bundle-name authenticated
passthru-domain-list jose
match www.lolyschicken.com
match www.cisco.com
match www.google.com
!
license udi pid ISR4351/K9 sn xxxxxxxxxxxxxxxxx
diagnostic bootup level minimal
spanning-tree extend system-id
!
username xxxxxxxxxxxx privilege 15 secret 9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
!
redundancy
mode none
!
interface GigabitEthernet0/0/0
ip address dhcp hostname R1
ip nat outside
negotiation auto
spanning-tree portfast disable
ip virtual-reassembly
!
interface GigabitEthernet0/0/1
ip address 192.168.1.1 255.255.255.0
ip nat inside
negotiation auto
spanning-tree portfast disable
ip virtual-reassembly
!
interface GigabitEthernet0/0/2
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet0
vrf forwarding Mgmt-intf
no ip address
shutdown
negotiation auto
!
ip nat inside source list 1 interface GigabitEthernet0/0/0 overload
ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
ip tftp source-interface GigabitEthernet0
ip route 0.0.0.0 0.0.0.0 dhcp
!
ip ssh server algorithm encryption aes128-ctr aes192-ctr aes256-ctr
ip ssh client algorithm encryption aes128-ctr aes192-ctr aes256-ctr
!
access-list 1 permit 192.168.1.0 0.0.0.255
!
control-plane
!
!
line con 0
transport input none
stopbits 1
line aux 0
stopbits 1
line vty 0 4
password xxxxxxx
login
!
end
pings from router:
Solved! Go to Solution.
07-08-2024 10:35 AM
ip dhcp pool pool1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
Dns-server 8.8.8.8 8.8.4.4
domain-name cisco.com
This need only
MHM
07-08-2024 11:40 AM
It was the first thing I did, besides reloading the router and the PC.
07-08-2024 11:53 AM
I power cycle, router, pc and modem, now work!!!!!!!!
07-08-2024 10:35 AM
ip dhcp pool pool1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
Dns-server 8.8.8.8 8.8.4.4
domain-name cisco.com
This need only
MHM
07-08-2024 11:20 AM
How do I add that command?
07-08-2024 11:24 AM
Friend Check my comment
You need to add dns-server under dhcp pool of router
MHM
07-08-2024 11:31 AM
07-08-2024 11:37 AM
Only disconnect the pc cable abd reconnect again
And the try
Ping google.com
07-08-2024 11:40 AM
It was the first thing I did, besides reloading the router and the PC.
07-08-2024 11:53 AM
I power cycle, router, pc and modem, now work!!!!!!!!
07-08-2024 11:55 AM
You are welcome
what was the issue, the PC dont have correct DNS server and the solution was we make router push the dns server IP to PC
and it work
have a nice day
MHM
07-08-2024 12:09 PM
Thank you very much, the truth is that it was frustrating all this time but people like you help a lot in this community, anyway, I think that many times Cisco products are much more complicated since I have installed other routers and the configuration is not so complicated. Thank you very much for your time.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide