On 08/25/10 02:07 PM, Tom Chen wrote:
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
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
r...@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
r...@fourier:~# ifconfig igb1 plumb 192.168.43.74 up
ifconfig: could not create address:Operation not supported
r...@fourier:~# ifconfig qlcnic2 plumb 192.168.44.74 up
ifconfig: could not create address:Operation not supported
r...@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)
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org