Problem with Bridge Port (Beginner)

REtender

New Member
Jan 28, 2018
3
0
1
34
Hey there,

I installed Proxmox on my new dedicated Server, but I'm having problems with the bridging:

My dedicated maschine has the IP
xxx.xxx.xx.191

Interfaces configuration Host / dedicated:
Code:
auto lo
iface lo inet loopback

iface enp2s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address  xxx.xxx.xx.191
        netmask  255.255.255.0
        gateway  xxx.xxx.xx.1
        bridge_ports enp2s0
        bridge_stp off
        bridge_fd 0

Now I installed a VM with Debian 9.

Interfaces configuration VM:
Code:
allow-hotplug eth0

iface eth0 inet dhcp

with this configuration the VM has a connection (testing via apt-get update).

But when I'm trying to assign a IP to the VM it doesnt work:
VM Interface with assigned IP (doesnt work):
Code:
iface eth0 inet static
        address  xxx.xxx.xx.192
        netmask  255.255.255.0
        gateway  xxx.xxx.xx.1

Important information:
I did that on both the dedicated Host + the VM (to get back eth0):

Code:
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
grub-mkconfig -o /boot/grub/grub.cfg
reboot

When I'm changing bridge_ports enp2s0 to bridge_ports eth0, the Web Panel doesnt show up and I have to set it to enp2s0 again via KVM
 
Thanks for the reply!

It changed it on the VM, but it doesnt work :/

Full VM Interfaces:
Code:
auto lo
iface lo inet loopback

auto eth0

iface eth0 inet static
       address  xxx.xxx.xx.192
       netmask  255.255.255.0
       gateway  xxx.xxx.xx.1

ip a on the VM says:

Code:
1: lo [...]
2 eth0 [..]
   inet xxx.xxx.xx.192/24 brd xxx.xxx.xx255 scope global eth0
   [..]

Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group defaul                                                                                                                                                             t qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vm                                                                                                                                                             br0 state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:66 brd ff:ff:ff:ff:ff:ff
3: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP grou                                                                                                                                                             p default qlen 1000
    link/ether xx:xx:xx:xx:xx:66 brd ff:ff:ff:ff:ff:ff
    inet xxx.xxx.xx.191/24 brd xxx.xxx.xx.255 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 xxx::xxx:xxxx:xxxx:d366/64 scope link
       valid_lft forever preferred_lft forever
4: tap100i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast                                                                                                                                                              master vmbr0 state UNKNOWN group default qlen 1000
    link/ether xx:xx:xx:xx:xx:89 brd ff:ff:ff:ff:ff:ff
 
Edit: When i choose:
Code:
iface eth0 inet dhcp

ip a says:
Code:
inet 10.10.65.xxx
I'm really confused.

My IP Block starts with 109.

Does someone have a clue? :/
 

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!