Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CMS relocation - defaultrouter file

Status
Not open for further replies.

ahays

Vendor
Feb 22, 2005
51
US
Ok ... I've relocated a CMS and I've managed to change all of the IP addressess successfully ... and the box is working; all the links are up; everything is honkey-dorey (well ... almost everything).

I was able to get the box to accept the default router's IP address using the command "route add default xx.xx.xx.xx" but upon reboot that default router entry goes away. A little research brought me to the file "/etc/defaultrouter" and that file contains the OLD default router IP address. I've attempted to change the address with vi but I get a permissions denial. Additionally, I cannot chmod the file (even though I'm logged as root). The error "chmod warning can't change defaultrouter" ... and now I'm stumped.

I did a search here at tek-tips and another thread said that "defaultrouter" should contain the hostname "router" and that changing the "/etc/hosts" file would fix the issue ... Oh, would that it be that simple. That's the way I hope to make it ... but first I have to get into that damn "defaultrouter" to change it.

regs,

.al.

Avaya Certified Expert
 
server1 [711269]-> ls -l /etc/defaultrouter
-rw-r--r-- 1 root root 12 Jun 28 2010 /etc/defaultrouter
server1 [711270]-> vi /etc/defaultrouter
192.168.0.1




"/etc/defaultrouter" [Read only] 1 line, 12 characters

logged in as root, try :w! to write the read only file



A great teacher, does not provide answers, but methods to teach others "How and where to find the answers"

bsh

37 years Bell, AT&T, Lucent, Avaya
Tier 3 for 27 years and counting
 
Thanx, b. Actually, I logged off, logged back in and was able to make the change with no problems. I simply changed the entry to the hostname "router" who's IP address is in /etc/hosts ... however, that's just too bizarre.

.al.

regs,

.al.

Avaya Certified Expert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top