Network Config on Zone in a Guest LDOM

Tags
solaris

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 01-28-2013
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.
# 2  
Old 01-29-2013
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

# 3  
Old 01-29-2013
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
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

# 5  
Old 02-01-2013
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.
Login to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Similar Threads More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
T4-2 - Memory DIMM issue - ldom config resets to factory-default psychocandy Solaris 3 04-05-2018 07:48 PM
LDOM Solaris 11 add Network vsw (Virtual switch) Wittman Solaris 4 12-12-2017 11:15 AM
Login slowness from LDOM to ZONE ajayram_arya Solaris 7 12-07-2017 04:19 PM
T4 replaced motherboard - recovering LDOM config? psychocandy Solaris 4 08-01-2017 01:38 PM
Disk expansion on LDOM Guest vidya_sagar2003 Solaris 2 09-19-2016 05:07 PM
Configuring zone and LDOM boot order os2mac Solaris 2 08-25-2015 04:20 PM
Configure network connectivity as guest O.S under vmware fretagi UNIX for Dummies Questions & Answers 4 05-08-2015 04:13 PM
Config ipv6 in a zone guy3145 Solaris 1 12-15-2014 05:16 AM
"Network error: No route to host" While connecting guest RHEL4 using putty thomasraj87 UNIX for Advanced & Expert Users 3 06-16-2013 01:12 PM
Help needed - trying to run commands in Guest LDoms from Control LDOM momin Solaris 4 03-09-2012 08:12 PM
Zone network issue cecco16 Solaris 0 10-15-2010 10:28 AM
ldom and zone snjksh Solaris 2 06-16-2010 10:57 AM
All times are GMT -4. The time now is 07:52 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?