Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network manager not displaying BRIDGE option
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
archenroot
Apprentice
Apprentice


Joined: 13 Dec 2011
Posts: 218
Location: Lake Macha, Czech republic

PostPosted: Mon Aug 16, 2021 1:12 pm    Post subject: Network manager not displaying BRIDGE option Reply with quote

I have 1gbit and 10gbit network. I would like to bridge them, there is nice article here on this: https://wiki.gentoo.org/wiki/Network_bridge

but I noticed in 2 documentations of network manager that it can do it as well:
https://docs.fedoraproject.org/en-US/Fedora/25/html/Networking_Guide/ch-Configure_Network_Bridging.html
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-configure_network_bridging_using_a_gui

But I cannot see such Brige tab on mine.
net-misc/networkmanager connection-sharing dhcpcd gnutls iwd resolvconf nftables -systemd -teamd iptables
Installed versions: 1.32.4

is it missing or disabled in Gentoo?
_________________
Emperor wants to control outer space Yoda wants to explore inner space that's the fundamental difference between good and bad sides of the Force
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3872

PostPosted: Mon Aug 16, 2021 4:15 pm    Post subject: Reply with quote

No.
Not disabled.
Plz first make sure you have complete FULL iptables kernel config.
Then although not really needed
Code:

emerge -av bridge-utils ebtables

Then use nmcli to create it.
Code:

nmcli con add type bridge con-name br0 ifname br0 <ip4 10.0.0.3/24 gw4 10.0.0.1>
nmcli con add type bridge-slave con-name br0-slave0 ifname eth0 master br0
nmcli con add type bridge-slave con-name br0-slave1 ifname eth1 master br0
#nmcli con mod br0 ipv4.dns 1.1.1.1 ipv4.method manual
nmcli con up br0

plz modify accordingly to reflect your network.
_________________
:)
Back to top
View user's profile Send private message
archenroot
Apprentice
Apprentice


Joined: 13 Dec 2011
Posts: 218
Location: Lake Macha, Czech republic

PostPosted: Tue Aug 17, 2021 1:58 am    Post subject: Reply with quote

Thank you very much, I will put your content to this page, because its very nice simple example of how to do it some other way then documented on the page, I feel its relevant: https://wiki.gentoo.org/wiki/Network_bridge

my request was bit incomplete, but as per attached links to fedora and redhat they use GUI network manager and for that package I stated:
But I cannot see such Brige tab on mine.

So I was referring to this package actually: kde-frameworks/networkmanager-qt - I created bug request: https://bugs.gentoo.org/808597

Sorry for mistake on specification in my original post and thank you for reply.
_________________
Emperor wants to control outer space Yoda wants to explore inner space that's the fundamental difference between good and bad sides of the Force
Back to top
View user's profile Send private message
archenroot
Apprentice
Apprentice


Joined: 13 Dec 2011
Posts: 218
Location: Lake Macha, Czech republic

PostPosted: Tue Aug 17, 2021 2:24 am    Post subject: Reply with quote

I added your content to: https://wiki.gentoo.org/wiki/Network_bridge#Using_NetworkManager
_________________
Emperor wants to control outer space Yoda wants to explore inner space that's the fundamental difference between good and bad sides of the Force
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3872

PostPosted: Tue Aug 17, 2021 8:41 am    Post subject: Reply with quote

Thanks.
:)
The brackets <> should be omitted.I just used them to indicate optional config in case of static ip.
Also this line is related to static ip
Code:

nmcli con mod br0 ipv4.dns 1.1.1.1 ipv4.method manual

In case of dhcp just omit the bracketed part and the above line.
Also in your case you created a bridge with two slaves.
But the most common usage is to create a bridge with the main ethernet iface as slave.
This case is used for KVM in case one wants to assign LAN ip to VM as opposed to using the internal NAT networks.
One replaces ,that is, the eth0 with br0 and eth0 becomes the sole slave of the bridge.
The br0 becomes the main interface providing network connectivity both to the host and also the guest VMs.
_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum