View previous topic :: View next topic |
Author |
Message |
archenroot Apprentice
Joined: 13 Dec 2011 Posts: 218 Location: Lake Macha, Czech republic
|
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3872
|
Posted: Mon Aug 16, 2021 4:15 pm Post subject: |
|
|
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 |
|
|
archenroot Apprentice
Joined: 13 Dec 2011 Posts: 218 Location: Lake Macha, Czech republic
|
Posted: Tue Aug 17, 2021 1:58 am Post subject: |
|
|
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 |
|
|
archenroot Apprentice
Joined: 13 Dec 2011 Posts: 218 Location: Lake Macha, Czech republic
|
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3872
|
Posted: Tue Aug 17, 2021 8:41 am Post subject: |
|
|
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 |
|
|
|