3. Edit the /etc/inet/netmasks file
Describe the relationship between the network address and the netmask in the /etc/inet/netmasks file.
Example of the /etc/inet/netmasks file:
Describe the relationship between the network address (example: 192.168.150.0) and the netmask (example: 255.255.255.0).
# Network Address netmask
192.168.150.0 255.255.255.0
4. Reboot the system
Reboot the system after editing the above files.
-
Solaris 11
1. How to Use the ipadm(1M) Command
Assign an IP address or hostname and prefix length to the fjgi interface by ipadm(1M) command.
Example:
Setup a unique hostname (example: giga-v4) and prefix length (example: 24) to fjgi interface (example: fjgi0 (this vanity name
is net2)). (*1)
# ipadm create-ip net2
# ipadm create-addr -T static -a giga-v4/24 net2/v4static
Or setup an IP address (example: 192.168.150.1) and prefix length (example: 24) to fjgi interface (example: fjgi0 (this vanity
name is net2)).
# ipadm create-ip net2
# ipadm create-addr -T static -a 192.168.150.1/24 net2/v4static
*1: When you use a hostname, please see section "2. Edit the /etc/hosts file" first.
Information
- The following examples shows how to display an IP address and prefix length that assigned the fjgi interface.
Example:
When setting an IP address (example: 192.168.150.1) and prefix length (example: 24) to fjgi interface (example: fjgi0 (this
vanity name is net2)).
# ipadm show-addr net2/v4static
ADDROBJ TYPE STATE ADDR
net2/v4static static ok 192.168.150.1/24
2. Edit the /etc/hosts file
Define an IP address by a unique name. Describe the relationship between the IP address and hostname in the /etc/hosts file.
Example of the /etc/inet/hosts file:
Describe the relationship between an IP address (example: 192.168.150.1) and a hostname (example: giga-v4).
# IP Address Hostname
192.168.150.1 giga-v4
- 13 -