aboutsummaryrefslogtreecommitdiffstats
path: root/etc/os-net-config/samples/interface.json
blob: 7b70e05cd4088b99e9eaa71c37975c7a0df2cbbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{"network_config": [
    {
      "type": "interface",
      "name": "em1",
      "use_dhcp": false,
      "addresses": [
        {
          "ip_netmask": "192.0.2.1/24"
        }
      ],
      "routes": [
        {
          "ip_netmask": "0.0.0.0/0",
          "next_hop": "192.0.2.254",
          "default": "true"
        },
        {
          "ip_netmask": "10.1.2.0/24",
          "next_hop": "192.0.2.5",
          "route_options": "metric 10"
        }
      ]
    },
    {
      "type": "interface",
      "name": "em2",
      "use_dhcp": true,
      "defroute": false,
      "ethtool_opts": "speed 1000 duplex full"
    },
    {
      "type": "interface",
      "name": "em3",
      "use_dhcp": true,
      "hotplug": true
    }
  ]
}