Ubuntu Pastebin

Paste from linadm at Wed, 27 Apr 2016 21:31:54 +0000

Download as text
  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
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
### get_ip_addr() ###
{'eth0': {'flags': ['BROADCAST', 'MULTICAST', 'UP', 'LOWER_UP'],
          'index': 2,
          'inet': ['10.16.100.10/24'],
          'mac': '52:54:00:2c:e0:b5',
          'name': 'eth0',
          'settings': {'group': 'default',
                       'mtu': '1500',
                       'qdisc': 'pfifo_fast',
                       'qlen': '1000',
                       'state': 'UP'},
          'type': 'ethernet.physical'},
 'lo': {'flags': ['LOOPBACK', 'UP', 'LOWER_UP'],
        'index': 1,
        'inet': ['127.0.0.1/8'],
        'inet6': ['::1/128'],
        'name': 'lo',
        'settings': {'group': 'default',
                     'mtu': '65536',
                     'qdisc': 'noqueue',
                     'qlen': '1',
                     'state': 'UNKNOWN'},
        'type': 'loopback'},
 'virbr0': {'bridged_interfaces': ['virbr0-nic'],
            'flags': ['NO-CARRIER', 'BROADCAST', 'MULTICAST', 'UP'],
            'index': 12,
            'inet': ['192.168.122.1/24'],
            'mac': '52:54:00:12:d6:94',
            'name': 'virbr0',
            'settings': {'group': 'default',
                         'mtu': '1500',
                         'qdisc': 'noqueue',
                         'qlen': '1000',
                         'state': 'DOWN'},
            'type': 'ethernet.bridge'},
 'virbr0-nic': {'flags': ['BROADCAST', 'MULTICAST'],
                'index': 13,
                'mac': '52:54:00:12:d6:94',
                'name': 'virbr0-nic',
                'settings': {'group': 'default',
                             'master': 'virbr0',
                             'mtu': '1500',
                             'qdisc': 'noqueue',
                             'qlen': '500',
                             'state': 'DOWN'},
                'type': 'ethernet'},
 'vlan101': {'flags': ['BROADCAST', 'MULTICAST', 'UP', 'LOWER_UP'],
             'index': 4,
             'inet': ['10.16.101.10/24'],
             'mac': '52:54:00:2c:e0:b5',
             'name': 'vlan101',
             'parent': 'eth0',
             'settings': {'group': 'default',
                          'mtu': '1500',
                          'qdisc': 'noqueue',
                          'qlen': '1000',
                          'state': 'UP'},
             'type': 'ethernet.vlan',
             'vid': 101},
 'vlan102': {'flags': ['BROADCAST', 'MULTICAST', 'UP', 'LOWER_UP'],
             'index': 5,
             'inet': ['10.16.102.10/24'],
             'mac': '52:54:00:2c:e0:b5',
             'name': 'vlan102',
             'parent': 'eth0',
             'settings': {'group': 'default',
                          'mtu': '1500',
                          'qdisc': 'noqueue',
                          'qlen': '1000',
                          'state': 'UP'},
             'type': 'ethernet.vlan',
             'vid': 102},
 'vlan103': {'flags': ['BROADCAST', 'MULTICAST', 'UP', 'LOWER_UP'],
             'index': 6,
             'inet': ['10.16.103.10/24'],
             'mac': '52:54:00:2c:e0:b5',
             'name': 'vlan103',
             'parent': 'eth0',
             'settings': {'group': 'default',
                          'mtu': '1500',
                          'qdisc': 'noqueue',
                          'qlen': '1000',
                          'state': 'UP'},
             'type': 'ethernet.vlan',
             'vid': 103},
 'vlan104': {'flags': ['BROADCAST', 'MULTICAST', 'UP', 'LOWER_UP'],
             'index': 7,
             'inet': ['10.16.104.10/24'],
             'mac': '52:54:00:2c:e0:b5',
             'name': 'vlan104',
             'parent': 'eth0',
             'settings': {'group': 'default',
                          'mtu': '1500',
                          'qdisc': 'noqueue',
                          'qlen': '1000',
                          'state': 'UP'},
             'type': 'ethernet.vlan',
             'vid': 104},
 'vlan105': {'flags': ['BROADCAST', 'MULTICAST', 'UP', 'LOWER_UP'],
             'index': 8,
             'inet': ['10.16.105.10/24'],
             'mac': '52:54:00:2c:e0:b5',
             'name': 'vlan105',
             'parent': 'eth0',
             'settings': {'group': 'default',
                          'mtu': '1500',
                          'qdisc': 'noqueue',
                          'qlen': '1000',
                          'state': 'UP'},
             'type': 'ethernet.vlan',
             'vid': 105},
 'vlan110': {'flags': ['BROADCAST', 'MULTICAST', 'UP', 'LOWER_UP'],
             'index': 9,
             'inet': ['10.16.110.10/24'],
             'mac': '52:54:00:2c:e0:b5',
             'name': 'vlan110',
             'parent': 'eth0',
             'settings': {'group': 'default',
                          'mtu': '1500',
                          'qdisc': 'noqueue',
                          'qlen': '1000',
                          'state': 'UP'},
             'type': 'ethernet.vlan',
             'vid': 110},
 'vlan111': {'flags': ['BROADCAST', 'MULTICAST', 'UP', 'LOWER_UP'],
             'index': 10,
             'inet': ['10.16.111.10/24'],
             'mac': '52:54:00:2c:e0:b5',
             'name': 'vlan111',
             'parent': 'eth0',
             'settings': {'group': 'default',
                          'mtu': '1500',
                          'qdisc': 'noqueue',
                          'qlen': '1000',
                          'state': 'UP'},
             'type': 'ethernet.vlan',
             'vid': 111},
 'vlan112': {'flags': ['BROADCAST', 'MULTICAST', 'UP', 'LOWER_UP'],
             'index': 11,
             'inet': ['10.16.112.10/24'],
             'mac': '52:54:00:2c:e0:b5',
             'name': 'vlan112',
             'parent': 'eth0',
             'settings': {'group': 'default',
                          'mtu': '1500',
                          'qdisc': 'noqueue',
                          'qlen': '1000',
                          'state': 'UP'},
             'type': 'ethernet.vlan',
             'vid': 112},
 'vlan9': {'flags': ['BROADCAST', 'MULTICAST', 'UP', 'LOWER_UP'],
           'index': 3,
           'mac': '52:54:00:2c:e0:b5',
           'name': 'vlan9',
           'parent': 'eth0',
           'settings': {'group': 'default',
                        'mtu': '1500',
                        'qdisc': 'noqueue',
                        'qlen': '1000',
                        'state': 'UP'},
           'type': 'ethernet.vlan',
           'vid': 9}}

