Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

install kvm bridge at Deb 8.5 Jessie

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Legolas1309
Posts: 10
Joined: 2015-11-19 18:44

install kvm bridge at Deb 8.5 Jessie

#1 Post by Legolas1309 »

Trying to install KVM and run win applications in Deb8.5 I took this: https://www.howtoforge.com/virtualizati ... eze-server . Program installation runs fine, until bridge configuration with /etc/network/interfaces. As soon as I install the new (in howtoforge proposed) /etc/network/interfaces and restart the computer, eth1 is not seen anymore in ifconfig and connection to internet is broken.

Before installing the bridge, my /etc/network/interfaces looks like:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
Before installing the bridge, ifconfig looks like:
eth1 Link encap:Ethernet Hardware Adresse 00:13:3b:0e:11:6b
inet Adresse:192.168.2.100 Bcast:192.168.2.255 Maske:255.255.255.0
inet6-Adresse: 2003:c2:bbc3:2401:213:3bff:fe0e:116b/64 Gültigkeitsbereich:Global
inet6-Adresse: fe80::213:3bff:fe0e:116b/64 Gültigkeitsbereich:Verbindung
inet6-Adresse: 2003:c2:bbc3:2401:b029:25a7:92d2:64f6/64 Gültigkeitsbereich:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:3258 errors:0 dropped:0 overruns:0 frame:0
TX packets:3478 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:2083754 (1.9 MiB) TX bytes:484990 (473.6 KiB)

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:65536 Metrik:1
RX packets:158 errors:0 dropped:0 overruns:0 frame:0
TX packets:158 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:24854 (24.2 KiB) TX bytes:24854 (24.2 KiB)
After installing the bridge, my /etc/network/interfaces looks like (proposed by Falco in above mentioned link):
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#allow-hotplug eth0
#iface eth1 inet dhcp
auto eth1
iface eth1 inet manual
auto br0
iface br0 inet static
address 192.168.0.100
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
After installing the bridge, ifconfig looks like:
br0 Link encap:Ethernet Hardware Adresse 2a:77:fb:a9:7c:7e
inet Adresse:192.168.0.100 Bcast:192.168.0.255 Maske:255.255.255.0
inet6-Adresse: fe80::2877:fbff:fea9:7c7e/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:266 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:0 (0.0 B) TX bytes:18018 (17.5 KiB)

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:65536 Metrik:1
RX packets:532 errors:0 dropped:0 overruns:0 frame:0
TX packets:532 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:64722 (63.2 KiB) TX bytes:64722 (63.2 KiB)
Btw: My old network-circuit (eth0) , integrated on motherboard, was broken some years ago and I added a new network-circuit (eth2) . I disabled the broken eth0-circuit in BIOS.

Can anybody tell me how to install a kvm bridge and keep internet connection ? I am not very experienced in network stuff, since all was working automatically up to now. Thanks for support.

kopper
Posts: 138
Joined: 2016-09-30 14:30

Re: install kvm bridge at Deb 8.5 Jessie

#2 Post by kopper »

Are you using GUI network manager? Because before installatino you don't have eth1 defined in your /etc/network/interfaces, but in you post-bridge-installation configuration you have set it iface eth1 inet manual. I'm not really sure why you use manual. You should try auto if you have DHCP or static if you want to define static IP address for the interface.

If you configure your network interfaces in the /etc/network/interfaces or /etc/network/interfaces.d/*, GUI network managers may cause some problems with the setup.
...and I added a new network-circuit (eth2) ...
Eth1, right?

EDIT: A side-comment on random internet guides: It would be more beneficial to learn to go through the official documentation and resources, rather than spin-off guides. I don't say they can't be good, but e.g. libvirt is extensively documented and you should take an advantage of it. bridge-utils used in the guide is deprecated (though still functional if you want to use it). ip can be used for the same purpose.
Debian 10.2 Stable with i3
Secure your stuff: Securing Debian Manual
Don't break your stuff: Source List Management DontBreakDebian

Legolas1309
Posts: 10
Joined: 2015-11-19 18:44

Re: install kvm bridge at Deb 8.5 Jessie

#3 Post by Legolas1309 »

Hi kopper,
- Dont even know, what GUI network manager is :shock:
- You are right: eth1
- I didnot know, that bridge-utils is depricated :oops:
- "extensively documented": You answered my next question. :mrgreen: Where is the right information ?
- Homework accepted, I will dig into it. Thanks for your hints.

Post Reply