Proxmox 4.0 Ip Subnet NEtwork Configuration

nade

New Member
Aug 26, 2015
16
1
3
[SOLVED]

To setup an Ip subnet with proxmox the host configuration has look like:


Host:
Code:
auto lo
iface lo inet loopback

# device: eth0
auto  eth0
iface eth0 inet static
  address   HOST IP
  netmask   HOST NETMASK
  gateway   HOST Gateway


auto vmbr0
iface vmbr0 inet static
    address  (One Usable IP from the Subnet - Acts as Gateway for the Guest!)
    netmask  (Subnetmask of Subnet)
    bridge_ports none
    bridge_stp off
    bridge_fd 0

    #subnet
    up ip route add (Another Usable IP From Subnet for the Guset)/28 dev vmbr0
    up ip route add (Another Usable IP From Subnet for the Guset)/28 dev vmbr0
    up ip route add (Another Usable IP From Subnet for the Guset)/28 dev vmbr0
    (++ As much Ip´s you have in your subnet)

Attention! the number behind the /28 have to match your subnet, the /28 is only for a /28 subnet..!

Guest:

Code:
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address (One usable IP from the up ip Route line)
        netmask (Subnetmask from Subnet)
        network (First ip of your subnet, Not the first usable, the FIRST IP!)
        broadcast (Last ip of your subnet, not the last usable, the LAST IP!
        gateway (Usable ip from subnet you configured in "Address" paramaeter of vmbr0 at host)
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 8.8.8.8







Hi,

I Have some problems with the configuration of an IP Subnet for KVM Vmś.

The config for Fail-over Ipś are no problem, but i wont get my Ip-Subnet working.

I Have to Use Routed configuration, cause my Hosting provider does not Provide Virtual Mac for Ip subnet.

Heres are my /etc/network/interfaces.

Host System
Code:
auto lo
iface lo inet loopback

# device: eth0
auto  eth0
iface eth0 inet static
  address   148.251.176.132
  netmask   255.255.255.192
  gateway   148.251.176.391


#auto vmbr0
iface vmbr0 inet static
    address  148.251.199.261
    netmask  255.255.255.240
    bridge_ports none
    bridge_stp off
    bridge_fd 0

    #subnet
    up ip route add 148.251.199.262/28 dev vmbr0
Guest System
Code:
# device: eth0
auto  eth0
iface eth0 inet static
  address 148.152.199.262
  netmask 255.255.255.240
  gateway 148.152.199.261

Please Help me
I Do not know what i should try else..
 
Last edited:
Hi,

...
Host System
Code:
...
    up ip route add 148.251.199.262/28 dev vmbr0
Guest System
Code:
# device: eth0
auto  eth0
iface eth0 inet static
  address 148.152.199.262

Hi,
262 don't fit in 8 bit!

And if you use a smaller number like 148.251.199.224/28 then 148.251.199.224 is the network - so the first usable IP is the 148.251.199.225.

Don't know if this solve your issue.

Udo
 
Problem is [Solved], i Posted a Working configuration on the top of the Thread
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!