### get_ip_route() ###
{'default': {'dev': 'eth0', 'via': '10.16.100.1'}}

### get_interfaces_definition() ###
{'eth0': {'enabled': True,
          'links': [{'address': '10.16.100.10/24',
                     'gateway': '10.16.100.1',
                     'mode': 'static'}],
          'mac_address': '52:54:00:2c:e0:b5',
          'parents': [],
          'source': 'ipaddr',
          'type': 'physical'},
 'virbr0': {'enabled': True,
            'links': [{'address': '192.168.122.1/24', 'mode': 'static'}],
            'mac_address': '52:54:00:12:d6:94',
            'parents': [],
            'source': 'ipaddr',
            'type': 'bridge'},
 'vlan101': {'enabled': True,
             'links': [{'address': '10.16.101.10/24', 'mode': 'static'}],
             'parents': ['vlan101'],
             'source': 'ipaddr',
             'type': 'vlan',
             'vid': 101},
 'vlan102': {'enabled': True,
             'links': [{'address': '10.16.102.10/24', 'mode': 'static'}],
             'parents': ['vlan102'],
             'source': 'ipaddr',
             'type': 'vlan',
             'vid': 102},
 'vlan103': {'enabled': True,
             'links': [{'address': '10.16.103.10/24', 'mode': 'static'}],
             'parents': ['vlan103'],
             'source': 'ipaddr',
             'type': 'vlan',
             'vid': 103},
 'vlan104': {'enabled': True,
             'links': [{'address': '10.16.104.10/24', 'mode': 'static'}],
             'parents': ['vlan104'],
             'source': 'ipaddr',
             'type': 'vlan',
             'vid': 104},
 'vlan105': {'enabled': True,
             'links': [{'address': '10.16.105.10/24', 'mode': 'static'}],
             'parents': ['vlan105'],
             'source': 'ipaddr',
             'type': 'vlan',
             'vid': 105},
 'vlan110': {'enabled': True,
             'links': [{'address': '10.16.110.10/24', 'mode': 'static'}],
             'parents': ['vlan110'],
             'source': 'ipaddr',
             'type': 'vlan',
             'vid': 110},
 'vlan111': {'enabled': True,
             'links': [{'address': '10.16.111.10/24', 'mode': 'static'}],
             'parents': ['vlan111'],
             'source': 'ipaddr',
             'type': 'vlan',
             'vid': 111},
 'vlan112': {'enabled': True,
             'links': [{'address': '10.16.112.10/24', 'mode': 'static'}],
             'parents': ['vlan112'],
             'source': 'ipaddr',
             'type': 'vlan',
             'vid': 112},
 'vlan9': {'enabled': True,
           'links': [],
           'parents': ['vlan9'],
           'source': 'ipaddr',
           'type': 'vlan',
           'vid': 9}}
Download as text