Mój plik /etc/network/interfaces wygląda tak:
Kod: Zaznacz cały
auto lo
iface lo inet loopback
iface eth1 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
iface eth0 inet dhcp
hwaddress ether 00:30:4F:41:8E:DC
auto eth1
auto eth0
Kod: Zaznacz cały
root@Serwer:/home/jedwab# /etc/init.d/networking restart
* Reconfiguring network interfaces... RTNETLINK answers: No such process
There is already a pid file /var/run/dhclient.eth0.pid with pid 134519120
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:50:8D:EB:93:31
Sending on LPF/eth0/00:50:8D:EB:93:31
Sending on Socket/fallback
DHCPRELEASE on eth0 to 172.22.51.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
SIOCSIFHWADDR: Device or resource busy
Failed to bring up eth0.
[ OK ]
Kod: Zaznacz cały
root@Serwer:/home/jedwab# ifconfig eth0 down
root@Serwer:/home/jedwab# ifconfig eth0 hw ether 00:30:4F:41:8E:DC
root@Serwer:/home/jedwab# ifconfig eth0 up
root@Serwer:/home/jedwab# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:30:4F:41:8E:DC
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18 Base address:0x8000
Kod: Zaznacz cały
root@Serwer:/home/jedwab# ifconfig eth0 down
root@Serwer:/home/jedwab# ifconfig eth0 hw ether 00:30:4F:41:8E:DC
root@Serwer:/home/jedwab# ifconfig eth0 up

Powiedzcie proszę gdzie leży problem bo szukam i szukam i znaleźć nie mogę

I jeszcze jedno małe pytanie. Jest jakaś różnica pomiędzy:
Kod: Zaznacz cały
root@Serwer:/home/jedwab# ifconfig eth0 down
Kod: Zaznacz cały
root@Serwer:/home/jedwab# ifdown eth0
