Configure Network-Bridge

astrakid

Renowned Member
Jun 13, 2013
76
1
73
Hi,
I have some problems configuring my VMs to access them from my internal LAN.
my network: 192.168.9.0
my router and dhcp-server: 192.168.9.2
my server hosting VMs (proxmox): 192.168.9.1

in proxmox i have configured eth0 with 192.168.9.1, gateway 192.168.9.2, vmbr0 with ip 192.168.9.20. both are active.

after setting up a new VM i configured its network to be in bridged mode. via console i configured /etc/network/interfaces to:
auto eth0
address 192.168.9.21
netmask 255.255.255.0
gateway 192.168.9.2
dns-nameservers 192.168.9.2

when booting this vm, it receives an ip address 192.168.9.103. but i am not able to access the server from any pc on my network (only via console of proxmox).

can some one give me a hint? why is dhcp obviously active on this vm? what do i have to configure to be able to access my vm from any pc on my local network?

kind regards,
astrakid
 
Hi !

Why you set eth0 with 192.168.9.1 (Proxmox IP) *and* a vmbr with IP (192.168.9.20) ?
If you use eth0 for Proxmox, can use vmbr linked to eth1 without IP or a unique vmbr0 linked to eth0 with a single IP.

I suppose an error in network configuration on (Unix) VM

Luca
 
Hi !
If you use eth0 for Proxmox, can use vmbr linked to eth1 without IP or a unique vmbr0 linked to eth0 with a single IP.
Luca

i understand:
configure server eth0 with 192.168.9.1 and link vmbr to eth1 or
link vmbr0 to eth0 with eth0's ip 192.168.9.1, vmbr0 without ip-address?

will try it...

kind regards,
astrakid
 
i understand:
configure server eth0 with 192.168.9.1 and link vmbr to eth1 or
link vmbr0 to eth0 with eth0's ip 192.168.9.1, vmbr0 without ip-address?

will try it...

kind regards,
astrakid

ETH0 -> IP (console)
ETH1 -> VMBR0 (without IP)

OR

ETH0 -> VMBR0 (with IP)

OR

ETH0 && ETH1 -> BOND0 (set as fault tollerance, for example)
BOND0 -> VMBR0 (with IP)

Luca
 
hi,
it is not working...
this is my network-config (proxmox-server):

# network interface settingsauto lo
iface lo inet loopback


auto eth0
iface eth0 inet static
address 192.168.2.1
netmask 255.255.255.0
gateway 192.168.2.2


auto vmbr0
iface vmbr0 inet manual
bridge_ports eth1
bridge_stp off
bridge_fd 0


auto eth1
iface eth1 inet static

but ifconfig shows:

root@server:~# ifconfigeth0 Link encap:Ethernet Hardware Adresse d4:3d:7e:54:01:a4
inet Adresse:192.168.9.1 Bcast:192.168.9.255 Maske:255.255.255.0
inet6-Adresse: fe80::d63d:7eff:fe54:1a4/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:3320 errors:0 dropped:0 overruns:0 frame:0
TX packets:2640 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:802362 (783.5 KiB) TX bytes:2100027 (2.0 MiB)
Interrupt:27 Basisadresse:0x8000


lo Link encap:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:16436 Metrik:1
RX packets:964 errors:0 dropped:0 overruns:0 frame:0
TX packets:964 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:646883 (631.7 KiB) TX bytes:646883 (631.7 KiB)


tap101i0 Link encap:Ethernet Hardware Adresse 56:2d:3b:0b:a5:b8
inet6-Adresse: fe80::542d:3bff:fe0b:a5b8/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metrik:1
RX packets:139 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:500
RX bytes:9774 (9.5 KiB) TX bytes:864 (864.0 B)


venet0 Link encap:UNSPEC Hardware Adresse 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6-Adresse: fe80::1/128 Gültigkeitsbereich:Verbindung
UP BROADCAST PUNKTZUPUNKT RUNNING NOARP MTU:1500 Metrik:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:3 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


vmbr0 Link encap:Ethernet Hardware Adresse 56:2d:3b:0b:a5:b8
inet6-Adresse: fe80::ec76:65ff:fea1:da43/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:137 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:7676 (7.4 KiB) TX bytes:468 (468.0 B)

my vm gets 192.168.9.21, but is not reachable (neither from the proxmox-server, nor from other pcs inside my lan).

what is wrong?

edit: question regarding "ETH0 -> VMBR0 (with IP)": in this case either eth0 or vmbr0 gets an ip-address, or both? in case that only vmbr0 gets an ip-address, i won't be able to access my proxmox-management-gui, right?

regards,
astrakid
 
Last edited:
hi,
it is not working...
this is my network-config (proxmox-server):



but ifconfig shows:



my vm gets 192.168.9.21, but is not reachable (neither from the proxmox-server, nor from other pcs inside my lan).

what is wrong?



regards,
astrakid

I think the VM network configuration.
Proxmox can use the net ? (apt-get update works ?)
Try to set a static configuration on VM

Luca
 
hi,
i got it working.
i followed another tutorial from the web, and that was quite straight forward. my problem was, that bridging worked, but then i couldn't access my proxmox-physical-server anmore by network. the vm was accessible.
the tutorial helped me:
eth0 is not configured, only the bridge:

auto vmbr0
iface vmbr0 inet static
address 192.168.9.1
broadcast 192.168.9.255
gateway 192.168.9.2
bridge_ports eth0
bridge_stp off
bridge_fd 9
bridge_hello 2
bridge_maxage 12

that works fine!

regards,
andre
 

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!