How to Update Cisco Prime IP, DNS, and Gateway Address.

To change the IP address, gateway, and DNS settings on a Cisco Prime Infrastructure server, follow these steps:

1. Log into Cisco Prime Infrastructure: Initiate an SSH session or access the console directly to log into your Cisco Prime Infrastructure.
2. Access the Admin CLI: After logging in, enter the admin CLI. This is typically done by typing ncs (for older versions) or prime (for newer versions) at the command prompt.
3. Change the IP Address and Gateway: To change the IP address and gateway, use the following commands:

ncs stop
ncs cleanup
configure network

or you could use configt to enter configuration mode.

config t


You will be prompted to enter the new IP address, netmask, and gateway. Follow the prompts to input your new network settings.

other commands to change IP/Gateway address once in the config t mode.

show interface

interface <interface name>

ip address <new-IP> <subnet-mask>

interface GigabitEthernet 0
ip address 10.0.0.10 255.255.255.0

Then,
ip default-gateway <new-gateway-IP-address>
exit
write memory

ip default-gateway 10.0.0.5
exit
write memory

4. Change the DNS Settings: Adjust the DNS settings with these commands:

configure network dns primary
configure network dns secondary


Replace <primary-dns-ip> and <secondary-dns-ip> with the respective IP addresses of your primary and secondary DNS servers.

if that doesn’t work, try ip name-server <Primary DNS> <Secondary DNS>

ip name-server 10.0.0.1 10.0.02

5. Restart the Network Services: After you have configured the new IP, gateway, and DNS settings, restart the network services to apply these changes:

ncs start


6. Verify the New Settings: To confirm the changes, use the show network command. This will display the updated network configuration, including the new IP address, gateway, and DNS settings.

show running-config

Check Current DNS Server Entries:

Type show running-config | include name-server or show ip dns view to list the currently configured DNS servers.

Remove Unnecessary DNS Server Entries:

  • If you find that there are DNS servers that are no longer needed or are redundant, you can remove them.
  • Enter the global configuration mode by typing configure terminal.
  • Use the no ip name-server [IP address] command to remove an unnecessary DNS server. Repeat this for any DNS servers that you wish to remove.

Note: The exact steps and commands may vary depending on the version of Cisco Prime Infrastructure you are using. Always ensure to back up your current configuration before making any changes. For specific instructions tailored to your version, refer to the official Cisco Prime documentation.

Leave a Reply

Your email address will not be published. Required fields are marked *