Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Correctly changing IP address on Solaris 8

2,249 views
Skip to first unread message

Michael Schloh von Bennewitz

unread,
Aug 7, 2001, 4:53:26 AM8/7/01
to
Sure this topic has probably been addressed (too much), but I haven't
found me answer regardless.

I want to change the IP Address of my x86 box with Solaris 8. I tried
the manual way, modifying /etc/inet/hosts, netmasks, and any DNS configs
I have. Then strange network behavior began that led me to believe that
this is not all I have to do. I am missing something or maybe even going
about it totatlly wrong.

How would a professional (without a script) change the IP Address of a
server machine or workstation machine. I have an isolated network with
only two or three computers.

Thank you.

Paul Hermans

unread,
Aug 7, 2001, 5:11:36 AM8/7/01
to
The correct way is the command sys-unconfig
After the reboot you will be asked for the new config again.

Take notice that some files return to system-default again, like
/etc/defaultrouter
/etc/vfstab

"Michael Schloh von Bennewitz" <msc...@netscape.net> wrote in message
news:3B6FAC86...@netscape.net...

Michael Schloh von Bennewitz

unread,
Aug 7, 2001, 5:33:09 AM8/7/01
to
Thanks, your advice is likely exactly correct. However...

One of the machines has no video card, and during the sys config phase
of Solaris 8 this presents a problem, no? I can't possibly be in on a
telnet session on that machine while while running the sysconfig utility
*before* bootup.

I may be getting something wrong here, but please forgive because I
can't really 'try this out' without risking a complete reinstall if I
can't boot later due to an unconfigurable system.

An idea - can I connect a normal RS-232 cable between computers? I once
saw a technician installing Solaris in this way on a big Sparc server.

Thanks,

Michael

--mouse--

unread,
Aug 7, 2001, 5:30:41 AM8/7/01
to
no thats the overkill way

edit /etc/hosts and alter IP address as per your server name defined in
/etc/hostname.<device>

ifconfig <device> down
ifconfig <device> <new ip> up (or any other switches you might need like
netmask etc - man ifconfig)

you may need to alter

/etc/inet/networks
/etc/inet/netmasks
/etc/defaultrouter
and any static routes you have put in any rc scripts


"Paul Hermans" <p.he...@opentsp.com> wrote in message
news:9kobbe$2u4$1...@news1.xs4all.nl...

Joe Bloggs

unread,
Aug 7, 2001, 8:11:46 AM8/7/01
to
Yep, use "tip" to connect via the serial port on the other box.

"Michael Schloh von Bennewitz" <msc...@netscape.net> wrote in message

news:3B6FB5D5...@netscape.net...

Mathew Kirsch

unread,
Aug 7, 2001, 11:04:46 AM8/7/01
to
Michael Schloh von Bennewitz wrote:

> Sure this topic has probably been addressed (too much), but I haven't
> found me answer regardless.

You couldn't have looked terribly hard.



> I want to change the IP Address of my x86 box with Solaris 8. I tried
> the manual way, modifying /etc/inet/hosts, netmasks, and any DNS configs
> I have. Then strange network behavior began that led me to believe that
> this is not all I have to do. I am missing something or maybe even going
> about it totatlly wrong.

What's the strange behaviour?



> How would a professional (without a script) change the IP Address of a
> server machine or workstation machine. I have an isolated network with
> only two or three computers.

All you need to do to change the IP on a Sun is edit /etc/hosts, add the
appropriate netmask to /etc/netmasks, and change /etc/defaultrouter if
necessary. Then reboot.

John Davis

unread,
Aug 7, 2001, 11:33:26 AM8/7/01
to
a null modem cable will work fine with the settings of 9600,8,N1

I built dozens of machines like this at my desk using that Windoze
Hyperterminal a couple years back...

"--mouse--" <mo...@NO-SPAM.com> wrote in message news:<CAOb7.3246$da2....@news11-gui.server.ntli.net>...

Joe Bloggs

unread,
Aug 7, 2001, 3:52:53 PM8/7/01
to
/etc/nodename
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts

"--mouse--" <mo...@NO-SPAM.com> wrote in message
news:CAOb7.3246$da2....@news11-gui.server.ntli.net...

bo...@jumpspace.net

unread,
Aug 7, 2001, 4:05:53 PM8/7/01
to
Michael Schloh von Bennewitz <msc...@netscape.net> wrote:

> I want to change the IP Address of my x86 box with Solaris 8. I tried
> the manual way, modifying /etc/inet/hosts, netmasks, and any DNS configs
> I have. Then strange network behavior began that led me to believe that
> this is not all I have to do. I am missing something or maybe even going
> about it totatlly wrong.

