lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEFUPH20oR-dmaAxvpbYw7ehYDRGoA1kiv5Z+Bkiz7H+0XvZeA@mail.gmail.com>
Date: Thu, 24 Oct 2024 08:15:50 -0700
From: SIMON BABY <simonkbaby@...il.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: netdev@...r.kernel.org
Subject: Re: query on VLAN with linux DSA ports

Thank you.

I have the below query specific to linux.

I read that there are two approaches for VLAN configuration in Linux.

The traditional way of creating a vlan interface and assigning an IP
address to the interface and the vlan aware bridge. Do you recommend a
better way from these two approaches? Any advantages of using vlan
aware bridges?

option 1:

ip link set dev eth0 up
ip link add link eth0 name eth0.10 up type vlan id 10
ip addr add dev eth0.10 192.0.2.2/24
ip route add default via 192.0.2.1 dev eth0.10

option 2:

ip link add name br0 type bridge vlan_filtering 1
ip link set dev eth0 master br0
ip link set br0 up
bridge vlan add vid 10 dev br0 pvid untagged self
bridge vlan add vid 10 dev eth0 pvid
ip addr add 192.0.2.2/24 dev br0
ip route add default via 192.0.2.1



Regards
Simon

On Thu, Oct 24, 2024 at 7:29 AM Andrew Lunn <andrew@...n.ch> wrote:
>
> On Thu, Oct 24, 2024 at 07:14:28AM -0700, SIMON BABY wrote:
> > Hello Team,
> >
> > Can I know what is the best way of  implementing VLAN on linux DSA user ports ?
>
> Ignore the fact these are ports on a switch. How would you do this if
> for any sort of linux interface?
>
>         Andrew

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