~curtin-dev/curtin/trunk

« back to all changes in this revision

Viewing changes to examples/tests/network_alias.yaml

  • Committer: Scott Moser
  • Date: 2017-12-20 17:33:03 UTC
  • Revision ID: smoser@ubuntu.com-20171220173303-29gha5qb8wpqrd40
README: Mention move of revision control to git.

curtin development has moved its revision control to git.
It is available at
  https://code.launchpad.net/curtin

Clone with
  git clone https://git.launchpad.net/curtin
or
  git clone git+ssh://git.launchpad.net/curtin

For more information see
  http://curtin.readthedocs.io/en/latest/topics/development.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
showtrace: true
2
 
network:
3
 
    version: 1
4
 
    config:
5
 
        # no-alias: single v4 and v6 on same interface
6
 
        - type: physical
7
 
          name: interface0
8
 
          mac_address: "52:54:00:12:34:00"
9
 
          subnets:
10
 
              - type: static
11
 
                address: 10.47.98.1/24
12
 
              - type: static
13
 
                address: 2001:4800:78ff:1b:be76:4eff:fe06:ffac
14
 
                netmask: 'ffff:ffff:ffff:ffff::'
15
 
        # multi_v4_alias: multiple v4 addrs on same interface
16
 
        - type: physical
17
 
          name: interface1
18
 
          mac_address: "52:54:00:12:34:02"
19
 
          subnets:
20
 
              - type: static
21
 
                address: 192.168.20.2/24
22
 
                routes:
23
 
                  - gateway: 192.168.20.1
24
 
                    netmask: 255.255.255.0
25
 
                    network: 10.242.47.0
26
 
              - type: static
27
 
                address: 10.23.22.7/23
28
 
                routes:
29
 
                  - gateway: 10.23.22.2
30
 
                    netmask: 255.255.255.0
31
 
                    network: 10.49.253.0
32
 
        # multi_v6_alias: multiple v6 addrs on same interface
33
 
        - type: physical
34
 
          name: interface2
35
 
          mac_address: "52:54:00:12:34:04"
36
 
          subnets:
37
 
              - type: static
38
 
                address: 2001:4800:78ff:1b:be76:4eff:dead:1000
39
 
                netmask: 'ffff:ffff:ffff:ffff::'
40
 
              - type: static
41
 
                address: 2001:4800:78ff:1b:be76:4eff:dead:2000
42
 
                netmask: 'ffff:ffff:ffff:ffff::'
43
 
              - type: static
44
 
                address: 2001:4800:78ff:1b:be76:4eff:dead:3000
45
 
                netmask: 'ffff:ffff:ffff:ffff::'
46
 
        # multi_v4_and_v6_alias: multiple v4 and v6 addrs on same interface
47
 
        - type: physical
48
 
          name: interface3
49
 
          mac_address: "52:54:00:12:34:06"
50
 
          subnets:
51
 
              - type: static
52
 
                address: 192.168.80.8/24
53
 
                routes:
54
 
                  - gateway: 192.168.80.1
55
 
                    netmask: 255.255.255.0
56
 
                    network: 10.189.34.0
57
 
              - type: static
58
 
                address: 10.99.10.23/23
59
 
                routes:
60
 
                  - gateway: 10.99.10.1
61
 
                    netmask: 255.255.255.0
62
 
                    network: 10.77.154.0
63
 
              - type: static
64
 
                address: 2001:4800:78ff:1b:be76:4eff:beef:4000
65
 
                netmask: 'ffff:ffff:ffff:ffff::'
66
 
              - type: static
67
 
                address: 2001:4800:78ff:1b:be76:4eff:beef:5000
68
 
                netmask: 'ffff:ffff:ffff:ffff::'
69
 
              - type: static
70
 
                address: 2001:4800:78ff:1b:be76:4eff:beef:6000
71
 
                netmask: 'ffff:ffff:ffff:ffff::'
72
 
        # multi_v6_and_v4_revorder_alias: multiple v4 and v6 addr, rev order
73
 
        - type: physical
74
 
          name: interface4
75
 
          mac_address: "52:54:00:12:34:08"
76
 
          subnets:
77
 
              - type: static
78
 
                address: 2001:4800:78ff:1b:be76:4eff:debe:7000
79
 
                netmask: 'ffff:ffff:ffff:ffff::'
80
 
              - type: static
81
 
                address: 2001:4800:78ff:1b:be76:4eff:debe:8000
82
 
                netmask: 'ffff:ffff:ffff:ffff::'
83
 
              - type: static
84
 
                address: 2001:4800:78ff:1b:be76:4eff:debe:9000
85
 
                netmask: 'ffff:ffff:ffff:ffff::'
86
 
              - type: static
87
 
                address: 192.168.100.100/24
88
 
                routes:
89
 
                  - gateway: 192.168.100.1
90
 
                    netmask: 255.255.255.0
91
 
                    network: 10.28.219.0
92
 
              - type: static
93
 
                address: 10.17.142.2/23
94
 
                routes:
95
 
                  - gateway: 10.17.142.1
96
 
                    netmask: 255.255.255.0
97
 
                    network: 10.82.49.0
98
 
        # multi_v6_and_v4_mix_order: multiple v4 and v6 addr, mixed order
99
 
        - type: physical
100
 
          name: interface5
101
 
          mac_address: "52:54:00:12:34:0a"
102
 
          subnets:
103
 
              - type: static
104
 
                address: 2001:4800:78ff:1b:be76:4eff:baaf:a000
105
 
                netmask: 'ffff:ffff:ffff:ffff::'
106
 
              - type: static
107
 
                address: 2001:4800:78ff:1b:be76:4eff:baaf:c000
108
 
                netmask: 'ffff:ffff:ffff:ffff::'
109
 
              - type: static
110
 
                address: 192.168.200.200/24
111
 
                routes:
112
 
                  - gateway: 192.168.200.1
113
 
                    netmask: 255.255.255.0
114
 
                    network: 10.71.23.0
115
 
              - type: static
116
 
                address: 10.252.2.2/23
117
 
                routes:
118
 
                  - gateway: 10.252.2.1
119
 
                    netmask: 255.255.255.0
120
 
                    network: 10.3.7.0
121
 
              - type: static
122
 
                address: 2001:4800:78ff:1b:be76:4eff:baaf:b000
123
 
                netmask: 'ffff:ffff:ffff:ffff::'