User Tools

Site Tools


admin:tp1

This is an old revision of the document!


TP1

Version traditionnelle

Lancez le réseau virtuel avec QEMU. Entrez le login root, il n'a pas de password.

Pour configurer deux machines dans le réseau local 192.168.0.0/24 :

immortal$ ifconfig -a
immortal$ ifconfig eth0 192.168.0.1/24
immortal$ ifconfig eth0 192.168.0.1 netmask 255.255.255.0    # même chose
opeth$ ifconfig eth0 192.168.0.2/24
opeth$ ping 192.168.0.1

Avec le fichier de configuration /etc/network/interfaces :

/etc/network/interfaces
# loopback
auto lo
iface lo inet loopback
 
# interface eth0
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0

On recharge la configuration :

$ /etc/init.d/networking restart

Enjoy !

Nouvelle Version (commande ip)

admin/tp1.1579770403.txt.gz · Last modified: 2024/03/18 15:04 (external edit)