Problem with ( NETWORK ) ~ adding IP's For VM (windows) OS

  • Thread starter Thread starter l3zr
  • Start date Start date
L

l3zr

Guest
Hi ..

In MY NODE THE ( CT ) ( LINUX )
IS WORKING 100% .. AND NO ANY ISSUE
..
BUT IN (VM) (WINDOWS , ETC)
IT RUNNING GOOD BUT THERE ARE PROBLEM IN NETWORK SO THE vm CAN NOT PING ( NO INTERNET ACCESS )
I USED ( WINDOWS SERVER 2008 R2 enterprise ) ..
ANY ONE ? CAN HELP ME FOR FIX THIS ?
MY DATA CENTER NODE IS hentzer (de) ,

I HAVE 24 IP'S ADDITIONAL ,
THE MAIN IP :

IP :

[TABLE="class: ip_list"]
[TR]
[TD][/TD]
[TD] 5.9.70.194
[/TD]
[TD="class: element"]
[/TD]
[/TR]
[/TABLE]


AND MY (
/etc/network/interfaces )

# network interface settings
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 5.9.70.194
netmask 255.255.255.224
gateway 5.9.70.193
broadcast 5.9.70.223
post-up iptables-restore < /etc/iptables.up.rules
pointopoint 5.9.70.223

auto vmbr0
iface vmbr0 inet static
address 5.9.185.144
netmask 255.255.255.240
gateway 5.9.70.194
bridge_ports none
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address 5.9.185.145
netmask 255.255.0.0
bridge_ports none
bridge_stp off
bridge_fd 0


please any one who know how to solve/fix this issue .. till me here
sorry for my bad english
 
i did change it to ( 255.255.255.240 )
but the Same problem ..
no Internet in VM ( windows OS) and can't ping
 
i did change it to ( 255.255.255.240 )
but the Same problem ..
no Internet in VM ( windows OS) and can't ping
Hi,
and how came the packets from eth0/vmbr0 to vmbr1?? Is this done by iptable.up.rules?

Look with tcpdump what happens if you ping your VM like
Code:
tcpdump -i eth0 host ip.of.win.vm
tcpdump -i vmbr1 host ip.of.win.vm
I guess you don't see any incomming traffic on vmbr1?! Look also with "ifconfig vmbr1".

This is why Dietmar wrote "Why do you create vmbr1 at all?".

Udo
 
,, I only want to know how can i write the correct ( /etc/network/interfaces )
and how can i add ( IP ) for VM ( windows OS 2008r2 )
my Subnets:
5.9.185.144 / 28
and my main IP
:
[TABLE="class: cms_table_ip_list"]
[TR]
[TD] 5.9.70.194 [/TD]
[TD="class: cms_table_element"][/TD]
[/TR]
[/TABLE]
 
,, I only want to know how can i write the correct ( /etc/network/interfaces )
and how can i add ( IP ) for VM ( windows OS 2008r2 )
my Subnets:
5.9.185.144 / 28
and my main IP :
[TABLE="class: cms_table_ip_list"]
[TR]
[TD] 5.9.70.194[/TD]
[TD="class: cms_table_element"][/TD]
[/TR]
[/TABLE]
Hi,
this depends on your hoster - how does the network are used.
Simply two networks on one port? Routing via main IP? Must all packets came from the main-IP (NAT)?

Ask your hoster, and/or use the search function of this forum (also pve1.x). There are some examples for hetzner.

Udo
 
ammmm ... i did not understand In fact ..

my data center is : ( hetzner )
... i just want add ip for my Vm no more .. Ithink this is too easy .. why it is complicated ?
 
[h=1]dietmar
user-offline.png
[/h]please hellp me !!!
 
It seems your extra IPs are on a different subnet to the main, something common with Hetzner. If you have setup your main IP correctly and have internet access on it, try something like:

up ip route add 5.9.185.144/28 via 5.9.185.xxx dev eth0

at the end of your /etc/network/interfaces file. Replace .xxx with the gateway address of your extra ips and eth0 with whatever address your main server is using.
 
so it will be :

# network interface settings
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 5.9.70.194
netmask 255.255.255.224
gateway 5.9.70.193
broadcast 5.9.70.223
post-up iptables-restore < /etc/iptables.up.rules
pointopoint 5.9.70.223

auto vmbr0
iface vmbr0 inet static
address 5.9.185.144
netmask 255.255.255.240
gateway 5.9.70.194
bridge_ports none
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address 5.9.185.145
netmask 255.255.0.0
bridge_ports none
bridge_stp off
bridge_fd 0

up ip route add 5.9.185.144/28 via 5.9.185.xxx dev eth0
 

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!