-
oninoshikoI have a sparse zone I created. It's working pretty well, but i wanted to add a second vnic on a different etherstub. I set it up on zonecfg, but after restarting the zone nothing happens. I don't seem to be able to set it in the zone either. Is there something I'm missing for this or do I just need to reinstall the zone?
-
oninoshikoTo clarify, I see it in dladm, but not ipadm
-
wardenfor what I understand, you've successfully attached the additional vnic to the zone, and now you have to configure IP addressing inside it
-
oninoshikothat's what I thought at first to, but when I try I get this message: "ipadm: Could not create address: Operation not permitted on from-gz interface"
-
oninoshikoI'll admit I spend a lot more time in bhyve then in zones, so I'm probably just not understanding something.
-
wardenOk, so I think you should set the IP address with zonecfg by setting allowed-address and defrouter properties, as in this example: omnios.org/setup/zones#example-1
-
wardenobviously I'm assuming that you are working in an exclusive-IP zone
-
oninoshikoit's exclusive-ip, and I did set allowed-address. This is on an etherstub, so it doesn't have access to an outside network... I'm not sure what I would set the defrouter on it to (my assumption is that wouldn't apply to this device).
-
oninoshikodefrouter is set on the other net stanza
-
wardenit looks like the file /etc/ipadm/ipadm.conf in the zone is populated only when you issue the command "zoneadm -z <zone> install" in GZ. To add an IP address to the 2nd vnic you can unset the "allowed-address" property in zonecfg and you should be able to set it with ipadm inside the zone
-
oninoshiko@warden okay, thanks for your help!
-
andyfoninoshiko - There is a persistent flag that means the zone won't do the IP address discovery more than once. It's a bit of a problem for usability.
-
andyfIf you remove the flag and reboot the zone, it should appear and be fine after that (with alllowed-address etc. in the zone config)
-
andyfWithin the zone do: `svccfg -s network/ip-interface-management:default delprop ipmgmtd/first_boot_done`
-
andyfOr you can do it from the GZ with `svccfg -z <zone> -s ...`
-
oninoshikooh! Fantastic! Thank you!