Child pages
  • Change IP address on Solaris 11

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Change the IP address of a Solaris 11 box permanently

 

Panel
root@named1:~# ipadm 
NAME CLASS/TYPE STATE UNDER ADDR
lo0 loopback ok
lo0/v4 static ok 127.0.0.1/8
lo0/v6 static ok ::1/128
net0 ip ok
net0/v4 static ok 192.168.10.35/24
net0/v6 addrconf ok fe80::8:20ff:fed6:118c/10
root@named1:~# ipadm delete-addr net0/v4
Panel
root@named1:~# ipadm
NAME CLASS/TYPE STATE UNDER ADDR
lo0 loopback ok
lo0/v4 static ok 127.0.0.1/8
lo0/v6 static ok ::1/128
net0 ip ok
net0/v6 addrconf ok fe80::8:20ff:fed6:118c/10
root@named1:~# ipadm create-addr -T static -a 192.168.10.25/24 net0/v4
Panel
root@named1:~# ipadm
NAME CLASS/TYPE STATE UNDER ADDR
lo0 loopback ok
lo0/v4 static ok 127.0.0.1/8
lo0/v6 static ok ::1/128
net0 ip ok
net0/v4 static ok 192.168.10.25/24
net0/v6 addrconf ok fe80::8:20ff:fed6:118c/10