auto eth0
iface eth0 inet dhcp
veikkaan, että ollaan lähellä, jos lisäät nämä
/etc/network/interfaces
-tiedostoon
sudo nano /etc/network/interfaces
<ctrl>-X ja yes (tallenna)
senjälkeen
sudo /etc/init.d/networking restart
ja..
sudo ifconfig
näillä tuli:
taneli@taneli-laptop:~$ auto eth0
No command 'auto' found, did you mean:
Command 'uuto' from package 'uucp' (universe)
Command 'outo' from package 'outo' (universe)
auto: command not found
taneli@taneli-laptop:~$ iface eth0 inet dhcp
iface: command not found
taneli@taneli-laptop:~$ sudo nano /etc/network/interfaces
taneli@taneli-laptop:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... [ OK ]
taneli@taneli-laptop:~$ sudo iconfig
sudo: iconfig: command not found
taneli@taneli-laptop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:c0:9f:c2:fd:79
inet6 addr: fe80::2c0:9fff:fec2:fd79/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4150 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:674051 (674.0 KB) TX bytes:468 (468.0 B)
Interrupt:20 Base address:0x5000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
taneli@taneli-laptop:~$