Hi Steve,

> I'm going to have to add a script if there's no way for it to put in the
> default route as that appears to not show up on base64. Others I have
> does it just fine. I tried headnode_default_gateway which did not help,
> I simply have to add 'route add default 10.1.6.4 1' to make it have a
> default gw.

As mentioned earlier, remove the extra dot from gateway and remove the
headnode gateway. Then it works.
(I've just tested on my SmartOS)


{
 "autoboot": true,
 "brand": "joyent",
 "image_uuid": "d34c301e-10c3-11e4-9b79-5f67ca448df0",
 "max_physical_memory": 1024,
 "cpu_cap": 100,
 "hostname": "1-leofs",
 "alias": "1.leofs",
 "quota": "150",
 "dns_domain": "cl.callcentersg.com",
 "resolvers": [ "10.1.6.4" ],
 "nics": [
  {
   "interface": "net0",
   "nic_tag": "admin",
   "ip": "10.1.6.51",
   "netmask": "255.255.255.0",
   "gateway": "10.1.6.4"
  }
 ]
}


[root@1-leofs ~]# netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use
Interface 
-------------------- -------------------- ----- ----- ----------
--------- 
default              10.1.6.4             UG        2        207 net0      
10.1.6.0             10.1.6.51            U         3        207 net0      
127.0.0.1            127.0.0.1            UH        2          0 lo0       

Routing Table: IPv6
  Destination/Mask            Gateway                   Flags Ref   Use
If   
--------------------------- --------------------------- ----- ---
------- ----- 
::1                         ::1                         UH      2
0 lo0   


Jan



> 
> {
>  "autoboot": true,
>  "brand": "joyent",
>  "image_uuid": "d34c301e-10c3-11e4-9b79-5f67ca448df0",
>  "max_physical_memory": 1024,
>  "cpu_cap": 100,
>  "hostname": "1-leofs",
>  "alias": "1.leofs",
>  "quota": "150",
>  "dns_domain": "cl.callcentersg.com",
>  "resolvers": [ "10.1.6.4" ],
>  "headnode_default_gateway": "10.1.6.4",
    ^^^--- remove

>  "nics": [
>   {
>    "interface": "net0",
>    "nic_tag": "admin",
>    "ip": "10.1.6.51",
>    "netmask": "255.255.255.0",
>    "gateway": "10.1.6.4."
                         ^--- this dot doesn't make sense

> }
> ]
> }
> 
> --
> Steve
> 

-- 
Be the change you want to see in the world.


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