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?

r...@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 

r...@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

r...@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

r...@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
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to