![]() |
![]() |
|
|
|||||||
| Linux, UNIX, Open Source Rat & Tat bei Problemen und Fragen rund um GNU/Linux, BSD und sonstige UNIXe |
![]() |
|
|
Themen-Optionen | Ansicht |
|
|
#1 |
|
Hero
![]() Registriert seit: 18.10.2001
Beiträge: 857
|
Hallo,
ich habe probleme mit meinem slackware 9.0. ich habe 2 smc netzwerkkarten eingebaut. beim booten startet der pc die netzwerkkarten nicht. Wenn ich die ipadressen dann mit Ifconfig -a eth0 10.0.0.1 und ifconfig -a eth1 10.0.0.2 vergebe dann funzt alles. und ich kann auch wunderbar pingen. Aber nach einem neustart sind die einstellungen weg. Ich habe jetzt in /etc/rc.d/rc.inet1 die ipadressen fix eingestellt. aber es hilf drotzdem nicht. ich habe gehört das es da "module" gibt die beim starten geladen werden. Kann man das das Module netzwerkkarte ( oder wie das auch immer heißt ) hinzufügen ? ich hab kde 3.1 installiert. mfg _THE_LAW_ ps.: vielleicht habt ihr ein paar tipps für mich |
|
|
|
|
|
#2 |
|
Hero
![]() Registriert seit: 28.09.2001
Beiträge: 940
|
Naja das Modul für die Netzwerkkarte wird mit Sicherheit beim Booten schon geladen, das brauchst du nicht mehr starten.
Aber wenn du in rc.inet1 die Daten für die beiden Karten eingetragen hast dann müssten sie eigentlich beim Booten konfiguriert werden. Poste doch mal rc.inet1...
____________________________________
Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. -- Benjamin Franklin |
|
|
|
|
|
#3 |
|
Hero
![]() Registriert seit: 18.10.2001
Beiträge: 857
|
meine rc.inet1
Code:
#! /bin/sh
# /etc/rc.d/rc.inet1
# This script starts up the base networking system.
#
# Version:
# @(#)/etc/rc.d/rc.inet1 8.1 Tue May 28 15:27:39 PDT 2002 (pjv)
# Edit these values to set up your first Ethernet card (eth0):
IPADDR="10.0.0.1" # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
# Or, uncomment the following lines to set up eth0 using DHCP:
#USE_DHCP=yes
# If your provider requires a DHCP hostname, uncomment and edit below:
#DHCP_HOSTNAME="CCHOSTNUM-A"
# Edit these values to set up your second Ethernet card (eth1),
# if you have one. Otherwise leave it configured to 127.0.0.1,
# or comment it out, and it will be ignored at boot.
IPADDR2="10.0.0.2" # REPLACE with YOUR IP address!
NETMASK2="255.255.255.0" # REPLACE with YOUR netmask!
# Or, uncomment the following lines to set up eth1 using DHCP:
#USE_DHCP2=yes
# If your provider requires a DHCP hostname, uncomment and edit below:
#DHCP_HOSTNAME2="CCHOSTNUM-A"
# Edit the next line to point to your gateway:
GATEWAY="" # REPLACE with YOUR gateway!
# You shouldn't need to edit anything below here.
# Set up the loopback interface:
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
# Set up the eth0 interface:
if [ "$USE_DHCP" = "yes" ]; then # use DHCP to set everything up:
echo "Attempting to configure eth0 by contacting a DHCP server..."
# Add the -h option to the DHCP hostname:
if [ ! "$DHCP_HOSTNAME" = "" ]; then
DHCP_HOSTNAME="-h $DHCP_HOSTNAME"
fi
/sbin/dhcpcd -t 10 ${DHCP_HOSTNAME} -d eth0
elif [ ! "$IPADDR" = "127.0.0.1" -a ! "$IPADDR" = "" ]; then # set up IP statically:
# Determine broadcast and network addresses from the IP address and netmask:
BROADCAST=`/bin/ipmask $NETMASK $IPADDR | cut -f 1 -d ' '`
NETWORK=`/bin/ipmask $NETMASK $IPADDR | cut -f 2 -d ' '`
# Set up the ethernet card:
echo "Configuring eth0:"
echo "ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}"
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
# If that didn't succeed, give the system administrator some hints:
if [ ! $? = 0 ]; then
echo "Your eth0 card was not initialized properly. Here are some reasons why this"
echo "may have happened, and the solutions:"
echo "1. Your kernel does not contain support for your card. Including all the"
echo " network drivers in a Linux kernel can make it too large to even boot, and"
echo " sometimes including extra drivers can cause system hangs. To support your"
echo " ethernet, either edit /etc/rc.d/rc.modules to load the support at boot time,"
echo " or compile and install a kernel that contains support."
echo "2. You don't have an ethernet card, in which case you should run netconfig"
echo " and configure your machine for loopback. (Unless you don't mind seeing this"
echo " error...)"
fi
fi # set up eth0
# Set up the eth1 interface:
if [ "$USE_DHCP2" = "yes" ]; then # use DHCP to set everything up:
echo "Attempting to configure eth1 by contacting a DHCP server..."
# Add the -h option to the DHCP hostname:
if [ ! "$DHCP_HOSTNAME2" = "" ]; then
DHCP_HOSTNAME2="-h $DHCP_HOSTNAME2"
fi
/sbin/dhcpcd -t 10 ${DHCP_HOSTNAME2} -d eth1
elif [ ! "$IPADDR2" = "127.0.0.1" -a ! "$IPADDR2" = "" ]; then # set up IP statically:
# Determine broadcast and network addresses from the IP address and netmask:
BROADCAST2=`/bin/ipmask $NETMASK2 $IPADDR2 | cut -f 1 -d ' '`
NETWORK2=`/bin/ipmask $NETMASK2 $IPADDR2 | cut -f 2 -d ' '`
# Set up the ethernet card:
echo "Configuring eth1:"
echo "ifconfig eth1 ${IPADDR2} broadcast ${BROADCAST2} netmask ${NETMASK2}"
/sbin/ifconfig eth1 ${IPADDR2} broadcast ${BROADCAST2} netmask ${NETMASK2}
# If that didn't succeed, give the system administrator some hints:
if [ ! $? = 0 ]; then
echo "Your eth1 card was not initialized properly. Here are some reasons why this"
echo "may have happened, and the solutions:"
echo "1. Your kernel does not contain support for your card. Including all the"
echo " network drivers in a Linux kernel can make it too large to even boot, and"
echo " sometimes including extra drivers can cause system hangs. To support your"
echo " ethernet, either edit /etc/rc.d/rc.modules to load the support at boot time,"
echo " or compile and install a kernel that contains support."
echo "2. You don't have an ethernet card, in which case you should fix"
echo " /etc/rc.d/rc.inet1 to stop trying to configure eth1. (Unless you don't mind"
echo " seeing this error...)"
fi
fi # set up eth1
# Set up the gateway:
if [ ! "$GATEWAY" = "127.0.0.1" -a ! "$GATEWAY" = "" ]; then
/sbin/route add default gw ${GATEWAY} metric 1
fi
# End of /etc/rc.d/rc.inet1
mfg _THE_LAW_ |
|
|
|
|
|
#4 |
|
Hero
![]() Registriert seit: 28.09.2001
Beiträge: 940
|
Hm - versteh ich nicht - und die Karten sind nicht konfiguriert wenn du nach dem booten "ifconfig" eingibst ?
Und wenn du sie manuell dann konfigurierst dann gehts ? Hast du schon mal die Startmeldungen beim Booten genau verfolgt ? Eigentlich müsste er ja hinschreiben wenn sie konfiguriert werden, bzw. eine Fehlermeldung wenns nicht funktioniert... --qu
____________________________________
Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. -- Benjamin Franklin |
|
|
|
|
|
#5 |
|
Hero
![]() Registriert seit: 18.10.2001
Beiträge: 857
|
nach dem starten, wenn ich infocnif eingebe sehe ich nur lo ( localhost ) 127.0.0.1
und wenn ich ifconfig eth0 up , und ifconfig eth1 up eingebe dann sind die karten zwar da, aber keine ipadressen sind konfiguriert. das gleiche problem habe ich bei meinem zweiten slackware rechner. Nur dieser hat eine Realtek netzwerkkarte. also kanns an den Smc´s auch nicht liegen . mfg _THE_LAW_ ps.: www.slackforum.de ist auch schon bei meinem problem gescheitert. |
|
|
|
|
|
#6 |
|
Hero
![]() Registriert seit: 28.09.2001
Beiträge: 940
|
Da gibts eine Datei - /etc/NETWORKING.
Was steht da bei dir drin ? - schreib YES rein...wenns noch nicht drinsteht. Und du bist dir sicher dass rc.inet1 x-Rechte hat ? hast schon überprüft ? Wobei ich nicht wüsste warum es keine "Ausführen" Rechte haben sollte...selbst wirst sie ja nicht entfernt haben.
____________________________________
Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. -- Benjamin Franklin |
|
|
|
|
|
#7 |
|
Hero
![]() Registriert seit: 18.10.2001
Beiträge: 857
|
in /etc/networking muss ich nachschaun wenn ich daheim bin .
x ist aktiviert das habe ich gestern schon geschaut ( steht beim link www.slackforum.de ) ich werde heute die /etc/networking config posten . mfg _THE_LAW_ |
|
|
|
|
|
#8 |
|
Hero
![]() Registriert seit: 28.09.2001
Beiträge: 940
|
Beachte NETWORKING - groß geschrieben, Linux ist case sensitive, eh scho wissn
![]() Obwohl ich eher nicht glaub dass es da ist....*strange* Sieh dir die Fehlermeldungen an beim Booten, da muss was stehen...
____________________________________
Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. -- Benjamin Franklin |
|
|
|
|
|
#9 |
|
Master
![]() Registriert seit: 24.04.2003
Alter: 41
Beiträge: 626
|
#ifconfig $IFACE $IPNUM broadcast $BCAST netmask $NMASK
#route add -net default gw $GTWAY netmask 0.0.0.0 metric 1 $IFACE $IFACE = Network Interface (z.B. eth0) $IPNUM = IP Addresse $BCAST = Broadcast IP $NMASK = Network Mask $GTWAY = Gateway
____________________________________
GNU/Linux, die süßeste Verführung seit es Computer gibt. Programmieren ist eine Wissenschaft sowie Kunst... Software-Patente sind wie in Kunst, jeden Pinselstrich zu patentieren. Windows: A 64-bit rewrite of a 32-bit extension and GUI shell to 16-bit patch to an 8-bit operating system originally coded for a 4-bit microprocessor and sold by a 2-bit company that can\'t stand one bit of competition. |
|
|
|
|
|
#10 | |
|
Hero
![]() Registriert seit: 18.10.2001
Beiträge: 857
|
Zitat:
welche datei ist das? |
|
|
|
|
![]() |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|