Skip to main content
added 3 characters in body
Source Link
Stéphane Chazelas
  • 586.9k
  • 96
  • 1.1k
  • 1.7k

The 192.168.122.0/24 subnet for the default virtual network configured by libvirt happens to match the one on your enp3s0 interface.

So one of them must change. Likely easier to change the subnet of libvirt's default network.

Run:

sudo virsh net-edit default

And change all occurrences of 192.168.122 to 192.168.26 for instance (26 chosen at random and not overlapping with the other networks on your other interfaces).

Could be automated with for instance:

sudo EDITOR="perl -pi -e 's/192\.168\.\K122/26/g'" virsh net-edit default

It doesn't have to be under 192.168, but you should use a subnet within the ranges of IPv4 addresses reserved for private use from RFC1918.

The 192.168.122.0/24 subnet for the default virtual network configured by libvirt happens to match the one on your enp3s0 interface.

So one of them must change. Likely easier to change the subnet of libvirt's default network.

Run:

sudo virsh net-edit default

And change all occurrences of 192.168.122 to 192.168.26 for instance (26 chosen at random and not overlapping with the other networks on your other interfaces).

Could be automated with for instance:

sudo EDITOR="perl -pi -e 's/192\.168\.\K122/26/g'" virsh net-edit default

The 192.168.122.0/24 subnet for the default virtual network configured by libvirt happens to match the one on your enp3s0 interface.

So one of them must change. Likely easier to change the subnet of libvirt's default network.

Run:

sudo virsh net-edit default

And change all occurrences of 192.168.122 to 192.168.26 for instance (26 chosen at random and not overlapping with the other networks on your other interfaces).

Could be automated with for instance:

sudo EDITOR="perl -pi -e 's/192\.168\.\K122/26/g'" virsh net-edit default

It doesn't have to be under 192.168, but you should use a subnet within the ranges of IPv4 addresses reserved for private use from RFC1918.

added 3 characters in body
Source Link
Stéphane Chazelas
  • 586.9k
  • 96
  • 1.1k
  • 1.7k

The 192.168.122.0/24 subnet for the default virtual network configured by libvirt happens to match the one on your enp3s0 interface.

So one of them must change. Likely easier to change the subnet of libvirt's default network.

Run:

sudo virsh net-edit default

And change all occurrences of 192.168.122 to 192.168.26`192.168.26 for instance (2626 chosen at random and not overlapping with the other networks on your other interfaces).

Could be automated with for instance:

sudo EDITOR="perl -pi -e 's/192\.168\.\K122/26/g'" virsh net-edit default

The 192.168.122.0/24 subnet for the default virtual network configured by libvirt happens to match the one on your enp3s0 interface.

So one of them must change. Likely easier to change the subnet of libvirt's default network.

Run:

sudo virsh net-edit default

And change all occurrences of 192.168.122 to 192.168.26` for instance (26 chosen at random and not overlapping with the other networks on your other interfaces).

Could be automated with for instance:

sudo EDITOR="perl -pi -e 's/192\.168\.\K122/26/g'" virsh net-edit default

The 192.168.122.0/24 subnet for the default virtual network configured by libvirt happens to match the one on your enp3s0 interface.

So one of them must change. Likely easier to change the subnet of libvirt's default network.

Run:

sudo virsh net-edit default

And change all occurrences of 192.168.122 to 192.168.26 for instance (26 chosen at random and not overlapping with the other networks on your other interfaces).

Could be automated with for instance:

sudo EDITOR="perl -pi -e 's/192\.168\.\K122/26/g'" virsh net-edit default
Source Link
Stéphane Chazelas
  • 586.9k
  • 96
  • 1.1k
  • 1.7k

The 192.168.122.0/24 subnet for the default virtual network configured by libvirt happens to match the one on your enp3s0 interface.

So one of them must change. Likely easier to change the subnet of libvirt's default network.

Run:

sudo virsh net-edit default

And change all occurrences of 192.168.122 to 192.168.26` for instance (26 chosen at random and not overlapping with the other networks on your other interfaces).

Could be automated with for instance:

sudo EDITOR="perl -pi -e 's/192\.168\.\K122/26/g'" virsh net-edit default