Pour que mes machines virtuelles qemu fassent partie intégrante du réseau local comme une machine physique ordinaire, il a fallu créer sur la machine hôte un bridge br0 et une interface tap0 que la machine virtuelle utilisera. Depuis très longtemps, sur ma slackware hôte, j'ai un script /etc/rc.d/rc.inet1 perso qui fait l'affaire pour mettre en place ce réseau.
Mais depuis hier j'ai envie d'utiliser au maximum les outils slackware et donc /etc/rc.d/rc.inet1 original et son fichier de conf. Mon bridge est bien présent, j'ai pensé à mettre PROMISCUOUS[0]="yes" mais malgré tout la machine qemu n'a pas de réseau. Savez-vous ce que je dois faire ?
Voici mon rc.inet1.conf :
Code : Tout sélectionner
# IPv4 config options for eth0:
IPADDRS[0]=""
USE_DHCP[0]=""
# IPv6 config options for eth0:
IP6ADDRS[0]=""
USE_SLAAC[0]=""
USE_DHCP6[0]=""
# Generic options for eth0:
DHCP_HOSTNAME[0]=""
# IPv4 config options for eth1:
IPADDRS[1]=""
USE_DHCP[1]=""
# IPv6 config options for eth1:
IP6ADDRS[1]=""
USE_SLAAC[1]=""
USE_DHCP6[1]=""
# Generic options for eth1:
DHCP_HOSTNAME[1]=""
# IPv4 config options for eth2:
IPADDRS[2]=""
USE_DHCP[2]=""
# IPv6 config options for eth2:
IP6ADDRS[2]=""
USE_SLAAC[2]=""
USE_DHCP6[2]=""
# Generic options for eth2:
DHCP_HOSTNAME[2]=""
# IPv4 config options for eth3:
IPADDRS[3]=""
USE_DHCP[3]=""
# IPv6 config options for eth3:
IP6ADDRS[3]=""
USE_SLAAC[3]=""
USE_DHCP6[3]=""
# Generic options for eth3:
DHCP_HOSTNAME[3]=""
# IPv4 default gateway IP address:
GATEWAY="192.168.1.254"
# IPv6 default gateway IP address:
GATEWAY6=""
# =============================================================================
# Example of how to configure a bridge:
# Note the added "BRNICS" variable which contains a space-separated list
# of the physical or virtual network interfaces you want to add to the bridge.
# IFOPTS is a pipe (|) delimited list of bridge module specific settings to be
# applied to the interface. See the ip-link(8) man page (search for "BRIDGE
# Type Support") for details of the options available. This option is not
# required for a standard bridge to be configured.
IFNAME[0]="br0"
BRNICS[0]="eth0"
#IFOPTS[0]=""
IPADDRS[0]="192.168.1.1"
#USE_DHCP[0]=""
USE_SLAAC[0]="yes"
#DHCP_HOSTNAME[0]=""
PROMISCUOUS[0]="yes"
# =============================================================================
# Virtual interfaces to create - these are created before any address
# configuration or bridge setup is done, so you may use these interfaces
# as IFNAME or BRNICS values. These can be tun or tap interfaces:
# adjust VIRTIFNAME and VIRTIFTYPE accordingly.
# Starting with VIRTIFNAME[0] is mandatory, and each next one must be
# incremented by one, so VIRTIFNAME[1], VIRTIFNAME[2], and so on.
# Virtual tap interface example
VIRTIFNAME[0]="tap0"
VIRTIFTYPE[0]="tap"
VIRTIFUSER[0]="kvm"
VIRTIFGROUP[0]="kvm"
# Virtual tun interface example
#VIRTIFNAME[1]="tun0"
#VIRTIFTYPE[1]="tun"
#VIRTIFUSER[1]="someuser"
#VIRTIFGROUP[1]="somegroup"
# =============================================================================
# Change this to "yes" for debugging output to syslog (if available, stdout if
# not).
DEBUG_ETH_UP="no"