Hi community,
I have a little Probelm with the changing of a ethernet from dhcp to
static ip.
While the install process of the machine no ip was defined so I decided
to use dhcp at first, but now I want to change this.
So I have read several docs and forums but nothing helps ...
What is happend so far? ->
* create a file /etc/[Servername].qfe0 with the IP Address
* del /etc/dhcp.qfe0
* add hostname entrys in /etc/inet/host(s??) and I think /etc/nodename
or so.
* because I want to use it now, create the same for /etc/[Servername].qfe1
* reboot ...
* the System came up with no IP on qfe0 or qfe1 (the funny thing was
that the container came up with the correct ips...)
* ifconfig -a shows qfe0 with IP 0.0.0.0 and qfe0:1 and so on with
correct ips. But no qfe1
* okay, i have found this -> ifconfig qfe1 plumb up - well done, nothing
happend
* "ifconfig qfe1 IP MASK set" (or similar) make everything working, the
same with qfe0
* reboot and everything was lost ... :-(
I have follwoed the instructions from Solaris 10 Administration Guide
but there is no working way. What is my mistake???
Many thanks for any suggestions!
Greetings
Carsten
|
|
0
|
|
|
|
Reply
|
Carsten
|
7/21/2005 7:16:27 PM |
|
On Thu, 21 Jul 2005 21:16:27 +0200, Carsten Bliessen wrote:
> Hi community,
>
> I have a little Probelm with the changing of a ethernet from dhcp to
> static ip.
>
> While the install process of the machine no ip was defined so I decided
> to use dhcp at first, but now I want to change this.
sys-unconfig
|
|
0
|
|
|
|
Reply
|
Dave
|
7/21/2005 7:25:52 PM
|
|
Dave Uhring schrieb:
> On Thu, 21 Jul 2005 21:16:27 +0200, Carsten Bliessen wrote:
>
>
>>Hi community,
>>
>>I have a little Probelm with the changing of a ethernet from dhcp to
>>static ip.
>>
>>While the install process of the machine no ip was defined so I decided
>>to use dhcp at first, but now I want to change this.
>
>
> sys-unconfig
>
okay - but I have read that this will reset the system back to an
unconfigured state, like on the first boot after installation. What is
with my configuration? What is with the Sun Zones? Will they resettet,
too? Or not?
|
|
0
|
|
|
|
Reply
|
Carsten
|
7/21/2005 7:31:42 PM
|
|
Carsten Bliessen wrote:
> ...
> * add hostname entrys in /etc/inet/host(s??) and I think /etc/nodename
> or so.
> ...
>
> I have follwoed the instructions from Solaris 10 Administration Guide
> but there is no working way. What is my mistake???
Check /etc/inet/ipnodes
|
|
0
|
|
|
|
Reply
|
Jean
|
7/21/2005 7:43:21 PM
|
|
On Thu, 21 Jul 2005 21:31:42 +0200, Carsten Bliessen wrote:
> Dave Uhring schrieb:
>> sys-unconfig
>>
>
>
> okay - but I have read that this will reset the system back to an
> unconfigured state, like on the first boot after installation. What is
> with my configuration? What is with the Sun Zones? Will they resettet,
> too? Or not?
I don't use any zones so I can't answer that. Read the sys-unconfig man
page to see what it does and what files are affected.
As to your configuration:
/etc/[Servername].qfe0 is supposed to be /etc/hostname.qfe0 and it
contains only the unqualified hostname of the host, same as /etc/nodename.
On this system:
[~]$ cat /etc/hostname.hme0
tarfu
The IP address of [Servername] is defined in /etc/inet/hosts.
|
|
0
|
|
|
|
Reply
|
Dave
|
7/21/2005 7:50:41 PM
|
|
I mean I´ve configured this file
I is like the /etc/hosts - isn´t it? Only with -> IP Device-Name
yes I remember, this is documentet in solarif docs, so I have configured
it :-(
Jean-Louis Liagre schrieb:
> Carsten Bliessen wrote:
>
>> ...
>> * add hostname entrys in /etc/inet/host(s??) and I think /etc/nodename
>> or so.
>> ...
>>
>> I have follwoed the instructions from Solaris 10 Administration Guide
>> but there is no working way. What is my mistake???
>
>
> Check /etc/inet/ipnodes
|
|
0
|
|
|
|
Reply
|
Carsten
|
7/21/2005 8:03:07 PM
|
|
> I don't use any zones so I can't answer that. Read the sys-unconfig man
> page to see what it does and what files are affected.
Yes - I will do this! Thank so far :-)
> As to your configuration:
> /etc/[Servername].qfe0 is supposed to be /etc/hostname.qfe0 and it
> contains only the unqualified hostname of the host, same as /etc/nodename.
Uh? I thought the file must be [hostname].[dev] and the IP must defined
in the file???
> The IP address of [Servername] is defined in /etc/inet/hosts.
Yeah, thats clear. I will double check these files tommorow!
Thank you :-)
|
|
0
|
|
|
|
Reply
|
Carsten
|
7/21/2005 8:06:45 PM
|
|
Okay - http://docs.sun.com/app/docs/doc/816-0211/6m6nc678v?a=view
If I understand this doc in the right way sys-unconfig will only change
network related files and the root password.
I think that will work for me :-)
Again: thanks a lot!
Carsten
Dave Uhring schrieb:
> On Thu, 21 Jul 2005 21:31:42 +0200, Carsten Bliessen wrote:
>
>
>>Dave Uhring schrieb:
>
>
>>>sys-unconfig
>>>
>>
>>
>>okay - but I have read that this will reset the system back to an
>>unconfigured state, like on the first boot after installation. What is
>>with my configuration? What is with the Sun Zones? Will they resettet,
>>too? Or not?
>
>
> I don't use any zones so I can't answer that. Read the sys-unconfig man
> page to see what it does and what files are affected.
>
> As to your configuration:
>
> /etc/[Servername].qfe0 is supposed to be /etc/hostname.qfe0 and it
> contains only the unqualified hostname of the host, same as /etc/nodename.
>
> On this system:
>
> [~]$ cat /etc/hostname.hme0
> tarfu
>
> The IP address of [Servername] is defined in /etc/inet/hosts.
>
|
|
0
|
|
|
|
Reply
|
Carsten
|
7/21/2005 8:11:59 PM
|
|
"Carsten Bliessen" <bliessen@gmx.de> wrote in message
news:dbov8g$ima$01$1@news.t-online.com...
>
>
> > I don't use any zones so I can't answer that. Read the sys-unconfig man
> > page to see what it does and what files are affected.
> Yes - I will do this! Thank so far :-)
>
> > As to your configuration:
> > /etc/[Servername].qfe0 is supposed to be /etc/hostname.qfe0 and it
> > contains only the unqualified hostname of the host, same as
/etc/nodename.
> Uh? I thought the file must be [hostname].[dev] and the IP must defined
> in the file???
The file is called hostname.[dev]
The usual way an IP address is associated to a network inteface is to have a
[hostname] (I am trying to use your style, to help you understand) in
hostname.[dev], and /etc/hosts (actually, it's /etc/inet/hosts, to which
/etc/hosts symlinks) is then looked up to resolve [hostname] to [IP]. If
you have multiple interfaces and therefore also IP addresses, then you would
have several [hostname]/[IP]s in /etc/hosts, as well as several
/etc/hostname.[dev], one for each [hostname].
I hope I clarified a little bit.
|
|
0
|
|
|
|
Reply
|
mario
|
7/21/2005 9:00:04 PM
|
|
mario <gianmarioRE.scottiMO@nokiaVE.com> wrote:
> /etc/hostname.[dev], one for each [hostname].
^^^^^^^^^^^^^^^^^^^
for each [dev].
|
|
0
|
|
|
|
Reply
|
Bernd
|
7/24/2005 4:53:42 PM
|
|
|
9 Replies
1885 Views
(page loaded in 0.155 seconds)
|