From: alexei@taf.ru To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: Re: [devel] etcnet and bridge (vlan_filtering) Date: Wed, 17 Nov 2021 17:24:42 +0800 (IRKT) Message-ID: <1130187550.980138.1637141082055.JavaMail.zimbra@taf.ru> (raw) In-Reply-To: <202111171205.03316.asy@altlinux.org> Приветствую! ----- Исходное сообщение ----- > От: "Sergey Afonin" <asy@altlinux.org> > Кому: "ALT Linux Team development discussions" <devel@lists.altlinux.org> > Отправленные: Среда, 17 Ноябрь 2021 г 16:05:03 > Тема: Re: [devel] etcnet and bridge (vlan_filtering) > On Monday 26 November 2018, Alexey Shabalin wrote: > >> > > brctrl кусок legacy, который давно все повыкидывали. >> > > Предлагается изменить этот файл, ориентируясь на ip: >> > Извините, у меня он используется на десятке машин. Когда >> > будете выкидывать, сообщите, пожалуйста, что и на что менять. >> >> Подскажите, что у вас прописано в этих файлах, что бы я подсказал на >> что заменить. > > Я тоже, наконец, добрался. > > ether0 > ether0.899 > > ether1 > ether1.899 > > bridge0: > > TYPE=bri > HOST='ether0.899 ether1.899' > > bridge0.900 > > TYPE=vlan > HOST=bridge0 > VID=900 > > То есть в бридж объединяются два VLAN. Далее в этом > бридже должны ходить другие VLAN. В p8 конфигурация > работает, в p9 (и, видимо, далее - нет). > > И интерфейс bridge0.900 не работает, и если на физические > интерфейсы навесить кого-то с X.899.900, то через бридж > трафик не ходит. > > tcpdump -eni ether0 показывает, что нужное прилетает: > > 12:00:50.979026 00:1c:c0:18:fc:89 > Broadcast, ethertype 802.1Q (0x8100), length > 60: vlan 899, p 0, ethertype 802.1Q, vlan 900, p 0, ethertype ARP, Request > who-has 10.10.10.252 tell 10.10.10.254, length 38 > > Но вот на выходе (ether1) 899 куда-то срезается: > > 12:02:05.730383 00:1c:c0:18:fc:89 > Broadcast, ethertype 802.1Q (0x8100), length > 56: vlan 900, p 0, ethertype ARP, Request who-has 10.10.10.252 tell > 10.10.10.254, length 38 В options у ether0.899 ether1.899 и bridge0.900 пропишите VLAN_REORDER_HDR=1. Как раз это значение по-умолчанию при переходе p8 -> p9 у etcnet поменялось. Не совсем понятно зачем. И еще, на ether0, ether1 и bridge0 mtu должно быть больше или равно 1504 Пример на BRAS'е с qinq: клиентский интерфейс SVLAN.CVLAN (3064.1000) # ip link show dev pppe3064.1000 2376889: pppe3064.1000@ipoe3064: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000 link/ether 00:1b:21:bc:ef:46 brd ff:ff:ff:ff:ff:ff SVLAN: # ip link show dev ipoe3064 73: ipoe3064@bondDOWN: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc noqueue state UP mode DEFAULT group default qlen 1000 link/ether 00:1b:21:bc:ef:46 brd ff:ff:ff:ff:ff:ff /etc/net/ifaces/ipoe3064/options: TYPE=vlan HOST=bondDOWN VLAN_REORDER_HDR=1 VID=3064 порт сетевой карты: # ip link show dev bondDOWN 3: bondDOWN: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP mode DEFAULT group default qlen 50000 link/ether 00:1b:21:bc:ef:46 brd ff:ff:ff:ff:ff:ff /etc/net/ifaces/bondDOWN/iplink txqueuelen 50000 mtu 1504
next prev parent reply other threads:[~2021-11-17 9:24 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-10-24 18:49 [devel] etcnet and bridge(vlan_filtering) Alexey Shabalin 2018-10-24 21:48 ` Igor Vlasenko 2018-10-24 22:03 ` Alexey V. Vissarionov 2018-10-25 8:30 ` Sergey Afonin 2018-10-25 8:44 ` [devel] [JT] " Michael Shigorin 2018-10-25 9:38 ` [devel] " Mikhail Efremov 2018-11-22 10:21 ` Sergey Afonin 2018-11-22 18:49 ` Leonid Krivoshein 2018-11-23 6:15 ` Sergey Afonin 2018-11-26 1:57 ` Vitaly Lipatov 2018-11-26 12:21 ` Alexey Shabalin 2018-12-03 10:58 ` Sergey Afonin 2018-12-08 10:19 ` Vitaly Lipatov 2021-11-17 8:05 ` [devel] etcnet and bridge (vlan_filtering) Sergey Afonin 2021-11-17 9:24 ` alexei [this message] 2021-11-17 10:10 ` Sergey Afonin 2021-11-17 10:51 ` Sergey Afonin 2021-11-17 10:56 ` alexei 2021-11-17 11:35 ` Sergey Afonin 2021-11-17 12:59 ` Sergey Afonin 2018-11-25 20:23 ` [devel] etcnet and bridge(vlan_filtering) Anton Gorlov 2018-11-25 23:07 ` Alexey Shabalin 2018-11-26 12:23 ` Alexey Shabalin 2018-11-25 20:49 ` Anton Gorlov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1130187550.980138.1637141082055.JavaMail.zimbra@taf.ru \ --to=alexei@taf.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git