cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
576
Views
2
Helpful
3
Replies

Cisco router Configuration routing

souravpathak
Level 1
Level 1

Pls provide the CIL commands to configure DNS for the Network. 

Cisco 1921 router. In the Picture1941 work as 1921 Router. 

I cant able to access the network with DNS setting 8.8.8.8. 

 

1941 will be replaced with 1921 in actual network1941 will be replaced with 1921 in actual network

 

1 Accepted Solution

Accepted Solutions

M02@rt37
VIP
VIP

Hello @souravpathak,

You want to configure DNS IP server on Cisco router ?

ip name-server 8.8.8.8

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

View solution in original post

3 Replies 3

M02@rt37
VIP
VIP

Hello @souravpathak,

You want to configure DNS IP server on Cisco router ?

ip name-server 8.8.8.8

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

This is packet-tracer there is no connect to real network so there is no

dns server 8.8.8.8

He need to make router as dns server and make host ask router to resolve IP.

In router he need to add

hostname-IP

 

This host is server cisco.com

souravpathak
Level 1
Level 1

My Cisco 1921 K9 router unable to connect with internet through ISP router. I got a mess in web browser "DNS_PROBE_FINISHED_NO_INTERNET" .

When I connect a external router in between the ISP and Cisco 1921 it work.

 

I have done this configuration 

! WAN Configuration
interface GigabitEthernet0/0
description WAN Interface
ip address 192.168.29.2 255.255.255.0
ip nat outside
no shutdown

ip route 0.0.0.0 0.0.0.0 192.168.29.1

! LAN Configuration
interface GigabitEthernet0/1
description LAN Interface
ip address 192.168.0.1 255.255.255.0
ip nat inside
no shutdown

! DHCP Configuration for LAN
ip dhcp pool LAN
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
dns-server 192.168.29.1 8.8.4.4
lease 2

ip dhcp excluded-address 192.168.0.2 192.168.0.25
ip dhcp excluded-address 192.168.0.181 192.168.0.253

! NAT Configuration
ip nat inside source list 1 interface GigabitEthernet0/0 overload
access-list 1 permit 192.168.0.0 0.0.0.255

 

 

-----------The Router configuration as--------------

 

MainRouter#show configuration
Using 1897 out of 262136 bytes
!
! Last configuration change at 01:26:57 IST Sun Mar 31 2024
! NVRAM config last updated at 01:27:13 IST Sun Mar 31 2024
!
version 15.8
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname MainRouter
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
memory-size iomem 10
clock timezone IST 5 30
clock calendar-valid
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!


!
ip dhcp excluded-address 192.168.0.2 192.168.0.25
ip dhcp excluded-address 192.168.0.181 192.168.0.253
!
ip dhcp pool LAN
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
dns-server 192.168.29.1 8.8.4.4
lease 2
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
license udi pid CISCO1921/K9 sn FGL17212586
license boot module c1900 technology-package securityk9
license boot module c1900 technology-package datak9
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
description WAN Interface
ip address 192.168.29.2 255.255.255.0
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
!
interface GigabitEthernet0/1
description LAN Interface
ip address 192.168.0.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip nat inside source list 1 interface GigabitEthernet0/0 overload
ip route 0.0.0.0 0.0.0.0 192.168.29.1
!
ipv6 ioam timestamp
!
!
access-list 1 permit 192.168.0.0 0.0.0.255
!
control-plane
!
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output lat pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
login
transport input none
!
scheduler allocate 20000 1000
ntp update-calendar
ntp server 132.163.96.5
ntp server 132.163.96.6
!
end

MainRouter#

 

 

pls provide the solution where i am wrong .. 

 

Review Cisco Networking for a $25 gift card