Discussion:
unable to setup IP address to network port on recent Solaris Express
Tom Chen
2010-08-25 18:07:44 UTC
Permalink
Hello,

I just installed a recent version of Solaris Express, snv143. I noticed that somehow, it is difficult to manually setup ip address to a port that is not configured by default.
I used to use "ifconfig" to manually plumb and assign IP addresses, but it does not work on recent version of Solaris Express OS.

I tested on a Sun x86 server with 4 igb ports whose default mother board nic, igb0, has been set to 172.17.138.74. But when I try to setup any other none-default port, I always fail with "ifconfig: could not create address:Operation not supported" error. I encountered same issue with other company's network drivers. So, this is issue of recent version of Solaris Express OS.

It seems to me that the only way to setup IP address is through System->Administration->Network menu. I have not figured out any other easier way.

Can someone tell me how to setup IP address on newer Solaris Express OS?

Tom

# uname -a
SunOS fourier 5.11 snv_143 i86pc i386 i86pc Solaris

***@fourier:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
igb0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 8
inet 172.17.138.74 netmask fffffe00 broadcast 172.17.139.255
ether 0:14:4f:e7:61:20
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
igb0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 8
inet6 fe80::214:4fff:fee7:6120/10
ether 0:14:4f:e7:61:20
***@fourier:~# ifconfig igb1 plumb 192.168.43.74 up
ifconfig: could not create address:Operation not supported
***@fourier:~# ifconfig qlcnic2 plumb 192.168.44.74 up
ifconfig: could not create address:Operation not supported

***@fourier:~# prtconf -D | grep igb
pci108e,0, instance #0 (driver name: igb)
pci108e,0, instance #1 (driver name: igb)
pci108e,0, instance #2 (driver name: igb)
pci108e,0, instance #3 (driver name: igb)
--
This message posted from opensolaris.org
James Nelson
2010-08-25 18:44:28 UTC
Permalink
where did you get solaris express? with snv143? Are there newer distributions from snv134 available for download somewhere?
--
This message posted from opensolaris.org
Karel Gardas
2010-08-26 04:55:53 UTC
Permalink
Ditto. Certainly I would also be interested to test Solaris Express. Thanks, Karel
--
This message posted from opensolaris.org
Calum Benson
2010-08-25 18:52:39 UTC
Permalink
Post by Tom Chen
Hello,
I just installed a recent version of Solaris Express, snv143. I noticed that somehow, it is difficult to manually setup ip address to a port that is not configured by default.
I used to use "ifconfig" to manually plumb and assign IP addresses, but it does not work on recent version of Solaris Express OS.
A completely new version of Network Auto-Magic was integrated in b137, so some aspects of network configuration may have changed from what you're used to. As such, you might be better to ask over on <nwam-discuss-***@public.gmane.org>, where the NWAM team hangs out.

Cheeri,
Calum.
--
CALUM BENSON, Interaction Designer Oracle Corporation Ireland Ltd.
mailto:calum.benson-QHcLZuEGTsvQT0dZR+***@public.gmane.org Solaris Desktop Team
http://blogs.sun.com/calum +353 1 819 9771

Any opinions are personal and not necessarily those of Oracle Corp.
Mark Haywood
2010-08-25 19:10:20 UTC
Permalink
Post by Tom Chen
Hello,
I just installed a recent version of Solaris Express, snv143. I noticed that somehow, it is difficult to manually setup ip address to a port that is not configured by default.
I used to use "ifconfig" to manually plumb and assign IP addresses, but it does not work on recent version of Solaris Express OS.
What happens if you use ipadm(1M)? It will be the preferred CLI for
configuring network interfaces in the future. At least one advantage it
has over ifconfig is that it supports persistence. ifconfig should still
work though. You might have hit a bug.

Using your example below:

$ ifconfig igb1 plumb 192.168.43.74 up

You should be to accomplish the same thing by executing ipadm with the
following syntax:

