I am testing MAAS 2.0 in a proof of concept environment, and my networking configuration looks like this:
eno1: MAAS PXE interface, untagged, MAAS DHCP managed
eno2: Office/Internet facing interface, untagged, external DHCP
bond0: Multiple tagged VLAN interfaces for workload segregation, all managed by MAAS DHCP
This naming and configuration is shared by the MAAS node and by the nodes it manages. By default after acquiring, commissioning and deploying a node, eno1 is set as the default gateway interface but I would like eno2 to be the default.
Attached is the output of "maas xxx interfaces read 4y3h7q" where "4y3h7q" is one of the nodes managed by MAAS, but the output for eno2 specifically is:
Attempting to set the default gateway interface of the node via "maas XXX interface set-default-gateway 4y3h7q 43" results in the following: {"__all__": ["This interface has no usable gateways."]}
Attempting to provide the link_id via "maas XXX interface set-default-gateway 4y3h7q 43 link_id=101" results in: {"link_id": ["'101' is not a valid link_id. It should be one of: ."], "__all__": ["This interface has no usable gateways."]}
If you need any further debugging, logs or info please let me know, and thanks!
Matthew
Hi there
I am testing MAAS 2.0 in a proof of concept environment, and my networking configuration looks like this:
eno1: MAAS PXE interface, untagged, MAAS DHCP managed
eno2: Office/Internet facing interface, untagged, external DHCP
bond0: Multiple tagged VLAN interfaces for workload segregation, all managed by MAAS DHCP
This naming and configuration is shared by the MAAS node and by the nodes it manages. By default after acquiring, commissioning and deploying a node, eno1 is set as the default gateway interface but I would like eno2 to be the default.
Attached is the output of "maas xxx interfaces read 4y3h7q" where "4y3h7q" is one of the nodes managed by MAAS, but the output for eno2 specifically is:
{
"mac_address" : "bc:30: 5b:d7:39: 3a",
"subnet" : {
" resource_ uri": "/MAAS/ api/2.0/ subnets/ 11/",
" name": "192.168.32.0/22",
" space": "maas-external",
" allow_proxy" : true,
" vlan": {
"name" : "untagged",
"resource_ uri": "/MAAS/ api/2.0/ vlans/5013/ ",
"mtu" : 1500,
"id" : 5013,
"fabric" : "fabric-5",
"dhcp_ on": false,
"vid" : 0,
"primary_ rack": null,
"external_ dhcp": "192.168.32.3",
"secondary_ rack": null
} ,
" id": 11,
" rdns_mode" : 2,
" cidr": "192.168.32.0/22",
" gateway_ ip": "192.168.32.2",
" dns_servers" : []
"id": 101,
"mode" : "dhcp",
"ip_address" : "192.168.34.117"
"resource_ uri": "/MAAS/ api/2.0/ nodes/4y3h7q/ interfaces/ 43/",
"effective_ mtu": 1500,
"resource_ uri": "/MAAS/ api/2.0/ vlans/5013/ ",
"fabric" : "fabric-5",
"dhcp_ on": false,
"primary_ rack": null,
"external_ dhcp": "192.168.32.3",
"secondary _rack": null
"discovered" : [
"subnet" : {
" resource_ uri": "/MAAS/ api/2.0/ subnets/ 11/",
" name": "192.168.32.0/22",
" space": "maas-external",
" allow_proxy" : true,
" vlan": {
"name" : "untagged",
"resource_ uri": "/MAAS/ api/2.0/ vlans/5013/ ",
"mtu" : 1500,
"id" : 5013,
"fabric" : "fabric-5",
"dhcp_ on": false,
"vid" : 0,
"primary_ rack": null,
"external_ dhcp": "192.168.32.3",
"secondary_ rack": null
} ,
" id": 11,
" rdns_mode" : 2,
" cidr": "192.168.32.0/22",
" gateway_ ip": "192.168.32.2",
" dns_servers" : []
"ip_address" : "192.168.34.117"
"params": "",
"links": [
{
},
}
],
"tags": [],
"vlan": {
"name": "untagged",
"mtu": 1500,
"id": 5013,
"vid": 0,
},
"name": "eno2",
{
},
}
],
"type": "physical",
"children": [],
"id": 43,
"parents": [],
"enabled": true
},
Attempting to set the default gateway interface of the node via "maas XXX interface set-default-gateway 4y3h7q 43" results in the following: {"__all__": ["This interface has no usable gateways."]}
Attempting to provide the link_id via "maas XXX interface set-default-gateway 4y3h7q 43 link_id=101" results in: {"link_id": ["'101' is not a valid link_id. It should be one of: ."], "__all__": ["This interface has no usable gateways."]}
If you need any further debugging, logs or info please let me know, and thanks!
Matthew