Child pages
  • Static IP
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Introduction

OpenIndiana 151a is by default installed to use NWAM and DHCP dynamic IPs. In many situations it would be preferred to set up a static IP for the server, something which is difficult to do through nwam.

GUI Way (easiest)

Using su, sudo or pfexec to acquire the required privileges:

Commands

# svcadm disable svc:/network/physical:nwam
# svcadm enable svc:/network/physical:default
# cp /etc/nsswitch.dns /etc/nsswitch.conf
# network-admin

network-admin

Connections

General

DNS

Hosts

This last command will open a window in gnome in which you can fill in the required values.

Console Way

Commands:

# svcadm disable svc:/network/physical:nwam
# svcadm enable svc:/network/physical:default
# cp /etc/nsswitch.dns /etc/nsswitch.conf
# vi /etc/hosts
# vi /etc/resolv.conf
# vi /etc/defaultrouter
# vi /etc/hostname.NIC
# svcadm restart svc:/network/physical:default

files

The following files need to be edited.
Change the parts necessary, where oibox is the current computer name, example.net is the domain name (or workgroup)

/etc/hosts
# Internet host table
#
127.0.0.1 localhost.localdomain localhost.local localhost loghost oibox oibox.local oibox.localdomain oibox.example oibox.example.net
::1 localhost.localdomain localhost.local localhost loghost oibox oibox.local oibox.localdomain oibox.example oibox.example.net
/etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
/etc/defaultrouter
192.168.1.1
/etc/hostname.NIC
192.168.1.16
  • No labels