Hi Eric,

Reply inline...

On 09/25/2015 21:20, Eric wrote:
For whatever reason the routing is not added correctly during provisioing
might be from the command used to add the routes.

But I found that this command lets me fix the route to a specific interface:

route -p <add/delete> <hostname> <gateway> -ifp <interface>



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

net0 should be set as the primary interface, but for some reason net1 and
net2 are being used as the default interface instead

[root@dmz ~]# netstat -rn

Routing Table: IPv4
   Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
default              10.0.1.1             UG        2         14 net2
default              10.0.1.1             UG        2         28 net1
10.0.1.0             10.0.1.24            U         3          0 net2
10.0.1.0             10.0.1.23            U         3          0 net1
10.0.1.0             10.0.1.254           U         2          0 net0
<<<<<<<
12.0.0.0             12.0.0.1             U         2          0 net3
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


{
   "brand": "joyent",
   "alias": "dmz",
   "hostname": "dmz",
   "autoboot": true,
   "max_physical_memory": 512,
   "cpu_cap": 600,
   "quota": "5",
   "image_uuid": "62f148f8-6e84-11e4-82c5-efca60348b9f",
   "nics": [
     {
       "nic_tag": "external",
       "ip": "10.0.1.254",
       "gateway": "10.0.1.1",
       "netmask": "255.255.255.0",
       "dhcp_server": false,
       "allow_dhcp_spoofing": false,
       "allow_ip_spoofing": true,
       "allow_mac_spoofing": false,
       "primary": true <<<<<<<<<<<<<<<<<<<<<<<<<<
     },
     {
       "nic_tag": "net",
       "ip": "10.0.1.23",
       "gateway": "10.0.1.254",
       "netmask": "255.255.255.0",
       "dhcp_server": false,
       "allow_dhcp_spoofing": false,
       "allow_ip_spoofing": false,
       "allow_mac_spoofing": false,
       "primary": false

I seem to recall that primary is not true or false but true or absent.

Can you retry provisioning taking out all the '"primary": false' lines?

Jon

     },
     {
       "nic_tag": "net",
       "ip": "10.0.1.24",
       "gateway": "10.0.1.254",
       "netmask": "255.255.255.0",
       "dhcp_server": false,
       "allow_dhcp_spoofing": false,
       "allow_ip_spoofing": false,
       "allow_mac_spoofing": false,
       "primary": false
     },
     {
       "nic_tag": "elastic0",
       "ip": "12.0.0.1",
       "gateway": "12.0.0.1",
       "netmask": "255.255.255.0",
       "dhcp_server": false,
       "allow_dhcp_spoofing": false,
       "allow_ip_spoofing": false,
       "allow_mac_spoofing": false,
       "primary": false
     }
   ],
   "resolvers": [
     "8.8.8.8",
     "8.8.4.4"
   ]
}




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