[leaf-user] Problems Vlan+bridge

2003-06-25 Thread Jose Luis Abuelo Sebio
Hello everyone:

  I am trying to set up a easy configuration using a
bridge with Vlan Support, but I am having a few
problems with it and I don´t know why. Let´s see if
you can help me out here.

  Here I show you the configuration


 ---
 - PC1 -
 ---
- eth0 192.168.1.127
-
-
-
- eth0 (No IP address) (eth0.10 for the vlan)
 ---
 - br0 -
 ---
-  eth1 (No IP address) (eth1.10 for the vlan)
-
-
- eth0 192.168.1.129
 ---
 - PC2 -
 ---

  
  What I am trying to get here is set a brige using
vlans. 

   I am using Bering rc4 with bridge support and vlan
support. First I set the interfaces in the bridge Br0
with no IP address

ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up

  then I create the Vlans, eth0 and eth1 will belong
to vlan10
  vconfig add eth0 10
  vconfig add eth1 10
  
 So with this if I go to /proc/net/vlan
I have the interfaces eth0.10 and eth1.10 with no IP
address as we want for the bridge right?

 I set eth0.10 and eth1.10 up with ifconfig

ifconfig eth0.10 up
ifconfig eth1.10 up

 
  now I create the bridge

brctl addbr br0
brctl stp br0 off

so now I add the logical interfaces eth0.10 and
eth1.10 to the bridge

brctl addif br0 eth0.10
brctl addif br0 eth1.10

now I have what I think I need to et all the
configuration to work, right?
so I set the interface br0 up
ifconfig br0 up

  As I think and as I readed in the tutorials and
guides I found in the internet, this configuration
should work. I should be able to ping from PC1 to PC2
because they are in the same vlan (PC1 and PC2 are
using windows98 because my teacher says that the hosts
that are not bridges dont have to support Vlan, so we
can work with the normal interfaces)

  The problem is that, this doesn´t work, and I don´t
now why I can not get a response for a ping to PC1
from PC2 or from PC2 to PC1.

 I tryed to do this not using vlans, with the normal
physical interfaces in the bridge eth0 and eth1,
instead eth0.10 and eth1.10, and of course it works.
But what I am trying to set here is a bridge using
vlans, them if I set eth0 in vlan 10 and eth1 in vlan
20 because the logical interfaces are not in the
bridge it works when it shouldn´t. 

  How can I get this configuration and this Idea to
work?

CAn any of you tell  me why it doesn´t work? 

In the bridge, Do I have to use the the logical
(eth0.10 and eth1.10) or the physical interfaces (eth0
and eth1)?

Do I need PC1 and PC2 to support VLAN and get in PC1
eth0.10 with an IP addres and the same in the PC2?


Can it be because with this I am working with trunck
ports when I should work with acces ports? If so, how
can I set the bridge to work with access ports.

 I will be really pleased if you can help me here,
because I need it for my final degree project and time
is running out.

 Thank you for your time, I apreciate it.

Jose Luis Abuelo Sebio

___
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


[leaf-user] Problems VLAN + Bridge

2003-06-25 Thread Jose Luis Abuelo Sebio
Hello everyone:

  I am trying to set up a easy configuration using a
bridge with Vlan Support, but I am having a few
problems with it and I don´t know why. Let´s see if
you can help me out here.

  Here I show you the configuration


 ---
 - PC1 -
 ---
- eth0 192.168.1.127
-
-
-
- eth0 (No IP address) (eth0.10 for the vlan)
 ---
 - br0 -
 ---
-  eth1 (No IP address) (eth1.10 for the vlan)
-
-
- eth0 192.168.1.129
 ---
 - PC2 -
 ---

  
  What I am trying to get here is set a brige using
vlans. 

   I am using Bering rc4 with bridge support and vlan
support. First I set the interfaces in the bridge Br0
with no IP address

ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up

  then I create the Vlans, eth0 and eth1 will belong
to vlan10
  vconfig add eth0 10
  vconfig add eth1 10
  
 So with this if I go to /proc/net/vlan
I have the interfaces eth0.10 and eth1.10 with no IP
address as we want for the bridge right?

 I set eth0.10 and eth1.10 up with ifconfig

ifconfig eth0.10 up
ifconfig eth1.10 up

 
  now I create the bridge

brctl addbr br0
brctl stp br0 off

so now I add the logical interfaces eth0.10 and
eth1.10 to the bridge

brctl addif br0 eth0.10
brctl addif br0 eth1.10

now I have what I think I need to et all the
configuration to work, right?
so I set the interface br0 up
ifconfig br0 up

  As I think and as I readed in the tutorials and
guides I found in the internet, this configuration
should work. I should be able to ping from PC1 to PC2
because they are in the same vlan (PC1 and PC2 are
using windows98 because my teacher says that the hosts
that are not bridges dont have to support Vlan, so we
can work with the normal interfaces)

  The problem is that, this doesn´t work, and I don´t
now why I can not get a response for a ping to PC1
from PC2 or from PC2 to PC1.

 I tryed to do this not using vlans, with the normal
physical interfaces in the bridge eth0 and eth1,
instead eth0.10 and eth1.10, and of course it works.
But what I am trying to set here is a bridge using
vlans, them if I set eth0 in vlan 10 and eth1 in vlan
20 because the logical interfaces are not in the
bridge it works when it shouldn´t. 

  How can I get this configuration and this Idea to
work?

CAn any of you tell  me why it doesn´t work? 

In the bridge, Do I have to use the the logical
(eth0.10 and eth1.10) or the physical interfaces (eth0
and eth1)?

Do I need PC1 and PC2 to support VLAN and get in PC1
eth0.10 with an IP addres and the same in the PC2?

Can it be because with this configuration I am working
with truck ports in the bridge, when I shoud be
working with access ports? If so how can I configure
the bridge with access ports?

 I will be really pleased if you can help me here,
because I need it for my final degree project and time
is running out.

 Thank you for your time, I apreciate it.

Jose Luis Abuelo Sebio

___
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