Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Netzwerk erst nach ifconfig
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
unununium
n00b
n00b


Joined: 15 Nov 2003
Posts: 12
Location: Bochum

PostPosted: Wed Dec 24, 2003 1:53 pm    Post subject: Netzwerk erst nach ifconfig Reply with quote

Hallo zusammen!
Ich habe folgendes Problem:
Auf meinem Rechner läuft ein FTP Server, damit ich Daten über's Netzwerk austauschen kann (Auf dem anderen Rechner läuft Windows 2000). Dies geht aber erst, nachdem ich mit "ifconfig" die IPs für die Netzwerkkarten geändert habe auf "192.168.0.*irgendwas*", und dann wieder zurück auf die ursprüngliche Adresse... (okay, ich könnte das auch so "hoch" lassen, ist dann aber Geschmackssache). Wodran liegt das? Mich wundert's nämlich ganz extrem, dass er erstmal eine andere IP will....

In meinem Rechner sind 3 Netzwerkkarten:
eth0: 192.168.0.1 (Internet über DSL)
eth1: 192.168.0.2 (Verbindung mit dem anderen Rechner)
eth2: 192.168.0.3 (Damals liefen die anderen Netzwerkkarten nicht, nun nurnoch für Notfälle drin)

Vielen Dank für die Hilfe,

unununium
Back to top
View user's profile Send private message
Mac Fly
Guru
Guru


Joined: 30 Nov 2003
Posts: 330
Location: nähe Stuttgart

PostPosted: Wed Dec 24, 2003 2:16 pm    Post subject: Reply with quote

Trag in der /etc/conf.d/net folgendes analog für deine Karten ein:
Code:
iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"


dann musst du dir die /etc/init.d/net.eth1 und 2 erstellen
Code:
ln -sd /etc/init.d/eth0 /etc/init.d/eth1
ln -sd /etc/init.d/eth0 /etc/init.d/eth2

dann nur noch per rc-update beim booten starten
Code:
rc-update add net.eth0 default
rc-update add net.eth1 default
rc-update add net.eth2 default
Back to top
View user's profile Send private message
unununium
n00b
n00b


Joined: 15 Nov 2003
Posts: 12
Location: Bochum

PostPosted: Wed Dec 24, 2003 2:44 pm    Post subject: Reply with quote

"iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
"iface_eth1="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
"iface_eth2="192.168.0.3 broadcast 192.168.0.255 netmask 255.255.255.0"

Die drei Zeilen stehen schon in der /etc/conf.d/net (natürlich ohne '"'), und /etc/init.d/net.eth0 , 1 & 2 habe ich auch schon erstellt und lasse ich beim Start laden.


Das komische ist ja, dass die IPs auch richtig vergeben werden, nach dem boot zeigt ifconfig also für eth0 192.168.0.1, eth1 ...0.2, eth3 ...0.2, aber erst, wenn ich die IP mal höher hatte, und gepingt habe geht's, dann kann ich auch wieder die "normalen" IPs einstellen..


P.S.: Mac Fly: Wenn du mehr weisst, kannst du mich gleich ja mal queryn. :-))


EDIT: Problem gelöst: route add -net 192.168.0.0 netmask 255.255.255.0 dev eth2 (Das Lan ist an eth2, nicht eth1...)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum