Odd I thought "allow_dhcp_spoofing" would be enough. Otherwise I think the
host will filter out the DHCP packets.

This guy seems to have it working that way - http://www.daveeddy.com/
2015/05/31/smartos-as-a-home-router/.

Nicholas





On 30 March 2017 at 08:59, Kevr <[email protected]> wrote:

> Thank you for your reply Nicholas. I had in fact read that article but
> read that as for running a DHCP server in a zone. What I'm trying to
> achieve is to get a zone(with only a single vnic at the moment) to obtain a
> public IP address from my ISP via a dedicated NIC with the nic_tag
> "external".
>
> From the GZ after I update the zone vnic with the "allow_dhcp_spoofing"
> property:
> [root@smartos-1 ~]# dladm show-linkprop -z 
> 5c809072-6baf-6d3c-f5a1-c6b8e4f0ce68
> -p protection
> LINK         PROPERTY        PERM VALUE          DEFAULT        POSSIBLE
> net0         protection           rw        --
> --                    mac-nospoof,
>
>                                       restricted,
>
>                                       ip-nospoof,
>
>                                       dhcp-nospoof
>
> Sorry if the crappy web mail client messes up the formatting.
>
> Kevin Ratcliffe
>
> Sent from ProtonMail <https://protonmail.ch>
>
>
> -------- Original Message --------
> Subject: Re: [smartos-discuss] One Public IP Address and DHCP in a Zone
> Local Time: 29 March 2017 8:00 PM
> UTC Time: 29 March 2017 19:00
> From: [email protected]
> To: SmartOs Discuss <[email protected]>
>
> Check out https://wiki.smartos.org/display/DOC/Managing+NICs#Manag
> ingNICs-DHCPSupport.
>
> On 29/03/2017 8:58 AM, "Kevr" <[email protected]> wrote:
>
>> Hi
>>
>> I am trying to get a public IP via DHCP on a vnic but failing miserably.
>> My ISP(VirginMedia) supply me with a single IP address. When I remove the
>> cable from my external interface on my SmartOS host and plug it into my PC
>> I get a public address. Have I missed something? Should the following just
>> work?
>>
>> [root@smartos-1 ~]# dladm show-phys -m
>> LINK         SLOT     ADDRESS            INUSE CLIENT
>> e1000g0      primary  70:71:bc:8f:3c:6c  yes  e1000g0
>> e1000g3      primary  0:15:17:f0:26:34   yes  e1000g3
>> [root@smartos-1 ~]# nictagadm list
>> NAME           MACADDRESS         LINK           TYPE
>> external       00:15:17:f0:26:34  e1000g3        normal
>> admin          70:71:bc:8f:3c:6c  e1000g0        normal
>> [root@smartos-1 ~]# dladm show-vnic
>> LINK         OVER       SPEED MACADDRESS        MACADDRTYPE VID  ZONE
>> net0         e1000g3    0     e2:5d:a5:cd:7f:d7 fixed       0
>> 5c809072-6baf-6d3c-f5a1-c6b8e4f0ce68
>> [root@smartos-1 ~]# vmadm get 5c809072-6baf-6d3c-f5a1-c6b8e4f0ce68 |
>> json nics
>> [
>>   {
>>     "interface": "net0",
>>     "mac": "e2:5d:a5:cd:7f:d7",
>>     "nic_tag": "external",
>>     "ip": "dhcp",
>>     "ips": [
>>       "dhcp"
>>     ],
>>     "primary": true
>>   }
>> ]
>>
>> Thank you in advance for any help
>>
>> Kevin Ratcliffe
>>
>> Sent from ProtonMail <https://protonmail.ch>
>>
>>
>>
> *smartos-discuss* | Archives
> <https://www.listbox.com/member/archive/184463/=now>
> <https://www.listbox.com/member/archive/rss/184463/25241303-ebebecbc> |
> 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