Unix Technical Forum

Re: 3.3 - Bridge problems.

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 05:21 AM
Johannes Willenborg
 
Posts: n/a
Default Re: 3.3 - Bridge problems.

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
newsoe2hv83499ek1jm5931lov1cc2g5f1l1q@4ax.com...
>
> 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 , but I dont intend to have any IP's on
> 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
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 05:21 AM
L.R.
 
Posts: n/a
Default Re: 3.3 - Bridge problems.

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
>newsoe2hv83499ek1jm5931lov1cc2g5f1l1q@4ax.com.. .


<snip>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 05:21 AM
Johannes Willenborg
 
Posts: n/a
Default Re: 3.3 - Bridge problems.

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
> >newsoe2hv83499ek1jm5931lov1cc2g5f1l1q@4ax.com.. .

>
> <snip>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2008, 05:21 AM
L.R.
 
Posts: n/a
Default Re: 3.3 - Bridge problems.

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>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:18 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com