I am working on a network simulator program to control different stats of outgoing network.
Issue:
Unable to get internet connectivity through LAN ports which are part of the bridge.
Setup:
Gigabyte server machine with 5 ethernet LAN ports (Individually all the ports are working properly)
Ubuntu Server 20.04, no UI.
Current setup of LAN Interfaces:
Port enp4s0: Primary port for internet connectivity (Not part of any bridge)
Bridge: br0 (Having 4 lan interfaces)
- Port enp2s0f0: Lan Cable connected to Router with Internet connectivity)
- Port enp2s0f1: Out Lan Cable for internet access to Machine X
- Port enp3s0f0: Out Lan Cable for internet access to Machine Y
- Port enp3s0f1: Out Lan Cable for internet access to Machine Z
I have tried creating the bridge using following Ubuntu utilities:
ip link
netplan
nmcli
With all these utilities the bridge gets created successfully. But on Machine X, Y and Z there is still no internet connectivity.
Yaml file for netplan
anshul@simulator:~$ cat /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
ethernets:
enp2s0f0:
dhcp4: false
enp2s0f1:
dhcp4: false
enp3s0f0:
dhcp4: false
enp3s0f1:
dhcp4: false
enp4s0:
dhcp4: true
version: 2
bridges:
br0:
dhcp4: true
interfaces:
- enp2s0f0
- enp2s0f1
- enp3s0f0
- enp3s0f1
br0 bridge is getting the IP address also: (ssh to this ip is also working fine)
anshul@simulator:~$ sudo ifconfig
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.120 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::87c:43ff:fed2:20fb prefixlen 64 scopeid 0x20<link>
ether 00:1b:21:89:70:78 txqueuelen 1000 (Ethernet)
RX packets 3208 bytes 1444271 (1.4 MB)
RX errors 0 dropped 85 overruns 0 frame 0
TX packets 1220 bytes 137380 (137.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
I have already spent quite a considerable amount of time on this, any pointers will be highly appreciated.