Ifconfig --a vide

bonjour,
Je galère avec un problème de configuration réseau suite à l’installation (enfin la tentative) de ocsinventory. Je n’ai pas un top niveau en linux donc peut être qu’il s’agit d’un truc tout bête.
Je travaille sous virtualbox avec un debian 7.1 et je suis relié à un serveur 2008 sous virtualbox qui me fourni l’accès à internet.
après avoir renseigné dans /etc/network/interfaces ainsi:
(2 lignes de commentaires)
#the loopback network interface
auto lo
iface lo inet loopback

#the primary network interface
allow-hotplug eth0
iface eth0 inet static
auto eth0
address 192.168.1.110
netmask 255.255.255.0
gateway 192.168.1.100
dns-nameservers 192.168.1.100 (j’ai tenté en mettant la ligne en commentaire)
dns-search monlabo.local (j’ai tenté en mettant la ligne en commentaire)

#this is an autoconfigured IPv6 interface
iface eth0
inet6 auto

cela a fonctionné jusqu’au redémarrage après mes essais de ocs (infructueux :013 ).
-Depuis plus d’internet car plus de réseau.
-ifconfig ne marche plus. (me renvoi à la ligne sans rien inscrire)
-ifconfig -a m’ouvre la liste classique mais tout est à 0.
-un ifup eth0 ou ifdown eth0 et ifup lo ou ifdown lo me met : "etc/network/interfaces:12: misplaced option ifdown couldn’t read intefaces file /etc/network/interfaces
-un /etc/init.d/networking restart me met: “is deprecated because it may not enable some interfaces…”
-je précise que je suis en root et qu’un ls -lah /etc/network/interfaces me donne: “-rw-r–r--1 root root”
et un cat /etc/resolv.conf me donne:
“domain monlabo.local
search monlabo.local
nameserver 192.168.1.100”

Je ne sais plus trop que penser de tout ça. je tourne en rond et je n’ai rien pu trouver sur le net pour m’éclairer.
J’espère que ça parlera à quelqu’un par ici. Ca serait formidable !! :023

bonjour,
je n’ai pas d’IPV6,
un exemple, ma config

root@alpha30:~# pg /etc/network/interfaces
# 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

auto eth0
iface eth0 inet static

	address		192.168.1.30
	netmask		255.255.255.0
	broadcast	192.168.1.255
	gateway		192.168.1.1


auto eth1
iface eth1 inet static

	address		10.0.0.30
	netmask		255.255.255.0
	broadcast	10.0.0.255
#	brodcast	192.168.1.255
#	gateway		192.168.1.1

(EOF):

attention EOF vient du pg
architecture passerelle
A+
JB1
:033

T’es sûr de ça ?

#this is an autoconfigured IPv6 interface
iface eth0
inet6 auto

Un lien pour le wiki Debian : https://wiki.debian.org/DebianIPv6

Je n’ai pas tout compris , faut me faire un dessin …

Si je comprends bien, une machine virtuelle sous debian fait reposer sa connexion au réseau sur une autre machine virtuelle sous Microsoft ?
Où se trouve la machine virtuelle sous Microsoft par rapport à la machine virtuelle sous debian ? Sur la même machine ? Sur le réseau voisin ? Quelle route ?

Quel est le mode sélectionné sur les deux machines virtuelles ? NAT ? Not attached ? Bridge ? …

virtualbox.org/manual/ch06. … rkingmodes

[quote]
6.2. Introduction to networking modes

Each of the eight networking adapters can be separately configured to operate in one of the following modes:

Not attached

In this mode, VirtualBox reports to the guest that a network card is present, but that there is no connection -- as if no Ethernet cable was plugged into the card. This way it is possible to "pull" the virtual Ethernet cable and disrupt the connection, which can be useful to inform a guest operating system that no network connection is available and enforce a reconfiguration.

Network Address Translation (NAT)

If all you want is to browse the Web, download files and view e-mail inside the guest, then this default mode should be sufficient for you, and you can safely skip the rest of this section. Please note that there are certain limitations when using Windows file sharing (see Section 6.3.3, “NAT limitations” for details).

Bridged networking

This is for more advanced networking needs such as network simulations and running servers in a guest. When enabled, VirtualBox connects to one of your installed network cards and exchanges network packets directly, circumventing your host operating system's network stack.

Internal networking

This can be used to create a different kind of software-based network which is visible to selected virtual machines, but not to applications running on the host or to the outside world.

Host-only networking

This can be used to create a network containing the host and a set of virtual machines, without the need for the host's physical network interface. Instead, a virtual network interface (similar to a loopback interface) is created on the host, providing connectivity among virtual machines and the host.

Generic networking

Rarely used modes share the same generic network interface, by allowing the user to select a driver which can be included with VirtualBox or be distributed in an extension pack.

At the moment there are potentially two available sub-modes:

UDP Tunnel

    This can be used to interconnect virtual machines running on different hosts directly, easily and transparently, over existing network infrastructure.
VDE (Virtual Distributed Ethernet) networking

    This option can be used to connect to a Virtual Distributed Ethernet switch on a Linux or a FreeBSD host. At the moment this needs compiling VirtualBox from sources, as the Oracle packages do not include it.[/quote]

Ne pas confondre «NotATtached» et NAT , «Network Address Translation».
Quelle est la carte réseau virtuelle ?
La commande $ lspci fait-elle apparaître une carte ?
Quels sont les réglages généraux de virtualbox chez la machine virtuelle sous Microsoft ? Serveur DHCP ?

Bonjour,
merci pour vos réponses.
Pour éclaircir la situation j’ai un win 7 avec virtualbox. J’ai 2 machines virtuelles sous ce win7.Un server 2008 qui fournit un nom de domaine et est relié à internet via ma box en mode bridge. Et un debian en bridge qui va me servir de serveur ocsinventory entre autre et qui sera accessible pour les machines windows 7 connectées sur le même domaine du server 2008. Donc j’ai intégré debian au domaine ou du moins je pense l’avoir fait correctement d’autant plus que ça a marché la première fois.
C’est le fait qu’avant ça ai marché qui me déconcerte car à part installer ocs et créer des tables sql
pour les utilisateurs et mot de passe c’est tout ce que j’ai fait.
Je vais regarder si ça marche si je me connecte en direct sur ma box, déjà pour éliminer d’éventuels problèmes de réseau avec mon server 2008 et je vous redis.

Bonjour,
bon j’ai fait un ou 2 tests complémentaires.

J’ai modifié le /etc/network/interfaces en inversant les lignes auto eth0 et iface…
Ca a l’air de mieux marcher au niveau de eth0. ifconfig me marque bien tout sauf… lo qui n’y est pas. Du coup je ping mon server 2008 et inversement mais je n’ai pas acccès à internet.
Pourtant nslookup marche sur w2008 (en local donc) et sur www.google.fr

Par contre ce qui est intéressant c’est que lorsque je change dans /etc/network/interfaces la passerelle w2008 pour ma box ca marche j’ai internet.(à part lo dans ifconfig qui est encore absent.)

Qu’est ce qui ne tourne pas rond?
Est ce qu’on peut restaurer les paramètres de loopback? Si le problème vient de là.

Merci

Re
je viens de retrouver dans ifconfig le lo en faisant ifconfig lo. maintenant dans ifconfig il y a les 2. mais toujours pas de connnexion internet via le server en passerelle.
si quelqu’un a des idées je suis preneur car là je suis à 2 doigts de réinstaller le système.

Merci d’avance