Switched to KVM can no longer set a static IP


Recommended Posts

Sounds basic and simple right?  For some reason this is not working for me (worked fine under XEN).

 

Unraid 6.0 RC3

- Default Network Bridge: br0

 

XML

	<interface type='bridge'>
      <mac address='52:54:00:93:1e:59'/>
      <source bridge='virbr0'/>
  <target dev='vnet0'/>
      <alias name='net0'/>	  
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>

 

Server IP

IP: 192.168.2.4
Subnet: 255.255.255.0
Gateway: 192.168.2.1

 

VM IP (DHCP)

IP: 192.168.122.140
Subnet: 255.255.255.0
Gateway: 192.168.122.1

 

When i change the IP on the VM to match the static IP i want it loses connection.

IP: 192.168.2.12
Subnet: 255.255.255.0
Gateway: 192.168.2.1

 

Can VM's in KVM not share the same gateway due to the way it handles NAT??

 

 

 

BASICLY I cannot port forward plex...

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.