2 environment setting of ipv6 interfaces – FUJITSU PCI Gigabit Ethernet 4.1 Update 2/ 5.0 for Oracle Solaris C120-E276-11ENZ0(A) User Manual

Page 20

Advertising
background image

3.3.2 Environment Setting of IPv6 Interfaces

-

Solaris 10 8/07 or later

1.

Edit the /etc/hostname6.

fjgi*

file

Assign an IPv6 address or hostname and prefix length to the fjgi interface by editing the /etc/hostname6.fjgi* file (where

fjgi*

represents the driver name and instance number).

Example of the /etc/hostname6.fjgi* file:

Define a unique hostname (example: giga-v6) and prefix length (example: 120). (*1)

addif giga-v6/120 up

Or define an IPv6 address (example: fe80::2e0:ff:fea6:2222) and prefix length (example: 120).

addif fe80::2e0:ff:fea6:2222/120 up

*1: See section "2. Edit the /etc/inet/ipnodes file" when you define a hostname in the /etc/hostname6.fjgi* file.

2.

Edit the /etc/inet/ipnodes file

Define an IPv6 address by a unique name. Describe the relationship between the IPv6 address and the hostname in the /etc/inet/
ipnodes file.

Example of the /etc/inet/ipnodes file:

Describe the relationship between the IPv6 address (example: fe80::2e0:ff:fea6:2222) and the hostname (example: giga-v6).

# IP Address Hostname

fe80::2e0:ff:fea6:2222 giga-v6

3.

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-v6) and prefix length (example: 120) to fjgi interface (example: fjgi0 (this vanity name
is net2)). (*1)

# ipadm create-ip net2

# ipadm create-addr -T addrconf net2/v6addrconf

# ipadm create-addr -T static -a giga-v6/24 net2/v4static

Or setup an IP address (example: fe80::2e0:ff:fea6:2222) and prefix length (example: 120) to fjgi interface (example: fjgi0 (this
vanity name is net2)).

# ipadm create-ip net2

# ipadm create-addr -T addrconf net2/v6addrconf

# ipadm create-addr -T static -a fe80::2e0:ff:fea6:2222/120 net2/v6static

*1: When you use a hostname, please see section "2. Edit the /etc/hosts file" first.

- 14 -

Advertising