I would like use a new different Subnet

theroad

New Member
Oct 7, 2013
1
0
1
Hi,

i have a problem with my Proxmox configuration.
I have 10 Ip-Adress from My Hoster like this:

xxx.230.239.122
xxx.230.239.123
xxx.230.239.124
xxx.230.239.125
xxx.230.239.126
xxx.230.239.127
xxx.230.239.128
xxx.230.239.129

And the Gatway xxx.230.239.1

And now i have became a new Subnet /28
Available IP: 82-94
xxx.230.232.82
xxx.230.232.83
xxx.230.232.84
xxx.230.232.85
xxx.230.232.86
xxx.230.232.87
xxx.230.232.88
xxx.230.232.89
xxx.230.232.90
xxx.230.232.91
xxx.230.232.92
xxx.230.232.93
xxx.230.232.94
Gateway: xxx.230.232.81
Netmask: 255.255.255.240

It's a different Gateway and when i set in the VMs this Ips it doesn't work. How can i use the new Subnet?

Here Screenshots and Infos about my Configuration:
Screenshot_1.png

/etc/network/interfaces
Code:
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
    address  xxx.230.239.34
    netmask  255.255.255.0
    gateway  xxx.230.239.1
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
    bridge_ports none
    bridge_stp off
    bridge_fd 0

vz.conf:
Code:
## Global parameters
VIRTUOZZO=yes
LOCKDIR=/var/lib/vz/lock
DUMPDIR=/var/lib/vz/dump
VE0CPUUNITS=1000

## Logging parameters
LOGGING=yes
LOGFILE=/var/log/vzctl.log
LOG_LEVEL=0
VERBOSE=0

## Disk quota parameters
DISK_QUOTA=yes
VZFASTBOOT=no

# Disable module loading. If set, vz initscript does not load any modules.
#MODULES_DISABLED=yes

# The name of the device whose IP address will be used as source IP for CT.
# By default automatically assigned.
#VE_ROUTE_SRC_DEV="eth0"

# Controls which interfaces to send ARP requests and modify ARP tables on.
NEIGHBOUR_DEVS=all

## Fail if there is another machine in the network with the same IP
ERROR_ON_ARPFAIL="no"

## Template parameters
TEMPLATE=/var/lib/vz/template

## Defaults for containers
VE_ROOT=/var/lib/vz/root/$VEID
VE_PRIVATE=/var/lib/vz/private/$VEID

## Filesystem layout for new CTs: either simfs (default) or ploop
#VE_LAYOUT=ploop

## Load vzwdog module
VZWDOG="no"

## IPv4 iptables kernel modules to be enabled in CTs by default
IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length"
## IPv4 iptables kernel modules to be loaded by init.d/vz script
IPTABLES_MODULES="$IPTABLES"

## Enable IPv6
IPV6="yes"

## IPv6 ip6tables kernel modules
IP6TABLES="ip6_tables ip6table_filter ip6table_mangle ip6t_REJECT"

How i can use this ip Adresses in my VM's... (Linux and Windows)

Since 2 days i search in google but i can't found any soulotion that work. :-(

Thanks a LOT!

Br,
Kevin
 
Hi Kevin,
it's depends on your hoster - if all traffic for the new network must came from your host-mac-address you must use iptables for nat...

Otherwise, have you tried simply to use bridged network for an VM (on vmbr0) and use an IP from the new range (with the right gateway of course)?
BTW. your IP from the pve-host is not in your 10-IP-Range?!

Udo
 

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!