10-01-2012 08:56 AM - edited 03-04-2019 05:43 PM
Hello all, i am new to Cisco Routers and am having a problem configuring my new 1941 Router. The 0/0 interface is attached to my broadband and gets it's ip via dhcp, the 0/1 interface is connected to my lan and has a dhcp pool. My problem is that the 0/0 interface does not appear to be getting any dns servers. So i have either missed something or need to add the dns servers manually to my dhcp pool. Below is my config, any help would be gratefully received. Thanks
!
hostname yourname
!
boot-start-marker
boot-end-marker
!
!
logging buffered 51200 warnings
!
no aaa new-model
!
no ipv6 cef
ip source-route
ip cef
!
!
!
ip dhcp excluded-address 192.168.2.1 192.168.2.10
!
ip dhcp pool DHCP-POOL
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
!
!
ip domain name yourdomain.com
multilink bundle-name authenticated
!
crypto pki token default removal timeout 0
!
crypto pki trustpoint TP-self-signed-3731648826
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-3731648826
revocation-check none
rsakeypair TP-self-signed-3731648826
!
!
crypto pki certificate chain TP-self-signed-3731648826
certificate self-signed 01 nvram:IOS-Self-Sig#1.cer
license udi pid CISCO1921/K9 sn FTX1625800U
!
!
username timmsn privilege 15 secret 4 J1pYUY4Kn9wGqSIyJ7oK2cmFV/3nTaPxVqF1skJWMD
I
!
!
!
!
!
!
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 dhcp
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 192.168.2.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 GigabitEthernet0/0
!
access-list 1 permit 192.168.0.0 0.0.191.255
access-list 23 permit 10.10.10.0 0.0.0.7
!
!
!
control-plane
!
!
banner exec ^C
% Password expiration warning.
-----------------------------------------------------------------------
Cisco Configuration Professional (Cisco CP) is installed on this device
and it provides the default username "cisco" for one-time use. If you have
already used the username "cisco" to login to the router and your IOS image
supports the "one-time" user option, then this username has already expired.
You will not be able to login to the router with this username after you exit
this session.
It is strongly suggested that you create a new username with a privilege level
of 15 using the following command.
username <myuser> privilege 15 secret 0 <mypassword>
Replace <myuser> and <mypassword> with the username and password you want to
use.
-----------------------------------------------------------------------
^C
banner login ^C
-----------------------------------------------------------------------
Cisco Configuration Professional (Cisco CP) is installed on this device.
This feature requires the one-time use of the username "cisco" with the
password "cisco". These default credentials have a privilege level of 15.
YOU MUST USE CISCO CP or the CISCO IOS CLI TO CHANGE THESE PUBLICLY-KNOWN
CREDENTIALS
Here are the Cisco IOS commands.
username <myuser> privilege 15 secret 0 <mypassword>
no username cisco
Replace <myuser> and <mypassword> with the username and password you want
to use.
IF YOU DO NOT CHANGE THE PUBLICLY-KNOWN CREDENTIALS, YOU WILL NOT BE ABLE
TO LOG INTO THE DEVICE AGAIN AFTER YOU HAVE LOGGED OFF.
For more information about Cisco CP please follow the instructions in the
QUICK START GUIDE for your router or go to http://www.cisco.com/go/ciscocp
-----------------------------------------------------------------------
^C
!
line con 0
login local
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
access-class 23 in
privilege level 15
login local
transport input telnet ssh
line vty 5 15
access-class 23 in
privilege level 15
login local
transport input telnet ssh
!
scheduler allocate 20000 1000
end
yourname#
Solved! Go to Solution.
10-01-2012 09:59 AM
Hi,
if you want hosts on your LAN to inherit the DNs servers provided by ISP via DHCP you should add this line in your DHCP pool:
import all
You could use show ip dns view to see DNS servers and I also recommand to change your default route:
no ip route 0.0.0.0 0.0.0.0 G0/0
ip route 0.0.0.0 0.0.0.0 dhcp
Regards.
Alain
Don't forget to rate helpful posts.
10-01-2012 09:59 AM
Hi,
if you want hosts on your LAN to inherit the DNs servers provided by ISP via DHCP you should add this line in your DHCP pool:
import all
You could use show ip dns view to see DNS servers and I also recommand to change your default route:
no ip route 0.0.0.0 0.0.0.0 G0/0
ip route 0.0.0.0 0.0.0.0 dhcp
Regards.
Alain
Don't forget to rate helpful posts.
10-01-2012 10:04 AM
Thanks for the reply, what exact command would i use to add the import all? I have not been able to find how to make changes to my dhcp pool since i created it.
Thanks
10-01-2012 10:07 AM
Never mind i found it, Thanks
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