hi! i need help, i am very desperate with proxmox network setting

harpnet

New Member
Mar 31, 2013
16
0
1
Hello! I a have a problem with proxmox ve 2.3
So here's what i want to do :
i have 2 network cards and i want to use one directly connected on my isp network with this ip eth0 81.196.124.123 ,netmask 255.255.255.240 , gw 81.196.124.113 and my second network card i want to use for share internet with my router, so i conected my eth1 82.79.61.1 to my router so i can share internet with my other network. Now i figured that i cant make my vms to have one of my 5 ip subnets. What can i do? How can i configure my network so i can use internet on router and give ip subnet to my vms ? Pls help me, i searched on forum for 1 week and i didn't find something that can help me. Here are my settings

# network interface settings
auto loiface lo inet loopback
auto eth0iface eth0 inet manual
auto eth1
iface eth1 inet manual
auto vmbr0
iface vmbr0 inet static
address 81.196.124.123
netmask 255.255.255.240
gateway 81.196.124.113
bridge_ports eth0
bridge_stp off
bridge_fd 0auto
vmbr1
iface vmbr1 inet static
address 82.79.61.3
netmask 255.255.255.248
gateway 82.79.61.1
bridge_ports eth1
bridge_stp off
bridge_fd 0
 
Last edited:
Hello! I a have a problem with proxmox ve 2.3
So here's what i want to do :
i have 2 network cards and i want to use one directly connected on my isp network with this ip eth0 81.196.124.123 ,netmask 255.255.255.240 , gw 81.196.124.113 and my second network card i want to use for share internet with my router, so i conected my eth1 82.79.61.1 to my router so i can share internet with my other network. Now i figured that i cant make my vms to have one of my 5 ip subnets. What can i do? How can i configure my network so i can use internet on router and give ip subnet to my vms ? Pls help me, i searched on forum for 1 week and i didn't find something that can help me. Here are my settings

# network interface settings
auto loiface lo inet loopback
auto eth0iface eth0 inet manual
auto eth1
iface eth1 inet manual
auto vmbr0
iface vmbr0 inet static
address 81.196.124.123
netmask 255.255.255.240
gateway 81.196.124.113
bridge_ports eth0
bridge_stp off
bridge_fd 0auto
vmbr1
iface vmbr1 inet static
address 82.79.61.3
netmask 255.255.255.248
gateway 82.79.61.1
bridge_ports eth1
bridge_stp off
bridge_fd 0
Hi,
you have two gateyways (default gateways), this can't be right.

Normaly the ISP-IPs should not used for an bridge - you can better use this IP for an VM.
I would create an normal bridge - vmbr0 - for the normal network and an additional bridge, like vmbr1 for the VM with an official IP.
Like this
Code:
# network interface settings
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto eth1
iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
    address 82.79.61.3 
    netmask 255.255.255.248 
    gateway 82.79.61.1
    bridge_ports eth1
    bridge_stp off
    bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
If you use an bridged network for an VM which is connected to vmbr1 you can use one of you official IP inside this VM.

Udo
 
hi udo, my server dont work on internet . if i bridge one eth0 or eth1 then my internet is gone. i use following interfaces for internet but doesnt work on my vm server


# network interface settings
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 81.196.124.123
netmask 255.255.255.240
gateway 81.196.124.113

auto eth1
iface eth1 inet static
address 82.79.61.1
netmask 255.255.255.248

auto vmbr0
iface vmbr0 inet static
address 82.79.61.3
netmask 255.255.255.248
bridge_ports none
bridge_stp off
bridge_fd 0

iface vmbr1 inet manual
bridge_ports none
bridge_stp off
bridge_fd 0


in vm windows xp i give next configuration ip 82.79.61.4 , netmask 255.255.255.248 , gw 82.79.61.1 and dns servers for my isp from eth0 ip.I bridged with vmbr0 , then with vmbr1 and vm doesnt work on internet. When i use brirdge ports to eth0 or eth1 , internet is gone on all network. I'm sorry for my english ,but i dont sleeped for 2 days because of this.
 
Last edited:
hi udo,
my server dont work on internet.
What does this mean? You server has two networks - both are real ipv4 adresse, but the server don't work there???
if i bridge one eth0 or eth1 then my internet is gone. i use following interfaces for internet but doesnt work on my vm server


# network interface settings
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 81.196.124.123
netmask 255.255.255.240
gateway 81.196.124.113

auto eth1
iface eth1 inet static
address 82.79.61.1
netmask 255.255.255.248

auto vmbr0
iface vmbr0 inet static
address 82.79.61.3
netmask 255.255.255.248
bridge_ports none
bridge_stp off
bridge_fd 0

iface vmbr1 inet manual
bridge_ports none
bridge_stp off
bridge_fd 0


in vm windows xp i give next configuration ip 82.79.61.4 , netmask 255.255.255.248 , gw 82.79.61.1 and dns servers for my isp from eth0 ip.I bridged with vmbr0 , then with vmbr1 and vm doesnt work on internet. When i use brirdge ports to eth0 or eth1 , internet is gone on all network. I'm sorry for my english ,but i dont sleeped for 2 days because of this.
For me is not clear, what the /29 is for.
Start with the bigger net and if all work extend the other network (for nat?).
The bigger one should look like this except your ISP do some kinds of "allow only one MAC-adress" - in this case it's allway an good idea to ask the ISP
Code:
# network interface settings
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual
      

auto vmbr0
     iface vmbr0 inet static
     address  81.196.124.123
            netmask  255.255.255.240
            gateway  81.196.124.113
           bridge_ports eth0
           bridge_stp off
           bridge_fd 0
Udo
 
Hi, Udo! ISP recomanded me to buy an router that suport NAT disable and then my network will work. This router Router TP-LINK TL-R480T+ is good for doing this? I readed specification but i dont saw any disable/enable NAT , but i saw that he can suport 2 wans.. what u recomend me to do? Thank you in advance
 
Hi, Udo! ISP recomanded me to buy an router that suport NAT disable and then my network will work. This router Router TP-LINK TL-R480T+ is good for doing this? I readed specification but i dont saw any disable/enable NAT , but i saw that he can suport 2 wans.. what u recomend me to do? Thank you in advance

Hi,
what effort has an "NAT disable"? From which Network? An natted network behind the /29 (e.g. an /24) is perhaps an option, but why should NAT disable change anything?

Have you tried with vmbr0 at the last post?
What happens if you create an VM with bridged network to vmbr0 and use inside the VM the 81.196.124.114? Should reach the internet in both directions.
If anything don't work look with "tcpdump -i vmbr0 host 81.196.124.114" on the host.

Udo
 
Hi,Udo! It's working now :D. I created a bridge with my eth1 , and on bridge i puted the 1st ip from subnet and on kvm i used one of subnet ip and i selected the e1000 nic. Can i use e1000 nic on freebsd? Or what nic you recomand me? Thank you a lot, u saved my pocket to spend on another router :D
 

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!