Network configuration

beneschmitz

New Member
Jun 14, 2012
7
0
1
Berlin, Germany
Hey guys!

I recently installed the newest Proxmox Version on Debian Squeeze at home to use it on the local network. It worked fine until I tried to create a VM. I noticed I haven't set any vmbr0 settings yet so I saved it via the webinterface. Regarding to the new settings, I lost my network connection and I wasn't able to connect to the internet.

My current /etc/network/interfaces (i deleted the old file because of the connection lost)
Code:
auto loiface lo inet loopback


auto eth0

Right now I'm able to access the internet and also localhost (404 error). The proxmox interface and my local IP doesnt work in my browser (192.168.0.2:8006 worked fine before).

Host-IP: 192.168.0.2
Subnetzwork: 255.255.255.0
Gateway: 192.168.0.1

Any ideas?

Best regards,
Benedikt
 
If you have only eth0 and you want vmbr0 use it (should be default setting after clean install!), you should have:
cat more /etc/network/interfaces
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
bridge_ports eth0
bridge_stp off
bridge_fd 0


reboot and try to connect again.
 
Hi,

thanks! But it doesnt work. I changed it to your version, and now GDE3 says again "No network connection".
Do you need any additional information then?


Thanks for your help,
Benedikt
 
Do you have more then one network card in your computer? If so, your connection could be setup on one of the other ports.
 
Hi,

its the only one.

Code:
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge00:02.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (ext gfx port 0)
00:0a.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 5)
00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [IDE mode]
00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:12.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:13.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3c)
00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:14.5 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
01:00.0 VGA compatible controller: nVidia Corporation G96 [GeForce 9500 GT] (rev a1)
[B]02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)[/B]
03:07.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev c0)
 
Well in that case i would try to bring up the network card itself before worrying about the vmbr0 bridge.

You may want to try giving eth0 a static address and then trying to ping it. Remember to reboot after you save the configuration.
Code:
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet static
 address 192.168.0.2
 netmask 255.255.255.0
 gateway 192.168.0.1

You may also want to check and make sure nothing else on your network has taken that IP address.

Hope this helps point you in the right direction somewhat.
 
Hi,

this also doesnt work. I'll post my ifconfig for both /etc/network/interfaces.

This does work:

/etc/network/interfaces


Code:
auto lo
iface lo inet loopback


auto eth0
ifconfig
Code:
eth0      Link encap:Ethernet  Hardware Adresse 00:19:66:cc:91:89            inet Adresse:192.168.0.2  Bcast:192.168.0.255  Maske:255.255.255.0
          inet6-Adresse: fe80::219:66ff:fecc:9189/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:167 errors:0 dropped:0 overruns:0 frame:0
          TX packets:187 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000 
          RX bytes:70012 (68.3 KiB)  TX bytes:22821 (22.2 KiB)
          Interrupt:26 Basisadresse:0xe000 


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)

This doesnt work:

/etc/network/interfaces


Code:
auto lo
iface lo inet loopback


iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1

ifconfig

Code:
eth0      Link encap:Ethernet  Hardware Adresse 00:19:66:cc:91:89            inet Adresse:192.168.0.2  Bcast:192.168.0.255  Maske:255.255.255.0
          inet6-Adresse: fe80::219:66ff:fecc:9189/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:111 errors:0 dropped:0 overruns:0 frame:0
          TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000 
          RX bytes:11364 (11.0 KiB)  TX bytes:11718 (11.4 KiB)
          Interrupt:26 Basisadresse:0x2000 


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:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0 
          RX bytes:560 (560.0 B)  TX bytes:560 (560.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)

Can you see any differences?

Thanks for your help so far!
 
Last edited:
Not in the configuration for the port. They both look the same. Getting the same address, etc.

Maybe try adding the "auto eth0" to it.
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
  address 192.168.0.2
  netmask 255.255.255.0
  gateway 192.168.0.1

Are you sure your gateway is 192.168.0.1? You can also use the "route" command to see what's being set for the gateway. Here's mine below.
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.1.0.0        *               255.255.255.0   U     0      0        0 bond1
192.168.0.0     *               255.255.0.0     U     0      0        0 vmbr0
[B]default         192.168.1.254   0.0.0.0         UG    0      0        0 vmbr0[/B]
 
Hi,

yeah, 192.168.0.1 actually is my gateway:

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     1      0        0 eth0
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0

Maybe try adding the "auto eth0" to it.

Tried and failed once again..

Thanks,
 
Hi,

this also doesnt work. I'll post my ifconfig for both /etc/network/interfaces.

