Check out
https://wiki.smartos.org/display/DOC/Managing+NICs#ManagingNICs-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