Solved

Router Change

Posted on 2011-03-15
12
969 Views
Last Modified: 2012-05-11
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
Comment
Question by:chughes43
  • 6
  • 6
12 Comments
 
LVL 6

Expert Comment

by:ipajones
ID: 35136842
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
 

Author Comment

by:chughes43
ID: 35136931
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
 

Author Comment

by:chughes43
ID: 35136955
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
 
LVL 6

Expert Comment

by:ipajones
ID: 35136961
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
 
LVL 6

Accepted Solution

by:
ipajones earned 500 total points
ID: 35136993
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
 

Author Comment

by:chughes43
ID: 35136996
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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 6

Expert Comment

by:ipajones
ID: 35137003
STOP TYPING <CONTROL><Z> !!!!!!!!!!!      See my last post
0
 

Author Comment

by:chughes43
ID: 35137004
I did not type in the cntl /z, it put it there after hitting enter.
0
 
LVL 6

Expert Comment

by:ipajones
ID: 35137029

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
 

Author Comment

by:chughes43
ID: 35137033
I think i got it now.  Thanks for your help.  
0
 
LVL 6

Expert Comment

by:ipajones
ID: 35137065
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
 

Author Closing Comment

by:chughes43
ID: 35137214
Very helpful
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In this tutorial I will show you with short command examples how to obtain a packet footprint of all traffic flowing thru your Juniper device running ScreenOS. I do not know the exact firmware requirement, but I think the fprofile command is availab…
Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now