Need help at Network configuation of VM's with ten ip's

Robin4711

New Member
Apr 21, 2015
13
0
1
Hello,

i have ten ip's from provider like that:

100.200.80.100
..
..
100.200.80.109

proxmox have the first ip (100.200.80.100) and i will set the second ip (100.200.80.101) to a FreeBSD VM, so that it is reached from outside and has acces to the internet.
I have try everything i found on the web but nothing works maybe because it's not explained detail enough.

What i have to write in the /etc/network/interfaces of the host?
Which Network settings at proxmox for the VM?
Which Network settings on FreeBSD on the VM?

I hope you can help me, and im sorry for my bad english!

regards,
Robin
 
Last edited:
Create a bridge (vmbr0) and attack eth0 to it. Set up 100.200.80.100 on it. Add VM NIC to vmbr0 and set 100.200.80.109 IP address in VM. Nothing more.
 
Tanks for your reply!
How does the interfaces of the host looks like then?
Can you give me an example?

Thats my interface: (how can i post as code?)
auto eth0
iface eth0 inet static
address 100.200.80.100
netmask 255.255.255.0
gateway 100.200.80.1
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

auto vmbr0
iface vmbr0 inet manual
bridge_stp off
bridge_fd 0
 
Last edited:
Tanks for your reply!
How does the interfaces of the host looks like then?
Can you give me an example?

Thats my interface: (how can i post as code?)
auto eth0
iface eth0 inet static
address 100.200.80.100
netmask 255.255.255.0
gateway 100.200.80.1
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

auto vmbr0
iface vmbr0 inet manual
bridge_stp off
bridge_fd 0
Your host address should go on vmbr0 and eth0 should be a bridge member of vmbr0
 
Code:
auto eth0
iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
    address  100.200.80.100
    netmask  255.255.255.0
    gateway  100.200.80.1
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
    post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
 
Ok, Thank you!
So i set the ip at FreeBSD to 100.200.80.101 and netmask to 255.255.255.0, right?
Whats with gateway and which ethernet controller?
 
Ok, so gateway is 100.200.80.1.
And can i use the Realtek ethernet controller?

Have the interfaces looks like that:

auto eth0
iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
address 100.200.80.100
netmask 255.255.255.0
gateway 100.200.80.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

or have i write
auto lo
iface lo inet loopback

over it?
 
Last edited:
Ok! My last question:

have i write
auto lo
iface lo inet loopback

over your example?
I thank u very much fo your help :)
 
It doesnt work...

My interfaces:
PHP:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
    address  100.200.48.100
    netmask  255.255.255.0
    gateway  100.200.48.1
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
    post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

my rc.conf in FeeBSD:
PHP:
ifconfig_re0="inet 100.200.48.101 netmask 255.255.255.0"
defaultrouter="100.200.48.1"

should i have activate DHCP on FreeBSD?
 
Last edited:
€dit: i have put STP to on and it works! I have acces from outside. But the vm itself has no connection outside?
The command: ntpdate -s pool.ntp.org gives back: hostname nor servername provided, or not known

PHP:
bridgename:
vmbr0

bridge id:
8000.a02bb81f72a4

STP enabled:
no

interfaces:
eth0
tap100i0
 
Last edited:
i have put STP to on and it works! I have acces from outside. But the vm itself has no connection outside?
The command: ntpdate -s pool.ntp.org gives back: hostname nor servername provided, or not known.
The VM can ping the host at 100.200.48.100 and the host can ping the VM at 100.200.48.101

The ip's are differents in real.
 
Last edited:
Ping 8.8.8.8 works.

My /etc/resolv.conf:

PHP:
domain localhost
nameserver 100.200.48.1
 
Last edited:
ping 8.8.8.8 works from host and VM ? If yes then change nameserver to 8.8.8.8 to solve DNS problem. Or maybe it block something else like firewall.
 

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!