Hi Avi,

What release are you using? (You can check with 'uname -v'.) Support for
DHCP in LX was added recently and should work by setting "ip" to "dhcp" or
"ips" to [ "dhcp" ]. "gateway" and "gateways" should be set to an IPv4
address (with support for IPv6 addresses at some point in the future).

Can you upload the JSON you're using somewhere, so that I can take a look
at what values your using?

- Cody


On Wed, Dec 9, 2015 at 12:13 AM, Avi Deitcher <[email protected]> wrote:

> Does DHCP work in LX-branded zones (using centos 6 images)?
>
> I managed to get the nic to accept an IP address, but:
>
> - the DNS resolvers from IP are not accepted
> - the default gateway is not entered
>
> If I try to manually add the gateway and resolvers (bad idea, but just to
> get it to work), I get json validation errors.
>
> # vmadm validate create -f centos66.json
> Invalid JSON payload: Unexpected token
>
> Same is true if I put "resolvers" in the root or individual NIC, "gateway"
> or "gateways" in root or individual NIC. Same is true if I put actual
> gateway IP or "gateway":"dhcp"
>
> Within the zone I cannot use the usual Linux tools to manage it either (ip
> link, ip route, etc.).
>
> What level of DHCP support exists?
>
> (please reply-all)
>
> --
> Avi Deitcher
> [email protected]
> Follow me http://twitter.com/avideitcher
> Read me http://blog.atomicinc.com
> *smartos-discuss* | Archives
> <https://www.listbox.com/member/archive/184463/=now>
> <https://www.listbox.com/member/archive/rss/184463/27398174-11508a73> |
> Modify
> <https://www.listbox.com/member/?&;>
> Your Subscription <http://www.listbox.com>
>



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to