On Friday, September 25, 2015, Cody Mello <[email protected]> wrote:

> Eric,
>
> Can you run the following commands from within your zone and send the
> output:
>
> $ mdata-get sdc:nics
> $ cat /etc/defaultrouter
> $ svcs -xv
> $ svcs mdata
> $ svcs routing-setup
>
> The /etc/defaultrouter file gets set up during zone boot, and then
> read by the routing-setup service. You could also try running
> /lib/svc/method/mdata-fetch after running the above commands to see if
> it overwrites the file with different data.
>
> - Cody
>


Sure!

$ mdata-get sdc:nics:
root@dmz ~]# mdata-get sdc:nics | json -a
{
  "interface": "net0",
  "mac": "92:ca:0d:96:31:83",
  "nic_tag": "external",
  "gateway": "10.0.1.1",
  "gateways": [
    "10.0.1.1"
  ],
  "netmask": "255.255.255.0",
  "ip": "10.0.1.254",
  "ips": [
    "10.0.1.254/24"
  ],
  "dhcp_server": false,
  "allow_dhcp_spoofing": false,
  "allow_ip_spoofing": true,
  "allow_mac_spoofing": false,
  "primary": true
}
{
  "interface": "net1",
  "mac": "32:ce:2c:f5:9a:10",
  "nic_tag": "elastic0",
  "gateway": "12.0.0.1",
  "gateways": [
    "12.0.0.1"
  ],
  "netmask": "255.255.255.0",
  "ip": "12.0.0.1",
  "ips": [
    "12.0.0.1/24"
  ],
  "dhcp_server": false,
  "allow_dhcp_spoofing": false,
  "allow_ip_spoofing": false,
  "allow_mac_spoofing": false
}
{
  "interface": "net2",
  "mac": "22:35:9e:02:37:55",
  "nic_tag": "net",
  "gateway": "10.0.1.254",
  "gateways": [
    "10.0.1.254"
  ],
  "netmask": "255.255.255.0",
  "ip": "10.0.1.23",
  "ips": [
    "10.0.1.23/24"
  ]
}
{
  "interface": "net3",
  "mac": "12:6d:68:62:82:7d",
  "nic_tag": "net",
  "gateway": "10.0.1.254",
  "gateways": [
    "10.0.1.254"
  ],
  "netmask": "255.255.255.0",
  "ip": "10.0.1.24",
  "ips": [
    "10.0.1.24/24"
  ]
}

cat /etc/defaultrouter
10.0.1.1

[root@dmz ~]# svcs -xv
[root@dmz ~]#

[root@dmz ~]# svcs mdata
STATE          STIME    FMRI
online         21:16:01 svc:/smartdc/mdata:fetch
online         21:16:05 svc:/smartdc/mdata:execute

[root@dmz ~]# svcs routing-setup
STATE          STIME    FMRI
online         21:16:04 svc:/network/routing-setup:default

After running /lib/svc/method/mdata-fetch

[root@dmz ~]# cat /etc/defaultrouter
10.0.1.1



-------------------------------------------
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