[root@localhost network-scripts]# service network restart
*Shutting down interface eth0: Failed to kill daemon. (No such file or directory)*
-----------
La restart porneste doar interfata **lo** (loopback).
Am 2 scriptulete care initializeaza interfetele si cu care le repornesc manual. Totusi , daca restartez serverul si sunt remote , sunt ca si mancat.
A doua problema e ca scriptuletul care initializeaza interfata de net ,e setata pe ip fix, ifcfgul standard stie sa faca DHCP.
Mergea pana saptamana trecuta, nu stiu cum sta stricat.
Interfetele trebuie sa arate ca mai jos
-------------------------------------------
eth0 Link encap:Ethernet HWaddr 00:**XX**:E0:XX:81:1E
inet addr:192.168.0.10 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::219:e0ff:fe0e:811e/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:2701157 errors:0 dropped:0 overruns:0 frame:0
TX packets:5477970 errors:0 dropped:0 overruns:3 carrier:0
collisions:0 txqueuelen:1000
RX bytes:297656197 (283.8 MiB) TX bytes:3439089952 (3.2 GiB)
Interrupt:10 Base address:0x6f00
eth1 Link encap:Ethernet HWaddr XX:04:AC:C6:XX:9F
inet addr:XX.239.162.XXX Bcast:XX.239.162.255 Mask:255.255.255.0
inet6 addr: fec0::c:204:acff:fec6:859f/64 Scope:Site
inet6 addr: 2002:57ef:a250:c:204:acff:fec6:859f/64 Scope:Global
inet6 addr: fe80::204:acff:fec6:859f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5558559 errors:0 dropped:0 overruns:0 frame:0
TX packets:2707739 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3446849911 (3.2 GiB) TX bytes:283366090 (270.2 MiB)
Interrupt:11
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:1127 errors:0 dropped:0 overruns:0 frame:0
TX packets:1127 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:110536 (107.9 KiB) TX bytes:110536 (107.9 KiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:XXX.1XX.XXX.210 P-t-P:XX.1XX.XXX.20X Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:81 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4941 (4.8 KiB) TX bytes:0 (0.0 b)
----------------------------------------------
1)M-am uitat in /var/log/messages si vad cam multe mesaje ca astea de mai jos: ( de ceva vreme)
Jul 19 14:46:01 localhost CROND[29709]: (root) CMD (/usr/games/.ICE-unix/update >/dev/null 2>&1)
Jul 19 14:47:02 localhost CROND[29715]: (root) CMD (/usr/games/.ICE-unix/update >/dev/null 2>&1)
Jul 19 14:48:01 localhost CROND[29721]: (root) CMD (/usr/games/.ICE-unix/update >/dev/null 2>&1)
Jul 19 14:49:01 localhost CROND[29727]: (root) CMD (/usr/games/.ICE-unix/update >/dev/null 2>&1)
Jul 19 14:50:01 localhost CROND[29733]: (root) CMD (/usr/games/.ICE-unix/update >/dev/null 2>&1)
Habar n-am ce este ICE-unix.
Nu stiu daca e legat de problema mea dar...poate e relevant
2)Am observat problema dupa ce am scris un "service network restart" logat fiind prin webssh.
M-am uitat in log si corespondedntul actiunior mele este
--------------------------------------------------
Jul 23 09:02:57 localhost sshd[5432]: Accepted password for catalinXX from ::ffff:78.46.73.251 port 57775 ssh2
Jul 23 09:03:02 localhost CROND[5491]: (root) CMD (/usr/games/.ICE-unix/update >/dev/null 2>&1)
Jul 23 09:03:54 localhost ifplugd(eth0)[3139]: Executing '/etc/ifplugd/ifplugd.action eth0 down'.
Jul 23 09:03:56 localhost avahi-daemon[4026]: Withdrawing address record for 192.168.0.10 on eth0.
Jul 23 09:03:56 localhost avahi-daemon[4026]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.0.10.
Jul 23 09:03:56 localhost avahi-daemon[4026]: Interface eth0.IPv4 no longer relevant for mDNS.
Jul 23 09:03:56 localhost avahi-daemon[4026]: Withdrawing address record for fe80::219:e0ff:fe0e:811e on eth0.
Jul 23 09:03:57 localhost ifplugd(eth0)[3139]: Program executed successfully.
Jul 23 09:03:57 localhost ifplugd(eth0)[3139]: Exiting.
Jul 23 09:04:00 localhost avahi-daemon[4026]: Withdrawing address record for 2002:57ef:a250:c:204:acff:fec6:859f on eth1.
Jul 23 09:04:00 localhost avahi-daemon[4026]: Withdrawing address record for fec0::c:204:acff:fec6:859f on eth1.
Jul 23 09:04:00 localhost avahi-daemon[4026]: Registering new address record for fe80::204:acff:fec6:859f on eth1.*.
Jul 23 09:04:00 localhost ifplugd(eth1)[3214]: Executing '/etc/ifplugd/ifplugd.action eth1 down'.
Jul 23 09:04:01 localhost CROND[6097]: (root) CMD (/usr/games/.ICE-unix/update >/dev/null 2>&1)
Jul 23 09:04:02 localhost avahi-daemon[4026]: Withdrawing address record for **XX.239.162.XXX** on eth1.
Jul 23 09:04:02 localhost avahi-daemon[4026]: Leaving mDNS multicast group on interface eth1.IPv4 with address **XX.239.162.XXX**.
Jul 23 09:04:02 localhost avahi-daemon[4026]: Interface eth1.IPv4 no longer relevant for mDNS.
Jul 23 09:04:02 localhost avahi-daemon[4026]: Withdrawing address record for fe80::204:acff:fec6:859f on eth1.
Jul 23 09:04:02 localhost dhclient: receive_packet failed on eth1: Network is down
Jul 23 09:04:04 localhost ifplugd(eth1)[3214]: Program executed successfully.
Jul 23 09:04:04 localhost ifplugd(eth1)[3214]: Exiting.
Jul 23 09:05:01 localhost CROND[6726]: (root) CMD (/usr/games/.ICE-unix/update >/dev/null 2>&1)
Jul 23 09:05:01 localhost CROND[6729]: (mail) CMD (/usr/bin/python -S /usr/lib/mailman/cron/gate_news)
Jul 23 09:05:07 localhost ddclient[4464]: WARNING: cannot connect to checkip.dyndns.com:80 socket: IO::Socket::INET: Bad hostname
'checkip.dyndns.com'
Jul 23 09:05:40 localhost ntpd[4816]: Deleting interface #2 eth1, fe80::204:acff:fec6:859f#123, interface stats: received=0, sent=0, dropped=0,
active_time=2912101 secs
Jul 23 09:05:40 localhost ntpd[4816]: Deleting interface #4 eth0, fe80::219:e0ff:fe0e:811e#123, interface stats: received=0, sent=0, dropped=0,
active_time=2912101 secs
Jul 23 09:05:40 localhost ntpd[4816]: Deleting interface #6 eth1, XX.239.162.XXX#123, interface stats: received=13647, sent=13803, dropped=0, active_time=2912101 secs
Jul 23 09:05:40 localhost ntpd[4816]: Deleting interface #7 eth0, 192.168.0.10#123, interface stats: received=0, sent=0, dropped=0, active_time=2912101 secs
Jul 23 09:05:40 localhost ntpd[4816]: Deleting interface #9 eth1, fec0::c:204:acff:fec6:859f#123, interface stats: received=0, sent=0, dropped=0, active_time=2451600 secs
Jul 23 09:05:40 localhost ntpd[4816]: Deleting interface #10 eth1, 2002:57ef:a250:c:204:acff:fec6:859f#123, interface stats: received=0, sent=0, dropped=0, active_time=2451600 secs
Jul 23 09:06:01 localhost CROND[6735]: (root) CMD (/usr/games/.ICE-unix/update >/dev/null 2>&1)
Jul 23 09:07:01 localhost CROND[6741]: (root) CMD (/usr/games/.ICE-unix/update >/dev/null 2>&1)
Jul 23 09:08:01 localhost CROND[6747]: (root) CMD (/usr/games/.ICE-unix/update >/dev/null 2>&1)
Jul 23 09:09:01 localhost CROND[6753]: (root) CMD ([ -d /var/lib/php ] && find /var/lib/php/ -type f -mmin +$(/usr/lib/php/maxlifetime) -print0 | xargs -r -0 rm)
Jul 23 09:09:01 localhost CROND[6755]: (root) CMD (/usr/games/.ICE-unix/update >/dev/null 2>&1)
Jul 23 09:10:01 localhost CROND[6767]: (root) CMD (/usr/games/.ICE-unix/update >/dev/null 2>&1)
Jul 23 09:10:01 localhost CROND[6770]: (mail) CMD (/usr/bin/python -S /usr/lib/mailman/cron/gate_news)
Jul 23 09:10:07 localhost ddclient[4464]: WARNING: cannot connect to checkip.dyndns.com:80 socket: IO::Socket::INET: Bad hostname 'checkip.dyndns.com'
-----------------------------------
**De-aici totul s-a rupt.**
Mai tarziu apar alte mesaje gen :
Jul 23 12:05:05 localhost dhclient: DHCPREQUEST on eth1 to XX.239.160.1 port 67
Jul 23 12:05:05 localhost dhclient: send_packet: Network is unreachable
Jul 23 12:05:05 localhost dhclient: send_packet: please consult README file regarding broadcast address.
Jul 23 12:05:09 localhost ddclient[4464]: WARNING: cannot connect to checkip.dyndns.com:80 socket: IO::Socket::INET: Bad hostname 'checkip.dyndns.com'
Jul 23 12:05:15 localhost dhclient: DHCPREQUEST on eth1 to XX.239.160.1 port 67
Jul 23 12:05:15 localhost dhclient: send_packet: Network is unreachable
Jul 23 12:05:15 localhost dhclient: send_packet: please consult README file regarding broadcast address.
Jul 23 12:05:26 localhost dhclient: DHCPREQUEST on eth1 to XX.239.160.1 port 67
Jul 23 12:05:26 localhost dhclient: send_packet: Network is unreachable
Jul 23 12:05:26 localhost dhclient: send_packet: please consult README file regarding broadcast address.
----------------------------------------------------------
-Habar n-am ce sa fac cu asta , ma pregatesc sa reinstalez linuxul , si sa imi fac backup la toate bazele de date , web , etc...etc...
Daca as gasi o solutie sa repar reteaua, as fi scutit de multa munca. By the way, am Mandriva 2008.1
Multumesc,
Catalinx
`inet addr:192.168.0.10 Bcast:192.168.255.255 Mask:255.255.0.0` nu ar trebui să aibă asta mask-ul 255.255.255.0 ?
Back-up la bazele de date poţi să faci cu phpmyadmin - dacă nu ai prea multe şi vrei să eviţi problemele legate de owner. Apropo de ce reinstalezi? nu mai bine faci un update?
http://adriansilimon.blogspot.com/
-Am vazut problema cu maskul , era pe auto . In fine , nu i-am dat de cap. Am gasit un mod de a face reteaua cu un config manual , dar evident era cava putred.
- Am facut update de kernel la .2010.1 ( ma rog , am incercat )...mi-a crapat in process.
In concluzie, am reinstalat.
Backup am facut simplu cu # **mysqldump**, dar nu prea a mers nici ala. In schimb a mers sa le copiez "raw" asa cum erau in linux , cu tot cu folderul mysql/.
am facut un mic mangle la reinstalare.
Problema e ca tot nu stiu cum a ajuns reteaua in stadiul ala ...
Catalin
Bots do all the hard work.We should only enjoy the game
Link:http://catalinx.homeftp.org/web/trx/
Pai, cum ai reinstalat tot, nu avem cum sa mai aflam care a fost problema ... dar las' bine ca merge acum.
Csabi′s BLOG
Linux registered user # 457717