File tree 1 file changed +51
-0
lines changed
1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,57 @@ There are few steps to follow:
148
148
sudo virsh net-start --network default
149
149
` ` `
150
150
151
+ - If IPv6 is needed change the configuration of ` virbr0`
152
+
153
+ ` ` ` bash
154
+ sudo virsh net-destroy default
155
+ sudo virsh net-edit default
156
+ ` ` `
157
+
158
+ The commands above open the editor of the configuration file of ` virbr0` . The are two necessary changes:
159
+
160
+ - Add IPv6 address to the bridge interface:
161
+
162
+ ` ` ` xml
163
+ < ip family=' ipv6' address=' 2001:db8:dead:beef:fe::2' prefix=' 64' >
164
+ < /ip>
165
+ ` ` `
166
+
167
+ - Enable NAT for IPv6:
168
+
169
+ ` ` ` xml
170
+ < forward mode=' nat' >
171
+ < nat ipv6=' yes' />
172
+ < /forward>
173
+ ` ` `
174
+
175
+ The overall config should look something like this:
176
+
177
+ ` ` ` xml
178
+ < network ipv6=' yes' >
179
+ < name> default< /name>
180
+ < uuid> a9e032b7-e32f-4f91-a273-e6c6f15b8904< /uuid>
181
+ < forward mode=' nat' >
182
+ < nat ipv6=' yes' />
183
+ < /forward>
184
+ < bridge name=' virbr0' stp=' on' delay=' 0' >
185
+ < mac address=' 52:54:00:99:4d:c3' />
186
+ < ip address=' 192.168.122.1' netmask=' 255.255.255.0' >
187
+ < dhcp>
188
+ < range start=' 192.168.122.2' end=' 192.168.122.254' />
189
+ < /dhcp>
190
+ < /ip>
191
+ < ip family=' ipv6' address=' 2001:db8:dead:beef:fe::2' prefix=' 64' >
192
+ < /ip>
193
+ < /network>
194
+ ` ` `
195
+
196
+ Save the config file and start the bridge by running:
197
+
198
+ ` ` ` bash
199
+ sudo virsh net-start default
200
+ ` ` `
201
+
151
202
- After that verify that the IP range ` 192.168.122.1/24` is reported by the ` vibr0` bridge:
152
203
153
204
` ` ` bash
You can’t perform that action at this time.
0 commit comments