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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't change ip address

Status
Not open for further replies.

McQueen

Technical User
Feb 13, 2003
55
GB
Hello all,

I'm trying to change the ip address of a V445. I've done the following :-

vi the following files and entered the correct details:-

/etc/hosts
/etc/defaultrouter
/etc/resolv.conf
/etc/netmasks

Then I did:-

ifconfig bge0 'new ipaddress' netmask 'new netmask' broadcast 'new broascast address'

But when I reboot the server and I do a ifconfig -a it still has the old ip address. I can't understand why?,
I've created an entry in s startup script to change to ip address on boot up to get round the problem but I would like to know why it doing it?.

Thanks for any help
 
Is this Solaris 10? If so, it appears you have to change /etc/inet/ipnodes too.

I want to be good, is that not enough?
 
Thanks Ken,

Changing the /etc/inet/ipnode worked and when I did a reboot it came back with the correct ip address, but it had the wrong netmask and broadcast address???.

What else have I missed this it the only Solaris10 box I have?.

 
Not sure (I don't have a 10 box to play with). Perhaps you need to issue the ifconfig again before rebooting to make the changes permanent?

I want to be good, is that not enough?
 
Create a file in /etc called hostname.bge0
Add the hostname as a single entry.

i.e.
<hostname>:root> cat /etc/hostname.bge0
<hostname>

The /etc/hostname file will be referenced on boot and you should not need a scripted ifconfig to get this to work.

Check your entries in /etc/netmasks and /etc/defaultrouter.
/etc/netmasks, based on the standard class c, should show
<your ip network>.0 255.255.255.0


Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top