- code:
nano /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
# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet dhcp
code:
/etc/init.d/networking restart
code:
ifconfig eth0
root@debian6 ~ > ifconfig eth0
eth0 Link encap:Ethernet Hardware Adresse 00:40:d0:xx:sa:cc
inet Adresse:192.168.2.199 Bcast:192.168.2.255 Maske:255.255.255.0
inet6-Adresse: fe80::240:d0ff:fe19:c3c8/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:15440 errors:0 dropped:0 overruns:0 frame:0
TX packets:8991 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:1135976 (1.0 MiB) TX bytes:796480 (777.8 KiB)
Interrupt:11 Basisadresse:0x1000
Code:
[COLOR=#000000][FONT=monospace]ping [IP.Adresse][/FONT][/COLOR]