LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-07-2018, 03:14 PM   #1
Andreas2512
LQ Newbie
 
Registered: Mar 2018
Posts: 1

Rep: Reputation: Disabled
Linux Bridges not working properly with VLANs (Debian)


So recently I tried to set up my home network around VLANs...

I wanted to have 3 different networks:
  • Vlan 10 for the main and management network
  • Vlan 20 as the guest lan
  • vlan 100 as P2P Net (Modem -> Pfsense)
All managed by my server running a hypervisor(Proxmox) in my basement.

For routing between the different Vlans and to the Internet I run Pfsense as a Guest on server.

Now I have the problem that traffic going in and out (and even only between the VMs) from the server, a big chunk of the traffic gets lost so e.g. a TCP socket collapses only in a few seconds.

The Server is a HP DL580 G7 with a HP NC375i NIC.
For the switch on the other end I use a Netgear GS105E-200PES - but that works just fine e.g. traffic only going through this switch works just fine.

I also made a Network topology so it's better understandable (yes it was made in paint - don't punish me )

For the bridge configuration .. I tried every combination I know of:

Linux Bridge with VLAN aware:
Code:
auto lo
iface lo inet loopback

iface enp4s0f0 inet manual

iface enp4s0f1 inet manual

iface enp4s0f2 inet manual

iface enp4s0f3 inet manual

auto vmbr0
iface vmbr0 inet manual
        bridge_ports enp4s0f0
        bridge_stp off
        bridge_fd 0
        bridge_vlan_aware yes

auto vmbr0.10
iface vmbr0.10 inet static
        address  10.0.0.1
        netmask  255.255.255.0
Every VLAN one bridge:
Code:
auto lo
iface lo inet loopback

iface enp4s0f1 inet manual

iface enp4s0f2 inet manual

iface enp4s0f3 inet manual

iface enp4s0f0 inet manual

auto vmbr10
iface vmbr10 inet static
        address  10.0.0.1
        netmask  255.255.255.0
        gateway  10.0.0.254
        bridge_ports enp4s0f0.10
        bridge_stp off
        bridge_fd 0

auto vmbr20
iface vmbr20 inet manual
        bridge_ports enp4s0f0.20
        bridge_stp off
        bridge_fd 0

auto vmbr100
iface vmbr100 inet manual
        bridge_ports enp4s0f0.100
        bridge_stp off
        bridge_fd 0

auto vmbr110
iface vmbr110 inet manual
        bridge_ports enp4s0f0.110
        bridge_stp off
        bridge_fd 0
And with Open vSwitch:
Code:
 auto vmbr0
 iface vmbr0 inet manual
    ovs_type OVSBridge
    ovs_ports enp4s0f0
    ovs_ports enp4s0f0 vmbr0-mgmt

allow-vmbr0 vmbr0-mgmt
iface vmbr0-mgmt inet static
    address  10.0.0.1
    netmask  255.255.255.0
    gateway  10.0.0.254
    ovs_type OVSIntPort
    ovs_bridge vmbr0
    ovs_options tag=10
Any help would be much appreciated

Last edited by Andreas2512; 03-09-2018 at 07:10 AM.
 
Old 03-09-2018, 11:07 AM   #2
Sader881
LQ Newbie
 
Registered: Jun 2009
Location: Oklahoma
Distribution: Ubuntu, Red Hat, Fedora. Depends on the project.
Posts: 17

Rep: Reputation: 1
Are you basically trying to use the bridge for inter vlan routing?

I recently ran into a similar issue and it was solved at the switch level with ip helpers. Your netgear may or may no support it though.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RTL8188EE wifi card not working properly Debian 8 andrewz1123 Linux - Networking 1 11-28-2016 03:03 PM
LXer: LFCE Prep Course -- LANs, WANs, VLANs and Bridges (Part 3) LXer Syndicated Linux News 0 07-24-2016 09:44 AM
[SOLVED] Apache not working properly after update to Debian 8 maples Linux - Newbie 5 04-30-2015 05:42 PM
[SOLVED] Sound not working properly on Runescape (Java) (Details in post) - Debian GNU/Linux DebianUserfg Linux - Newbie 10 07-03-2011 07:49 PM
[SOLVED] sound is not working properly on debian testing(squeeze) mf93 Linux - Hardware 2 10-10-2009 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration