Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
baselayout2 /etc/conf.d/net Routing-Problem [gelöst]
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
Duncan Mac Leod
Guru
Guru


Joined: 02 May 2004
Posts: 304
Location: Germany

PostPosted: Tue Nov 27, 2012 4:03 pm    Post subject: baselayout2 /etc/conf.d/net Routing-Problem [gelöst] Reply with quote

Hallo zusammen!

Habe seit langem :-) mal wieder eine Frage...

Ich habe ein Gateway, welches ich durch eine Host-Route erreichen muss, doch ich verzweifle am Aufbau bzw. an den Routing-Einträgen in der /etc/conf.d/net

Wenn ich die Routes manuell setze (nach dem Booten ohne Routes :-) !), passt alles:

/sbin/route add -host 189.245.34.1 dev eth0
/sbin/route add default gw 189.245.34.1

WIE bekomme ich diese 2 Zeilen in den Eintrag routes_eth0="" ???

Ich könnte diese Zeilen auch in /etc/local.d/baselayout1.start packen :-) (da stehen sie auch im Moment drinnen und alles geht)...

...ABER: es muss doch möglich sein, dies über /etc/conf.d/net zu machen - oder ??

Danke im voraus,
Duncan


Last edited by Duncan Mac Leod on Tue Nov 27, 2012 4:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1668

PostPosted: Tue Nov 27, 2012 4:20 pm    Post subject: Reply with quote

Hi, nachzulesen in /usr/share/doc/openrc-<version>/net.example:

routes_eth0=( "default via 192.168.1.100" "10.0.0.0/8 via 192.168.1.2" )

da steht zwar nix von host routen (ich weiß eigentlich auch net was das ist :) )
aber vielleicht findest du da noch was dazu.
Back to top
View user's profile Send private message
bell
Guru
Guru


Joined: 27 Nov 2007
Posts: 508

PostPosted: Tue Nov 27, 2012 4:22 pm    Post subject: Reply with quote

Nach einem kurzen Blick in /usr/share/doc/openrc-0.11.5/net.example.bz2, /etc/init.d/net.lo und /lib64/rc/net/ifconfig.sh würde ich es wie folgt machen:
Code:
routes_eth0="-host 189.245.34.1
             default via 189.245.34.1"

PS: Die Beste Docu ist immer noch der Quellcode ;)
Back to top
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1734
Location: Velbert

PostPosted: Tue Nov 27, 2012 4:24 pm    Post subject: Reply with quote

Falsche Syntax, die () gibt es nimmer. Also ohne und in einmal "" einschließen auf zwei Zeilen.
Back to top
View user's profile Send private message
Duncan Mac Leod
Guru
Guru


Joined: 02 May 2004
Posts: 304
Location: Germany

PostPosted: Tue Nov 27, 2012 4:47 pm    Post subject: Reply with quote

bell wrote:

Code:
routes_eth0="-host 189.245.34.1
             default via 189.245.34.1"



DANKE :-) - hat geklappt und läuft!
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