Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to add a second NIC to an exclusive-ip solaris 10 zone

1,315 views
Skip to first unread message

rich

unread,
Dec 13, 2011, 12:07:03 PM12/13/11
to
I have a Solaris 10 exclusive-ip zone with a NIC bge1 already assigned
to it. I would
like to add another vlaned nic to it: bge842003. I have added it to
the zone via zonecfg:

net:
address not specified
physical: bge1
defrouter not specified
net:
address not specified
physical: bge842003
defrouter not specified

I've tried plumbing the nic in the zone, but got an error:

[17:02:00 zone03]# ifconfig bge842003 plumb
ifconfig: cannot open link "bge842003": DLPI link does not exist

I tried adding just bge3 but ran into the same issue.

Do I need to reboot the zone to make the new nic accessible to the
zone? Is there a (safe) method by which I can do this without a
reboot?

Thanks
rich

Colin B.

unread,
Dec 13, 2011, 1:07:46 PM12/13/11
to
Here's a nice trick:
#ifconfig -a plumb

If it's visible to the zone, it'll come up, and then you can find the name
it uses.

Cheers,
Colin

--- Posted via news://freenews.netfront.net/ - Complaints to ne...@netfront.net ---

rich

unread,
Dec 13, 2011, 1:54:59 PM12/13/11
to
> Here's a nice trick:
> #ifconfig -a plumb
>

Thanks! Could that trick cause any problems for a running zone?

rich

Ian Collins

unread,
Dec 13, 2011, 2:41:04 PM12/13/11
to
I believe you do have to restart the zone. Changing the configuration
is akin to changing the hardware on a physical system. If you find
another way, I'd be interested to know!

--
Ian Collins

Colin B.

unread,
Dec 13, 2011, 3:24:04 PM12/13/11
to
It...shouldn't? Probably?

I'm not entirely sure, but since all it does is plumb all of the interfaces
available to a machine (doesn't configure them or bring them up), it
should be safe. But I'm not going to commit to messing up your production
machines. :-)

Michael Laajanen

unread,
Dec 14, 2011, 5:11:09 AM12/14/11
to
Hi,
Adding hardware with hotplugin must be possible just as loading drivers
and disks, otherwise how can you have hightime!

/michael



rich

unread,
Jan 12, 2012, 3:39:02 PM1/12/12
to
I received the solution from someone on the oracle forums. In the
global
zone, I did:

[gz1]# dladm show-dev
bge0 link: up speed: 1000 Mbps duplex: full
bge1 link: up speed: 1000 Mbps duplex: full
bge2 link: up speed: 1000 Mbps duplex: full
bge3 link: unknown speed: 0 Mbps duplex:
unknown
[gz1]# dladm set-linkprop -t -p zone=zone03 bge842003
[gz1]# dladm show-dev
bge0 link: up speed: 1000 Mbps duplex: full
bge1 link: up speed: 1000 Mbps duplex: full
bge2 link: up speed: 1000 Mbps duplex: full
bge3 link: up speed: 1000 Mbps duplex: full
[gz1]#

I was then able to plumb and use bge842003 in my zone. No reboots
required.

Thanks everyone!

Ian Collins

unread,
Jan 12, 2012, 4:15:38 PM1/12/12
to
Than you for posting this, very handy!

--
Ian Collins
0 new messages