$ ipadm create-addr -t -T static -a local=192.168.43.74 igb1/v4addr

If you want the interface to be configured across reboots, then remove
the "-t" option above.

Mark
Post by Tom Chen
I tested on a Sun x86 server with 4 igb ports whose default mother board nic, igb0, has been set to 172.17.138.74. But when I try to setup any other none-default port, I always fail with "ifconfig: could not create address:Operation not supported" error. I encountered same issue with other company's network drivers. So, this is issue of recent version of Solaris Express OS.
It seems to me that the only way to setup IP address is through System->Administration->Network menu. I have not figured out any other easier way.
Can someone tell me how to setup IP address on newer Solaris Express OS?
Tom
# uname -a
SunOS fourier 5.11 snv_143 i86pc i386 i86pc Solaris
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
igb0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 8
inet 172.17.138.74 netmask fffffe00 broadcast 172.17.139.255
ether 0:14:4f:e7:61:20
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
igb0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 8
inet6 fe80::214:4fff:fee7:6120/10
ether 0:14:4f:e7:61:20
ifconfig: could not create address:Operation not supported
ifconfig: could not create address:Operation not supported
pci108e,0, instance #0 (driver name: igb)
pci108e,0, instance #1 (driver name: igb)
pci108e,0, instance #2 (driver name: igb)
pci108e,0, instance #3 (driver name: igb)
Tom Chen
2010-08-27 14:49:31 UTC
Permalink
Hi Mark,

Thank you!

But I find that this command, "ipadm create-addr", only works for new interfaces. For those interfaces plumbed up by default, it does not work. How do I manually re-config existing interfaces? it seems that I can not delete these existing interfaces and re-create them to assign new addresses.

I currently have a box with nxge0 set to 172.17.139.24 by dhcp server. I want to set it to 172.17.138.79 static address, how do I do it?

***@socrates:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
qlge0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 8
inet 0.0.0.0 netmask ffffff00 broadcast 0.0.0.255
ether 0:c0:dd:12:e:14
nxge0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 13
inet 172.17.139.24 netmask fffffe00 broadcast 172.17.139.255
ether 0:21:28:4:1d:4a
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
qlge0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 8
inet6 fe80::2c0:ddff:fe12:e14/10
ether 0:c0:dd:12:e:14
nxge0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 13
inet6 fe80::221:28ff:fe04:1d4a/10
ether 0:21:28:4:1d:4a

***@socrates:~# ipadm delete-if nxge0
Aug 27 00:39:16 socrates in.ndpd[1119]: Interface nxge0 has been removed from kernel. in.ndpd will no longer use it
Aug 27 00:39:16 socrates nwamd[527]: 1: nwamd_dhcp_managing: ipadm_addr_info failed for nxge0: Interface does not exist

***@socrates:~# ipadm create-addr -t -T static -a local=172.17.138.79 nxge0/v4
addr
Aug 27 00:41:58 socrates nwamd[527]: 1: nwamd_ncu_handle_if_state_event: address 172.17.138.79 not managed by nwam added, removing it
Aug 27 00:41:58 socrates nwamd[527]: 1: nwamd_ncu_handle_if_state_event: address 172.17.138.79 not managed by nwam removed, nothing to do
ipadm: Could not create address: Interface does not exist

***@socrates:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
qlge0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 8
inet 0.0.0.0 netmask ffffff00 broadcast 0.0.0.255
ether 0:c0:dd:12:e:14
nxge0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 13
inet 172.17.139.24 netmask fffffe00 broadcast 172.17.139.255
ether 0:21:28:4:1d:4a
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
qlge0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 8
inet6 fe80::2c0:ddff:fe12:e14/10
ether 0:c0:dd:12:e:14
nxge0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 13
inet6 fe80::221:28ff:fe04:1d4a/10
ether 0:21:28:4:1d:4a
--
This message posted from opensolaris.org
Loading...