Posts

Showing posts from March, 2023

Persistent configure of bridge by use of YAML

Image
 This is a persistent Configuration of the bridge by use of YAML Default  YAML file 01-network-manager-all.yaml  is the default  YAML file for network configuration. we need to edit according to the need. First, we configure the interface in the YAML file and Apply it to ubuntu 22.04 Linux YAML is spaces for indentation, for example, a network is an object have a key: value pair version is key and 2 is a value with the use of double spaces as an indent from the network . object =network key = renderer value = networkd

Bridge Network Example

Image
 There are many utilities from the bridge Network like bridge-util ,   iproute2 ,netplen, nmcil and ebtables, etc. Here we use iproute2: Man page of IP command The Frist OBJECT link is used for devices at the Layer 2 (data link connectivity )levels.  The subcommand of the link Object are:  show, set, add, and del . For example in the above image   ip -c -br link show:  Show Layer 2 info about the devices  the Layer 2 information of both interfaces lo and enp0s3 for the default bridge To Group the devices zero is the default group so we can create a new group 1 to the vi group file name red. we can modify the attributes  sudo ip link set  dev lo group red  sudo ip link set  dev enp0s3 group red sudo ip link show group red sudo ip link set  dev enp0s3 up or sudo ip link set  dev enp0s3 down sudo ip link del dev docker0 (Delet docker0 virtual bridge) sudo ip link add dev mybridge type bridge (Add mybridge virtual bridge wit...