• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1133
  • Last Modified:

Router Change

I am trying to change the dns server in one of my routers.   I found this on this site:

But when I try and do the no dns-server 192.168.1.15 192.168.1.16 it does not like it.  Invalid Input.  Please advise

ip dhcp pool sdm-pool1
   network 192.168.11.0 255.255.255.0
   domain-name scottins.com
   dns-server 192.168.1.15 192.168.1.16           ( this is the line that I need to change)
   default-router 192.168.11.1
   netbios-name-server 192.168.1.10
   option 150 ip 192.168.10.




Also these two stragglers. How to I remove them from the Config?

ip dhcp pool 192.168.3.1/24 <--(Not sure what these are accept then I tried to configure DNS-Server in the past)
!
ip dhcp pool data
dns-server 192.168.0.91 192.168.0.92 <--(This might be from today.)    

 Please take a moment to respond  
    Did this comment work for you?  Yes  Partially  No Was the comment complete?  Yes  Partially  No Was the comment easy to understand?  Yes  Partially  No Overall, how would you rate this comment?  Excellent  Good  Average    
   

 09/09/10 03:35 PM, ID: 33642272  

Was this comment helpful? Yes
No ikalmar:conf t

 no ip dhcp pool 192.168.3.1/24

ip dhcp pool data
dns-server 192.168.0.91 192.168.0.92    

 Please take a moment to respond  
    Did this solution work for you?  Yes  Partially  No Was the solution complete?  Yes  Partially  No Was the solution easy to understand?  Yes  Partially  No Overall, how would you rate this solution?  Excellent  Good  Average    
   

 09/09/10 04:44 PM, ID: 33642601  

Was this solution helpful? Yes
No donjohnston:Looks like you weren't aware that DHCP pool names are case sensitive. When you were trying to create your new DNS addresses, you created a pool named "data".

So after you get the new DHCP info in the "DATA" DHCP pool, I suggest you remove the invalid or unused pools

config t
no ip dhcp pool data
no ip dhcp pool 192.168.3.1/24
end

0
chughes43
Asked:
chughes43
  • 6
  • 6
1 Solution
 
ipajonesCommented:
Hi

What config mode are you in when trying to enter "no dns-server" ?  You need to be in the dhcp pool configuration to modify settings for that specific dhcp scope.  The sequence of commands required are as follows:

enable
conf t
ip dhcp pool sdm-pool1
no dns-server 192.168.1.15 192.168.1.16
exit
exit
write mem

Open in new window


With your other 2 queries:

1.  I think you probably have created a dhcp pool with the name of "192.168.3.1/24" so do the following to remove:

conf t
no ip dhcp pool 192.168.3.1/24

Open in new window


2.  I'm assuming you don't want the dhcp pool called "data" so to remove it:

conf t
no ip dhcp pool data

Open in new window


Hope this helps - any queries let me know.
--IJ





0
 
chughes43Author Commented:
This helped but now I got stuck here:  This is what I have entered so far but on the ip address it did not like, see last line.  Thanks



User Access Verification

ProfDevR1#enable
ProfDevR1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
ProfDevR1(config)#ip dhcp pool sdm-pool1^Z
ProfDevR1#no dns-server 192.168.1.15 192.168.1.16^Z              ^
% Invalid input detected at '^' marker.

ProfDevR1#
0
 
chughes43Author Commented:
My goal is to change this line

dns-server 192.168.1.15 192.168.1.16

to be

 dns-server 192.168.50.15 192.168.50.16

0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
ipajonesCommented:
Why are you typing <CTRL> Z after "ip dhcp pool sdm-pool1"  - you need to press <ENTER> to go into the dhcp pool config.  Then you won't get an error when typing "no dns-server"

I think the text "Enter configuration commands, one per line.  End with CNTL/Z" is perhaps a little misleading as you only do a CTRL Z at the END of ALL commands!!

--IJ
0
 
ipajonesCommented:
Okay so do this (DON'T hit CTRL Z unless I say!!!)

enable  <ENTER>
conf t  <ENTER>
ip dhcp pool sdm-pool1  <ENTER>
no dns-server 192.168.1.15 192.168.1.16  <ENTER>
dns-server 192.168.50.15 192.168.50.16  <ENTER>
<CTRL><Z>      (This is where you hit CONTROL Z and NOT before!)
write mem

Open in new window


The words in <> refers to pressing a key or sequence as in <RETURN> or <ENTER>
--IJ
0
 
chughes43Author Commented:
I tried it again and this is what I recieved

ProfDevR1#enable
ProfDevR1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
ProfDevR1(config)#ip dhcp pool sdm-pool1
ProfDevR1(dhcp-config)#no dns-server 192.168.1.15 192.168.1.16^Z
% Option 6, instance 0 is not in the database.
ProfDevR1#
0
 
ipajonesCommented:
STOP TYPING <CONTROL><Z> !!!!!!!!!!!      See my last post
0
 
chughes43Author Commented:
I did not type in the cntl /z, it put it there after hitting enter.
0
 
ipajonesCommented:

I'm confused.  Are you saying when you just hit <ENTER> a <CONTROL><Z> automatically appears ?  It didn't appear after the line "ip dhcp pool sdm-pool1" the second time you tried it ?

How are you connected to this router - via console or telnet or ssh or what ?
0
 
chughes43Author Commented:
I think i got it now.  Thanks for your help.  
0
 
ipajonesCommented:
Basically when you enter commands in config mode the instructions are a bit misleading.  The text of "Enter configuration commands, one per line.  End with CNTL/Z" refers only to entering <CTRL><Z> once you've finished in config mode (i.e after the last command entered) NOT after each line entered.  Does this help at all ?
0
 
chughes43Author Commented:
Very helpful
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now