From: Andreas Koenecke
* Montag, 15. Juli 2002 um 19:41 (+0200) schrieb Martin Falley:
wenn er die jedesmal vergiss, muß mein Pinguin sich mal nen Zettel schnappen und sich die Routen aufschreiben. Vielleicht
macht er das
ja schon. Aber wo ist dann der Zettel (welche Datei ist das?)? Ich dachte immer, daß das /etc/route.conf ist.
Das war einmal... "The young 21st Century and SuSE 8.0 proudly presents: <Tadda> /etc/sysconfig/network/routes <Tadda>"
Die sieht jetzt so aus:
pinguin:/home/martin # less /etc/route.conf 192.168.1.0 0.0.0.0 255.255.255.0 default 192.168.1.1
Du solltest auf der 8.0 gar keine /etc/route.conf haben.
Na gut, denn wird sie jetzt gefeuert, wenn sie eh nur ein Rest des vergangenen 20. Jahrhunderts ist ;)
Ich würde dir empfehlen, die Netzwerkkarte und das Standart-Gateway mit Yast2 zu löschen und neu einzurichten -- dann sollten
Ok, mach' ich mal... klöter, klöter, klöter ...
... fertig
..Neuboot...
Jetzt fällt mir was auf:
(Auszug aus /varlog/messages/boot.msg)
[...]
<notice>/etc/init.d/rc5.d/S05network start
Setting up network interfaces:
lo /sbin/ifup: scripts/ifup-wireless: bad interpreter:
Permission denied
/sbin/ifup: /etc/sysconfig/network/scripts/ifup-route: bad
interpreter: Permission denied
done
eth0 /sbin/ifup: scripts/ifup-wireless: bad interpreter:
Permission denied
/sbin/ifup: /etc/sysconfig/network/scripts/ifup-route: bad
interpreter: Permission denied
done
/etc/init.d/rc5.d/S05network:
/etc/sysconfig/network/scripts/ifup-route: bad interpreter: Permission
denied
Starting syslog services<notice>'/etc/init.d/rc5.d/S05network start'
exits with status 0
<notice>/etc/init.d/rc5.d/S06syslog start
<notice>startproc: execve (/sbin/syslogd) [ /sbin/syslogd ], [ PWD=/
HOSTNAME=pinguin CONSOLE=/dev/console PREVLEVEL=N AUTOBOOT=YES
REDIRECT=/dev/tty1 MACHTYPE=i386-suse-linux LINES=48 SHLVL=2
COLUMNS=128 BOOT_IMAGE=linux SHELL=/bin/bash HOSTTYPE=i386
OSTYPE=linux HOME=/ TERM=linux PATH=/sbin:/bin:/usr/sbin:/usr/bin
RUNLEVEL=5 INIT_VERSION=sysvinit-2.82 _=/sbin/startproc
DAEMON=/sbin/syslogd ]
<notice>startproc: execve (/sbin/klogd) [ /sbin/klogd -c 1 ], [ PWD=/
HOSTNAME=pinguin CONSOLE=/dev/console PREVLEVEL=N AUTOBOOT=YES
REDIRECT=/dev/tty1 MACHTYPE=i386-suse-linux LINES=48 SHLVL=2
COLUMNS=128 BOOT_IMAGE=linux SHELL=/bin/bash HOSTTYPE=i386
OSTYPE=linux HOME=/ TERM=linux PATH=/sbin:/bin:/usr/sbin:/usr/bin
RUNLEVEL=5 INIT_VERSION=sysvinit-2.82 _=/sbin/startproc
DAEMON=/sbin/klogd ]
done
[...]
Wieso 'bad interpreter: Permission denied'? weil:
pinguin:/sbin # ls -ls if*
60 -rwxr-xr-x 1 root root 55020 Mar 23 20:31 ifconfig
0 lrwxrwxrwx 1 root root 4 Jun 15 23:09 ifdown ->
ifup
0 lrwxrwxrwx 1 root root 9 Jun 15 23:09
ifdown-dhcp -> ifup-dhcp
0 lrwxrwxrwx 1 root root 4 Jun 15 23:09
ifstatus -> ifup
0 lrwxrwxrwx 1 root root 9 Jun 15 23:09
ifstatus-dhcp -> ifup-dhcp
16 -rwxr-xr-x 1 root root 15583 Apr 22 12:24 ifup
12 -rwxr-xr-x 1 root root 10766 Apr 22 12:24 ifup-dhcp
8 -rwxr-xr-x 1 root root 7619 Apr 22 12:24 ifuser
und (Header der /sbin/ifup):
#!/bin/bash
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. All rights
reserved.
#
# Network interface configuration
#
# Author: Michal Svec
die Dateien unter /etc/sysconfig/network/ auch richtig angelegt werden...
... ifcfg-eth0 sieht jetzt so aus: BOOTPROTO="static" BROADCAST="192.168.1.255" IPADDR="192.168.1.250" NETMASK="255.255.255.0" NETWORK="192.168.1.0" STARTMODE="onboot" UNIQUE="_+Pw.wQq3lwZp4Y5" Es hat sich außer der UNIQUE-Zeile nichts geändert, klar.
same procedure as every time:
.. alle Ergebnisse wie vorher. Dann Default-Route neu gesetzt und trotzdem kein Ping aufs Internet, nur intern.
pinguin:/home/martin # route del -net 192.168.1.0 netmask 255.255.255.0 gw 192. 168.1.250 pinguin:/home/martin # route add default gw 192.168.1.1 pinguin:/home/martin # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Gut!
pinguin:~ # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 192.168.1.250 255.255.255.0 UG 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 Die .250 ist schon wieder als GW drin, obwohl ich sie nicht eingetragen habe. Irgendwas stimmt doch mit dieser verflixten yast2-Installation nicht. Aber wie und wo drehe ich per Hand, sodaß dies auch permanent wird. deshalb: pinguin:~ # route del -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.250 pinguin:~ # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 [...]
Langsam fällt mir auch nichts mehr ein...
Schade, aber vielleicht hat ja jemand eine ähnliche Konfiguration und kann mir mal seine Config-Files per .tar oder .gz rüberjagen.
Hat der Rechner ein "lo"-Interface? (ifconfig lo)
Ja, siehe: pinguin:/home/martin # ifconfig eth0 Link encap:Ethernet HWaddr 00:50:DA:48:F5:99 inet addr:192.168.1.250 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::250:daff:fe48:f599/10 Scope:Link EtherTalk Phase 2 addr:65280/249 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:120765 errors:0 dropped:0 overruns:1 frame:0 TX packets:7530 errors:0 dropped:0 overruns:0 carrier:0 collisions:47 RX bytes:23297400 (22.2 Mb) TX bytes:2078446 (1.9 Mb) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host EtherTalk Phase 2 addr:0/0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:13043 errors:0 dropped:0 overruns:0 frame:0 TX packets:13043 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:1103329 (1.0 Mb) TX bytes:1103329 (1.0 Mb) Gruß Martin