Network Config on Zone in a Guest LDOM | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Network Config on Zone in a Guest LDOM

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-28-2013
os2mac's Avatar
os2mac os2mac is offline
Registered User
 
Join Date: Oct 2012
Last Activity: 23 September 2014, 4:04 PM EDT
Location: as far north as you can go and still get a cable modem.
Posts: 107
Thanks: 8
Thanked 10 Times in 10 Posts
Network Config on Zone in a Guest LDOM

Solaris for Sparc 11.1 with the latest patches. Created a Guest LDOM with two vnet's net0 and net1, installed a guest whole root, ip exclusive zone that I want to be able to utilize DHCP. I have been able to create the zone but unable to get it to boot because I am unable to assign an anet to it. it doesn't matter which vnet I associate it with or what settings I change in zoncfg the anet will not configure. I have read in the documentation that anet associated with vnic or vsw is not supported but I dont' see another way to do this.

any help would be appreciated.
Sponsored Links
    #2  
Old 01-29-2013
GP81 GP81 is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 13 January 2014, 7:20 AM EST
Location: Warsaw, Poland
Posts: 65
Thanks: 0
Thanked 14 Times in 13 Posts
Remove anet from zone configuration and then try add network interface explicity. You must have unused network interface in your LDOM. I assume that net1 is not used in your LDOM, so you can use it in your zone.

Code:
root@server1 # zonecfg -z testzone
zonecfg:testzone> remove anet linkname=net0
zonecfg:testzone> add net
zonecfg:testzone:net> set physical=net1
zonecfg:testzone:net> set address=192.168.56.102/24
zonecfg:testzone:net> set defrouter=192.168.56.1
zonecfg:testzone:net> end
zonecfg:testzone> verify
zonecfg:testzone> commit
zonecfg:testzone> exit

Sponsored Links
    #3  
Old 01-29-2013
os2mac's Avatar
os2mac os2mac is offline
Registered User
 
Join Date: Oct 2012
Last Activity: 23 September 2014, 4:04 PM EDT
Location: as far north as you can go and still get a cable modem.
Posts: 107
Thanks: 8
Thanked 10 Times in 10 Posts
Trying to do DHCP on the zone

The problem isn't that I can't get it to network. I can. I am trying to setup the zone under a Guest LDOM to be able to do DHCP. As I understand it this has to be an IP exclusive zone because IP-shared is just that it shares the entire IP stack with the LDOM and thus the same ether address. So a DHCP reservation is impossible. As is Dynamic DNS name resolution.
    #4  
Old 01-29-2013
GP81 GP81 is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 13 January 2014, 7:20 AM EST
Location: Warsaw, Poland
Posts: 65
Thanks: 0
Thanked 14 Times in 13 Posts
I don't understand. If you don't configure ip-shared explicity, then zone is ip-exclusive by default.
So, you must now:
-remove address and router config from the previous example,
-boot zone,
-login to zone on console

Code:
root@server1 # zonecfg -z testzone
zonecfg:testzone> remove anet linkname=net0
zonecfg:testzone> add net
zonecfg:testzone:net> set physical=net1
zonecfg:testzone:net> end
zonecfg:testzone> verify
zonecfg:testzone> commit
zonecfg:testzone> exit
root@server1 # zoneadm -z testzone boot; zlogin -C testzone

After configuring zone:
-zlogin as normal user
-su to root
-configure dhcp

Code:
root@testzone # ipadm create-ip net0
root@testzone # ipadm create-addr -T dhcp net0

Sponsored Links
    #5  
Old 02-01-2013
os2mac's Avatar
os2mac os2mac is offline
Registered User
 
Join Date: Oct 2012
Last Activity: 23 September 2014, 4:04 PM EDT
Location: as far north as you can go and still get a cable modem.
Posts: 107
Thanks: 8
Thanked 10 Times in 10 Posts
Final solution

This turned out to be a noob/display issue.

dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net0 Ethernet up 0 unknown vnet0
net1 Ethernet up 0 unknown vnet1
net2 Ethernet up 0 unknown vnet2
zone1/net2 Ethernet up 0 unknown vnet2
net3 Ethernet up 0 unknown vnet3
zone1/net3 Ethernet up 0 unknown vnet3

where Device=vnet0 =/= your vnet you named vnet0 in the control LDOM and assigned to this LDOM. it DOES equal the device # assigned to your vnet and is LABELLED vnet for your convenience/confusion

NOTE: don't name your vnets "vnetX" it WILL confuse you.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help needed - trying to run commands in Guest LDoms from Control LDOM momin Solaris 4 03-09-2012 07:12 PM
ldom and zone snjksh Solaris 2 06-16-2010 09:57 AM



All times are GMT -4. The time now is 08:00 AM.