Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bridge erzeugen, ohne eth0, init.d/net.br*
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
syncmaster
n00b
n00b


Joined: 27 Apr 2003
Posts: 26

PostPosted: Mon Oct 17, 2005 1:21 pm    Post subject: Bridge erzeugen, ohne eth0, init.d/net.br* Reply with quote

hi,

ich suche nach einer Lösung, die mir zwei bridges erzeugt, ohne eth0 zu verwenden. Unter der Konsole muß ich bisher folgendes tun:

Geräte erzeugen:

Code:

brctl addbr xenintbr
brctl addbr xeninetbr


Jetzt kann ich die Geräte starten. Mit "zap" weil das Script denkt, die Geräte seien schon aktiv. :(

Code:

rohan distfiles # /etc/init.d/net.xenintbr zap start
 * Manually resetting net.xenintbr to stopped state.
 * Starting xenintbr
 *   Bringing up xenintbr
 *     10.0.5.1/24                                                                                                                     [ ok ]
rohan distfiles # /etc/init.d/net.xeninetbr zap start
 * Manually resetting net.xeninetbr to stopped state.
 * Starting xeninetbr
 *   Bringing up xeninetbr
 *     10.0.10.3/24


ifconfig:

Code:

xeninetbr Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:10.0.10.3  Bcast:10.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

xenintbr  Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:10.0.5.1  Bcast:10.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:1518 (1.4 Kb)



Das Problem, ich muß das alles von Hand aus machen. Meine /etc/conf.d/net, sieht so aus:

Code:

#Internal Bridged Network.

bridge="xeninetbr xenintbr"
config_xeninetbr=( "10.0.10.3/24" )
brctl_xeninetbr=( "setfd 0" "sethello 0" "stp off" )

#Internal Bridged Network for Internet

bridge="xenintbr"
config_xenintbr=( "10.0.5.1/24" )
brctl_xenintbr=( "setfd 0" "sethello 0" "stp off" )


Code:

lrwxrwxrwx  1 root root    18 Oct 17 12:56 /etc/init.d/net.xeninetbr -> /etc/init.d/net.lo
lrwxrwxrwx  1 root root    18 Oct 17 12:56 /etc/init.d/net.xenintbr -> /etc/init.d/net.lo


Das net.lo Initscript erzeugt nicht die benötigten Geräte (weil ich kein bridge_br0="eth0 eth1" habe) und damit können die Bridges nicht gestartet werden. Wo kann ich mein "brctl addbr xenintbr" am Besten unterbringen?

cu denny
_________________
--
cu denny
Back to top
View user's profile Send private message
aleph-muc
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 205
Location: Auf dem Land

PostPosted: Mon Oct 17, 2005 1:31 pm    Post subject: Reply with quote

Vielleicht hilft es Dir, die Befehle in /etc/conf.d/local.start einzutragen.

Gruß
aleph
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