> How would a professional (without a script) change the IP Address of a
> server machine or workstation machine. I have an isolated network with
> only two or three computers.

Edit /etc/hosts to have the correct name->ip mappings
Edit hostname.xxx (xxx is an interface) to have the
correct name. If it has multiple interfaces modify
all of them.
Edit /etc/defaultrouter
Edit /etc/defaultdomain
Edit /etc/resolv.conf
Edit /etc/nodename

This should cover about everything.

Roger Books
---------------------------------------------------------------------
| Unix sysadmin for food, LF photography and miniatures |
| wargames for fun. bo...@jumpspace.net, http://www.jumpspace.net |
---------------------------------------------------------------------

Michael Schloh von Bennewitz

unread,
Aug 12, 2001, 12:09:41 PM8/12/01
to
Thanks John,

I tried yours and Joe Bloggs' approach. Actually, I've now gotten past
my original problem. However, I can't make a serial connection between
computers, and find this troubling.

I am poor eneough to only have Intel-based machines at home, so I am
dealing with the COM1 and COM2 ports of both machines running Solaris 8.

My /etc/remote file has a line for 'hardwire' as standard connecting to
the ttyterm b device. When I type 'tip hardwire' I receive the error
message, 'All ports busy.' Also, when running admintool to run a login
service on a serial port, the admintool reports 'unable to list serial
devices' after I select the serial drop down menu.

Looking through Anserbook2 docs, online, and manpages I have not yet
found my answer. I even tried connecting to the headless machine with a
Windoze machine, and nothing came back from the serial session. The BIOS
settings are correct, so that's not the problem. I have a null-modem 9
pin cable, plugged in to (either) one of the COM ports wired to the ASUS
motherboard.

Any ideas?

Michael

Dave Marquardt

unread,
Aug 13, 2001, 2:53:32 PM8/13/01
to
"Michael" == Michael Schloh von Bennewitz <msc...@netscape.net> writes:
Michael> I want to change the IP Address of my x86 box with Solaris 8. I tried
Michael> the manual way, modifying /etc/inet/hosts, netmasks, and any DNS
Michael> configs I have. Then strange network behavior began that led me to
Michael> believe that this is not all I have to do. I am missing something or
Michael> maybe even going about it totatlly wrong.


Michael> How would a professional (without a script) change the IP Address of a
Michael> server machine or workstation machine. I have an isolated network with
Michael> only two or three computers.

Try running

sys-unconfig
--
Dave Marquardt
Sun Microsystems, Inc.
Austin, TX
+1 512 401-1077

Philip Brown

unread,
Aug 14, 2001, 7:00:57 PM8/14/01
to
On Tue, 7 Aug 2001 10:30:41 +0100, mo...@NO-SPAM.com wrote:
>no thats the overkill way
>
>edit /etc/hosts and alter IP address as per your server name defined in
>/etc/hostname.<device>
>
>ifconfig <device> down
>ifconfig <device> <new ip> up

personally, I'd use

ifconfig <dev>:1 <newip> netmask + broadcast + up

and have both active until I could schedule official downtime.

--
[Trim the no-bots from my address to reply to me by email!]
[ Do NOT email-CC me on posts. Pick one or the other.]
S.1618 http://thomas.loc.gov/cgi-bin/bdquery/z?d105:SN01618:@@@D
The word of the day is mispergitude

Michael Schloh von Bennewitz

unread,
Aug 16, 2001, 2:05:03 AM8/16/01
to
Thank you Philip,
I solved my problem (which was a little misguided - not IP address change.)

However, you bring up an interesting topic. Is this how one can have
multiple IP addresses assigned to one machine, without having a
multi-port NIC?

Could I do

ifconfig dev:1
ifconfig dev:2
...
ifconfig dev:4

without having just a 'ifconfig dev ip netmask' in a startup file? Would
all incoming packets addressed to these four IP addresses be served in
this case? Cool.

Michael

--
Spam hack: To send me email, remove the '-' in my address

--mouse--

unread,
Aug 16, 2001, 2:21:28 AM8/16/01
to
> However, you bring up an interesting topic. Is this how one can have
> multiple IP addresses assigned to one machine, without having a
> multi-port NIC?
>
> Could I do
>
> ifconfig dev:1
> ifconfig dev:2
> ...
> ifconfig dev:4


Yes, create a /etc/hostname.hme0:1, /etc/hostname.hme0:2 etc
In there put a name for each virtual interface
In /etc/hosts, put an ip address to correspond to the hostnames.

This will ensure it is retained across reboots
To do it on the fly do:

ifconfig hme0:1 plumb

ifconfig hme0:1 <ip address> netmask <netmask> up

0 new messages