This is a discussion on Re: 3.3 - Bridge problems. within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> Did you try to enable ip forwarding in /etc/sysctl.conf? Perhaps this is, why packets aren't send "from one to ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Did you try to enable ip forwarding in /etc/sysctl.conf? Perhaps this is, why packets aren't send "from one to the other side". Johannes "L.R." <lisaro@powertech.no> schrieb im Newsbeitrag news > > OpenBSD-3.3 , i386 > > Did a fresh ftp-install on an old lappie, > 486DX4-75 , 32MB ram, ~ 300MB disk, 2 PCMCIA NIC's, > ( 3com, Megahertz 574B 10/100 PCMCIA ) > ( ep1 , ep2 ) , > installed only bsd , bsd.rd , base33.tgz , etc33.tgz, misc33.tgz > ( yes, I know about bsd.rd and man33.tgz ) > > Gave one of the cards an rfc1918 IP and default gateway > during install, moved /etc/hostname.ep1 and /etc/mygate > after first boot, and made new files following > the examples in the faq. > http://www.openbsd.org/faq/faq6.html#Bridge > > cat /etc/hostname.ep1 > up media 100baseTX > > cat /etc/hostname.ep2 > up media 100baseTX > > ( one card is connected to a 100Mbps full-duplex switch, > who is connected to a hub who is connected to a router, > and the other is cross-connected to another lappie > running Slackware, also with a 100Mbps full-duplex card ) > > cat /etc/bridgename.bridge0 > add ep1 > add ep2 > up > > And did a coldboot. > > Booting - PCMCIA NIC's gets loaded, > ( see .signature for dmesg ) > and everything is ok, exept that the box is not bridging. > > After a bit of fidling with /sbin/ifconfig and /sbin/brconfig > [ http://www.openbsd.org/cgi-bin/man.c...e.if&sektion=5 ] > [ http://www.openbsd.org/cgi-bin/man.c...nfig&sektion=8 ] > [ http://www.openbsd.org/cgi-bin/man.c...nfig&sektion=8 ] > [ http://www.openbsd.org/cgi-bin/man.c...e.if&sektion=5 ] > [ http://www.openbsd.org/cgi-bin/man.c...y=ep&sektion=4 ] > > I found that if I set IP's on both cards (rfc1918) it worked, if I > ' /sbin/ifconfig ep1 up ' and ' /sbin/ifconfig ep2 up ' it worked. > ( worked = its bridging ) > > But everytime I had only ' up ' , or ' up media 100baseTX ' in > /etc/hostname.epX ( 1/2 ) , it would not plain work. > > As my plan is to have that lappie as ' portable bridge ' , it would > be cool getting it to work > it. > > What am I overlooking, the example from the faq should work, > right ? > Any input and pointers will be much appreciated, I'm not afraid > of reading > Also - I'll be glad if you people Cc:/ Bcc: my email, although I will > answer in this NG. > > /Lisa. > > -- > > pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > > pcic0 at isa0 port 0x3e0/2 iomem 0xd0000/65536 > pcic0 controller 0: <Intel 82365SL rev 1> has sockets A and B > pcmcia0 at pcic0 controller 0 socket 0 > ep1 at pcmcia0 function 0 "3Com, Megahertz 574B, B" port 0x340/32: irq 3: > address 00:01:03:9b:xx:xx > tqphy0 at ep1 phy 0: 78Q2120 10/100 media interface, rev. 10 > pcmcia1 at pcic0 controller 0 socket 1 > ep2 at pcmcia1 function 0 "3Com, Megahertz 574B, B" port 0x300/32: irq 9: > address 00:01:03:9b:xx:xx > tqphy1 at ep2 phy 0: 78Q2120 10/100 media interface, rev. 10 > pcic0: irq 5, polling enabled > |
| |||
| Tue, 15 Jul 2003 08:55:47 +0200, "Johannes Willenborg" <kleinerwilly@web.de> schreiten: >Did you try to enable ip forwarding in /etc/sysctl.conf? Perhaps this >is, why packets aren't send "from one to the other side". Yes , and no. I've both tried with net.inet.ip.forwarding=1 and #net.inet.ip.forwarding=1 In both cases same trouble. If not manually /sbin/ifconfig up or giving them a IP in /etc/hostname.epX no bridging. >Johannes > > >"L.R." <lisaro@powertech.no> schrieb im Newsbeitrag >news <snip> |
| |||
| did you check the status with ifconfig -a? perhaps it's - like in most cases - just an error in a filename e.g. bigdename.bridge0 or something like this. What does ifconfig bridge0 return? Johannes "L.R." <lisaro@powertech.no> schrieb im Newsbeitrag news:1o58hv8resikpcpbs5f45cn2tlosd2bfr2@4ax.com... > Tue, 15 Jul 2003 08:55:47 +0200, > "Johannes Willenborg" <kleinerwilly@web.de> schreiten: > > >Did you try to enable ip forwarding in /etc/sysctl.conf? Perhaps this > >is, why packets aren't send "from one to the other side". > > Yes , and no. I've both tried with > net.inet.ip.forwarding=1 > and > #net.inet.ip.forwarding=1 > > In both cases same trouble. > If not manually /sbin/ifconfig up > or giving them a IP in /etc/hostname.epX > no bridging. > > >Johannes > > > > > >"L.R." <lisaro@powertech.no> schrieb im Newsbeitrag > >news > > <snip> > |
| ||||
| Tue, 15 Jul 2003 19:53:13 +0200, "Johannes Willenborg" <kleinerwilly@web.de> schreiten: >did you check the status with ifconfig -a? Jupp, >perhaps it's - like in most >cases - just an error in a filename e.g. bigdename.bridge0 or something >like this. From my first posting, --- cat /etc/bridgename.bridge0 add ep1 add ep2 up --- As my first posting states, if I only have up media 100baseTX in the /etc/hostname.epX files, it doesnt bridge, if I put some rfc1918 address (eg 10.0.0.2 10.0.0.3) it bridges... And, /sbin/ifconfig ep1 up ; /sbin/ifconfig ep2 up bridging works. /etc/sysctl.conf #net.inet.ip.forwarding=1 as I dont want this to be a layer-3 , but a layer-2. >What does ifconfig bridge0 return? bridge0: flags=41<UP,RUNNING> mtu 1500 Fyi, I have pf=NO in /etc/rc.conf , as I want to make the box actually _bridge_ by itself before I put any rules. >Johannes <snip> |