Return-Path: From: Rohan Sen Date: Wed, 3 Sep 2014 09:56:09 +0000 Message-ID: Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_c531a97fc4f445ea8ea9aa5c860ebcc5EX13MBX010vmwarecom_" MIME-Version: 1.0 Subject: [Bridge] Parsing /etc/network/interfaces List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "bridge@lists.linux-foundation.org" --_000_c531a97fc4f445ea8ea9aa5c860ebcc5EX13MBX010vmwarecom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, When I configure a bunch of ports in access mode (with single native VLAN s= ay 100) and associate them to a Bridge I don't see any way the system can f= ind out what the VLAN ID is used by these ports after a restart. For such configuration /etc/network/interfaces may have something like: Auto swp1 Iface swp1 inet manual Auto swp1 Iface swp2 inet manual Auto bridge-primary Iface bridge-primary inet manual Bridge_ports swp1 swp2 The command I used to associate VLAN 100 with swp1 and swp2 were ip link add link swp1 type vlan id 100 ip link add link swp2 type vlan id 100 Are these commands at all required? If not it again raises the same questio= n as just by reading contents of /etc/network/interfaces how does brctl kno= w which port belongs to which native VLAN? Nowhere did I mention which VLAN are tied to these ports. I did not keep th= e bridge name also contain the VLAN ID (I could name it anything, right?). I am confused because without the knowledge that native VLAN of swp1 and sw= p2 is 100 how can we maintain such associations across reboots? Thanks and regards, Rohan Sen --_000_c531a97fc4f445ea8ea9aa5c860ebcc5EX13MBX010vmwarecom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

When I configure a bunch of ports in access mode (wi= th single native VLAN say 100) and associate them to a Bridge I don’t= see any way the system can find out what the VLAN ID is used by these port= s after a restart.

For such configuration /etc/network/interfaces may h= ave something like:

 

Auto swp1

Iface swp1 inet manual

 

Auto swp1

Iface swp2 inet manual

 

Auto bridge-primary

Iface bridge-primary inet manual

      Bridge_ports swp1 swp= 2

 

The command I used to associate VLAN 100 with swp1 a= nd swp2 were

 

ip link add link swp1 type vlan id 100

ip link add link swp2 type vlan id 100

 

Are these commands at all required? If not it again = raises the same question as just by reading contents of /etc/network/interf= aces how does brctl know which port belongs to which native VLAN?

 

Nowhere did I mention which VLAN are tied to these p= orts. I did not keep the bridge name also contain the VLAN ID (I could name= it anything, right?).

I am confused because without the knowledge that nat= ive VLAN of swp1 and swp2 is 100 how can we maintain such associations acro= ss reboots?

 

Thanks and regards,

Rohan Sen

--_000_c531a97fc4f445ea8ea9aa5c860ebcc5EX13MBX010vmwarecom_--