[indiana-discuss] Setting a static IP through nwam?

Renee Danson renee.danson at sun.com
Mon Jan 5 15:32:07 PST 2009


On Fri, Dec 26, 2008 at 01:51:56AM -0800, Red wrote:
> Hi,
> 
> I am using OpenSolaris 2008.11 in VMware workstation. I have 2 network interfaces -
> 
> [i]red at SanFrancisco:~# ifconfig -a
> lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
> 	inet 127.0.0.1 netmask ff000000 
> pcn0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 5
> 	inet [b]172.16.2.201[/b] netmask ffff0000 broadcast 172.16.255.255
> 	ether 0:c:29:31:fd:c6 
> pcn1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 6
> 	inet[b] 0.0.0.0[/b] netmask ff000000 broadcast 0.255.255.255
> 	ether 0:c:29:31:fd:d0 
> lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
> 	inet6 ::1/128 [/i]
> pcn0: flags=202004841<UP,RUNNING,MULTICAST,DHCP,IPv6,CoS> mtu 1500 index 5
> 	inet6 fe80::20c:29ff:fe31:fdc6/10 
> 	ether 0:c:29:31:fd:c6[/i]
> 
> Here pcn0 is dhcp and I want to configure pcn1 with static IP. 
> I did the procedure mentioned in above comment and restarted the nwam service, but still the changed IP is not reflected in "ifconfig" .

I'm not sure what procedure you're referring to; was it making changes to
the /etc/nwam/llp file?

In any case, nwam currently only supports one active interface at a time.
Your ifconfig output shows that pcn0 is currently thye active interface;
you would have to unplug the cable (or whatever the virtual equivalent of
that is!) for pcn0 in order for nwam to bring up pcn1.  At that point, if
you did indeed update /etc/nwam/llp, you should see pcn1 configured with
the static address you put in the file.

For now, though, if you need to have both interfaces active, nwam won't
really work for you.  Work is underway to make nwam support more types of
configurations, including multi-homed systems; refer to the nwam project
page (opensolaris.org/os/project/nwam) or mailing list (nwam-discuss at
opensolaris.org) for more information if you're interested.

-renee



More information about the indiana-discuss mailing list