[leaf-user] Problems using vlan.lrp and bridge.lrp

2003-06-24 Thread Jose Luis Abuelo Sebio
Hi, how everybody is doing?:

 I am having some problems trying to set a vlan with
the Bering rc4 distribution. I going to explain what I
did it and how, to see if anyone can find the problem
or the mistake, because I think I am following the
documentation pretty good.

  Here, this is a draw of what I am trying to set


  ---
  - PC1 -
  ---
 - eth0 IP 192.168.1.123
 -
 -
 - eth1 IP 192.168.1.1
   eth2 192.168.2.1 ---  
  - Bridge A - -- PC3 -
    ---
 - eth0 IP 10.0.1.1   eth0 IP 192.168.2.3
 -
 -
 - eth0 IP 10.0.1.2
   eth2 192.168.2.2 ---
  - Bridge B  PC4 -
    --- 
 - eth1 IP 192.168.1.2eth0 IP 192.168.2.4
 -
 -
 - eth0 IP 192.168.1.129
  --- 
  - PC2 -
  ---

 BridgeA and BridgeB are running under Bering rc4 V1.2
 with vlan.lrp bridge.lrp and 8021q.o  and bridge.o
  
 First I am gonna describe the situation of the
project. I have to computers, we will call them
BridgeA and BridgeB, which I wanna run as bridges.
Each computer has 3 Ethernet NICs. To apply vlan
support to the bridgeA and bridgeB I install in each
one the package vlan.lrp (wich provides the command
vconfig) and the module 8021q.o. Them to support the
bridge funcionality I install the the bridge.lrp
package and the bridge.o module.

them in each of these computers I do this:

First I assign an IP address to each NIC
BridgeA
eth0 10.0.1.1
eth1 192.168.1.1
eth2 192.168.2.1

and I set them up with the command Ifconfig
Ifconfig eth0 up
Ifconfig eth1 up
Ifconfig eth2 up
(To do this I had to install netutils.lrp because ifup
didn´t seem to work)

so I did the same in bridgeB

eth0 10.0.1.2
eth1 192.168.1.2
eth2 192.168.2.2
and I set them up with ifconfig again.

So now in each of the briges I create the Vlans

vconfig add eth0 10
vconfig add eth0 20
vconfig add eth1 10
vconfig add eth2 20

so now I have the interfaces
eth0.10 eth0.20 eth1.10 and eth2.20
 so I set them up again with ifconfig like
ifconfig eth1.10 up

So now I only have to create the bridge

brctl addbr Orense
brctl addif Orense eth0.10
brctl addif Orense eth0.20
brctl addif Orense eth1.10
brctl addif Orense eth2.20

and I set the bridge up
Ifconfig Orense up

(as you can see I use the interfaces eth0 of each
bridge to connect them in a backbone between the two
machines)

so then conected to the eth1 of the bridgeA I have a
computer with a NIC that has an IP address
192.168.1.123 and conected to the eth1 of the bridgeB
I
have another NIC with 192.168.1.129.

As I see it has to work, doesn´t it? but If I do a
ping from 192.168.1.123 to 192.168.1.129 I can´t see
the other side. I only can reach the machine I am
conected to (because the IP address) but not using the
bridge and VLAN technology.

 It is the same for the PC´s in the VLAN ID 20 PC3 and
PC4.

Can anyone tell me why or what I did wrong?

It works if I do the bridge with the phisical
interfaces eth0,eth1,eth2
Bridge Orense
eth0, eht1 eth2

but the porpuse of this
project is using vlan and a bridge so this:
Bridge Orense
eth0.10, eth0.20, eth1.10, eth2.20
It doesn´t work

I don´t know what is wrong here.

Thank´s for your help, I will be checking my
mail to see if anyone has the answer to this.

Bye



___
Yahoo! Sorteos  -  http://loteria.yahoo.es
Juega a la Lotería Primitiva sin salir de casa


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] Problems using vlan.lrp and bridge.lrp

2003-06-24 Thread Erich Titl
Jose

I do not understand much about bridges, so I am surprised that you would 
assign the same subnet 192.168.1.x on the eth1 adapters on both bridges.
I do not know how this could work so please someone enlighten me.
How could you prevent address collisions ths way?

Erich

At 09:02 24.06.2003 +0200, you wrote:
Hi, how everybody is doing?:

 I am having some problems trying to set a vlan with
the Bering rc4 distribution. I going to explain what I
did it and how, to see if anyone can find the problem
or the mistake, because I think I am following the
documentation pretty good.
THINK
Püntenstrasse 39
8143 Stallikon
mailto:[EMAIL PROTECTED]
PGP Fingerprint: BC9A 25BC 3954 3BC8 C024 8D8A B7D4 FF9D 05B8 0A16


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] Problems using vlan.lrp and bridge.lrp

2003-06-24 Thread Lynn Avants
On Tuesday 24 June 2003 02:02 am, Jose Luis Abuelo Sebio wrote:
[...]
 First I assign an IP address to each NIC
 BridgeA
 eth0 10.0.1.1
 eth1 192.168.1.1
 eth2 192.168.2.1

 and I set them up with the command Ifconfig
 Ifconfig eth0 up
 Ifconfig eth1 up
 Ifconfig eth2 up
 (To do this I had to install netutils.lrp because ifup
 didn´t seem to work)

 so I did the same in bridgeB

 eth0 10.0.1.2
 eth1 192.168.1.2
 eth2 192.168.2.2
 and I set them up with ifconfig again.
[...]
 It works if I do the bridge with the phisical
 interfaces eth0,eth1,eth2
 Bridge Orense
 eth0, eht1 eth2

Well, I haven't setup a bridge in some time, so correct me
if I'm off-base here. Last I checked, bridging is NOT a 
function of routing and does NOT use ip addresses/routes/etc..
You simply bring up the interfaces as 'bridge-interfaces' w/o
further configuration and the whole thing works similar to a
switch. From what you have posted, I'm very surprised anything
works at all period as a bridge, but I'm assuming that much
may have changed in the last couple of years...
-- 
~Lynn Avants
Linux Embedded Appliance Firewall Developer
http://leaf.sourceforge.net
http://guitarlynn.homelinux.org:81


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html