[OpenIndiana-discuss] Static IP configuration problem
Karl Dag Gursli
karl-d at gursli.com
Wed Oct 12 19:15:50 UTC 2011
On 10/12/11 08:58 PM, CJ Keist wrote:
> On a test VM I install OpenIndiana to see how to setup a static on
> install but it appears that with version 151a, the manual configure
> option is no longer listed. During install it only listed automatic or
> none for the network options. What is interesting is that the help for
> that step mentioned manual but it was not listed.
>
> After much searching I found some commands that worked for setting a
> static IP.
>
> svcadm disable network/physical:nwam
> ipadm create-addr -t -T static -a local=xxx.xxx.xxx.xx/21 e1000g0/v4
> route -p add default xxx.xxx.xxx.1
>
> The only problem is that it doesn't keep connection setting upon reboot.
> When I run the command "dladm show-link" or "dladm show-phys" it shows
> the e1000g0 status as unknown until I add the ip and the route.
>
> What am I missing to keep the IP config retention during reboots?
>
>
First do : svcadm disable network/physical:nwam
Then: svcadm enable network/physical:default
Then add hostname and ip to /etc/hosts
Make a /etc/hostname.e1000g0 and add the hostname from /etc/hosts
Add the hostname to /etc/nodename
Add the default route to /etc/defaultrouter
That should be all.
rgds
Karl Dag
More information about the OpenIndiana-discuss
mailing list