You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is based on a subset of Ubuntu's netplan and cloudinit.
"network" (optional)
Used to configure network in live/installed system.
Set "version": "2" or the legacy config will be used, see below.
The syntax roughly follows the cloud-init or netplan configuration,
but not all options are supported.
"hostname": set the host name.
"ethernets": Settings for ethernet interfaces. Each interface has an 'id',
which can be any name which may be refrenced for examplev for VLANs. Can
be the interface name.
Within any 'id':
"match" : set a way to match this interface. Can be 'name' or 'macaddress'.
"dhcp4" : set to "yes" or "no"
"addresses" : a list of ip addresses (IPv4 or IPv6) with cidr netmask.
"gateway" : the default gateway.
"nameservers" : a dictionary with "addresses" containing a list of name servers,
and "search" with a list of search domains.
"vlans": Settings for VLAN interfaces. Similar to "ethernets" above,
but with these additional required settings:
"id" : the VLAN id (integer in the range 1..4094)
"link" : the id of the ethernet interface to use, from the "ethernets"
configured.
Example:
"network":{
"version": "2",
"hostname" : "photon-machine",
"ethernets": {
"id0":{
"match":{
"name" : "eth0"
},
"dhcp4" : "no",
"addresses":[
"192.168.2.58/24"
],
"gateway": "192.168.2.254",
"nameservers":{
"addresses" : ["8.8.8.8", "8.8.4.4"],
"search" : ["vmware.com", "eng.vmware.com"]
}
}
},
"vlans": {
"vlan0": {
"id": 100,
"link": "id0",
"addresses":[
"192.168.100.58/24"
]
}
}
}
Change-Id: I544da79dba0c4285f1acf8d8315cdb1e9ec91783
0 commit comments