This does work:

/etc/network/interfaces


Code:
auto lo
iface lo inet loopback


auto eth0
ifconfig
Code:
eth0      Link encap:Ethernet  Hardware Adresse 00:19:66:cc:91:89            inet Adresse:192.168.0.2  Bcast:192.168.0.255  Maske:255.255.255.0
          inet6-Adresse: fe80::219:66ff:fecc:9189/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:167 errors:0 dropped:0 overruns:0 frame:0
          TX packets:187 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000 
          RX bytes:70012 (68.3 KiB)  TX bytes:22821 (22.2 KiB)
          Interrupt:26 Basisadresse:0xe000 


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)

This doesnt work:

/etc/network/interfaces


Code:
auto lo
iface lo inet loopback


iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1

ifconfig

Code:
eth0      Link encap:Ethernet  Hardware Adresse 00:19:66:cc:91:89            inet Adresse:192.168.0.2  Bcast:192.168.0.255  Maske:255.255.255.0
          inet6-Adresse: fe80::219:66ff:fecc:9189/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:111 errors:0 dropped:0 overruns:0 frame:0
          TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000 
          RX bytes:11364 (11.0 KiB)  TX bytes:11718 (11.4 KiB)
          Interrupt:26 Basisadresse:0x2000 


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:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0 
          RX bytes:560 (560.0 B)  TX bytes:560 (560.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)

Can you see any differences?

Thanks for your help so far!
Hi Benedikt,
I'm right, that you use dhcp in the working example?
In this case the different is the missing nameserver entry in /etc/resolv.conf.

In the "doesn't work"-example the network device transmit and receive packets - so something must work.

Use a brigde (vmbr0) like mentioned before, control the content of /etc/resolv.conf and /etc/hosts and if there errors, use tcpdump to find the issue.

Udo
 
Hi,

this is strange - very strange. It does work now, but if I reboot, it doesnt. I used /etc/init.d/networking stop + start to achieve this.

My current /etc/interfaces/:
Code:
[COLOR=#333333]# network interface settings[/COLOR]
[COLOR=#333333]auto lo[/COLOR]
[COLOR=#333333]iface lo inet loopback[/COLOR]

[COLOR=#333333]iface eth0 inet manual[/COLOR]

[COLOR=#333333]auto vmbr0[/COLOR]
[COLOR=#333333]iface vmbr0 inet static[/COLOR]
[COLOR=#333333]address 192.168.0.2[/COLOR]
[COLOR=#333333]netmask 255.255.255.0[/COLOR]
[COLOR=#333333]gateway 192.168.0.1[/COLOR]
[COLOR=#333333]bridge_ports eth0[/COLOR]
[COLOR=#333333]bridge_stp off[/COLOR]
[COLOR=#333333]bridge_fd 0[/COLOR]

nameservers (by default):
Code:
Generated by NetworkManagernameserver 192.168.0.1

ifconfig
Code:
eth0      Link encap:Ethernet  Hardware Adresse 00:19:66:cc:91:89  
          inet6-Adresse: fe80::219:66ff:fecc:9189/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:666705 errors:0 dropped:0 overruns:0 frame:0
          TX packets:382691 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000 
          RX bytes:933529544 (890.2 MiB)  TX bytes:34958583 (33.3 MiB)
          Interrupt:26 Basisadresse:0x2000 


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:787 errors:0 dropped:0 overruns:0 frame:0
          TX packets:787 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0 
          RX bytes:665014 (649.4 KiB)  TX bytes:665014 (649.4 KiB)


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 00:19:66:cc:91:89  
          inet Adresse:192.168.0.2  Bcast:192.168.0.255  Maske:255.255.255.0
          inet6-Adresse: fe80::219:66ff:fecc:9189/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:1109 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1212 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0 
          RX bytes:454935 (444.2 KiB)  TX bytes:210871 (205.9 KiB)

Thank you so much for your help! I'll reboot soon and test whether it'll stop working or not.
 
Hi,

this is strange - very strange. It does work now, but if I reboot, it doesnt. I used /etc/init.d/networking stop + start to achieve this.

...
nameservers (by default):
Code:
Generated by NetworkManagernameserver 192.168.0.1

...

Thank you so much for your help! I'll reboot soon and test whether it'll stop working or not.

Hi,
this belongs to networkmanager - this software set the nameserver entry during dhcp and after reboot the entry "nameserver 192.168.0.1" is missing (because fixed ip-address without dhcp).

On an normal pve-installation there is no networkmanager - perhaps you should deinstall this packet.

Udo
 

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!