Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem mit "bridging" (brctl)
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
BuTzE
n00b
n00b


Joined: 23 Mar 2004
Posts: 8

PostPosted: Thu Apr 01, 2004 4:10 pm    Post subject: Problem mit "bridging" (brctl) Reply with quote

Code:
brctl addbr foo
br_add_bridge: Package not installed


hab emerge bridge-utils (0.9.6) und bridge-utils-0.9.6-r1 probiert bei beidem das selbe :/
_________________
Workstation: P4 3Ghz | MSI 865PE Neo2 | 512MB DDR | GF2 GTS | gentoo@fluxbox
Schlepptop: P3 500Mhz | 256MB SD | gentoo@fluxbox
Server: P2 300 | 384MB SD | gentoo
pehda: Sony Clie TJ-25 | PalmOS 5.2.1
Back to top
View user's profile Send private message
kurt
Guru
Guru


Joined: 25 Aug 2003
Posts: 403
Location: Arni (AG); CH

PostPosted: Thu Apr 01, 2004 7:05 pm    Post subject: Reply with quote

hi

schon ein bischen wenig angaben von dir um dir zu helfen :!:

1. kernel "Ethernet Bridging" activieren!

2.
Code:
emerge bridge-utils


beispiel configuration:

3.
Code:
nano -w /etc/conf.d/bridge
#Examples
#
#bridge="br100 br1000"
bridge="br100"
#
#bridge_br100_devices="eth3 eth4"
bridge_br100_devices="eth0 eth1"
#bridge_br1000_devices="eth5 eth6"

3.
Code:
nano -w /etc/conf.d/net
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
#iface_eth0="10.1.1.66 broadcast 10.1.1.255 netmask 255.255.255.0"
iface_br100="10.1.1.66 broadcast 10.1.1.255 netmask 255.255.255.0"
#iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
#gateway="eth0/192.168.0.1"
#gateway="eth0/10.1.1.55"
gateway="br100/10.1.1.55"

4.
Code:
cp /etc/init.d/net.eth0 /etc/init.d/net.br100
rc-update add bridge default
rc-update add net.br100 default
rc-update del net.eth0
/etc/init.d/net.eth0 stop
/etc/init.d/bridge start
/etc/init.d/net.br100

5. prüfen
Code:
ifconfig
kurt kurt # ifconfig
br100     Protokoll:Ethernet  Hardware Adresse 00:0D:87:3C:1C:7F
          inet Adresse:10.1.1.66  Bcast:10.1.1.255  Maske:255.255.255.0
          inet6 Adresse: fe80::20d:87ff:fe3c:1c7f/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6515 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6550 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:5001205 (4.7 Mb)  TX bytes:466756 (455.8 Kb)

eth0      Protokoll:Ethernet  Hardware Adresse 00:0D:87:3C:1C:7F
          inet6 Adresse: fe80::20d:87ff:fe3c:1c7f/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:132776 errors:0 dropped:0 overruns:0 frame:0
          TX packets:122401 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:11 Sendewarteschlangenlänge:1000
          RX bytes:118059039 (112.5 Mb)  TX bytes:8654917 (8.2 Mb)
          Interrupt:11 Basisadresse:0xe800

eth1      Protokoll:Ethernet  Hardware Adresse 00:40:05:A1:E7:50
          inet6 Adresse: fe80::240:5ff:fea1:e750/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:85 dropped:0 overruns:0 carrier:85
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:5 Basisadresse:0xd000

lo        Protokoll:Lokale Schleife
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3580 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3580 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:365936 (357.3 Kb)  TX bytes:365936 (357.3 Kb)

kurt kurt #


6. inernetradio neu starten.

gruss

kurt
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