Answer the question
In order to leave comments, you need to log in
Why is the bridge not working?
Hello.
Perhaps there is something I don't know.
There are 2 NICs on the server.
em1 is connected directly to the provider.
em4 on the local network.
Set up a br0 bridge and bind em4 to it.
em4
[[email protected] network-scripts]# cat ifcfg-em4
ONBOOT=yes
BRIDGE=br0
TYPE=Ethernet
DEVICE=em4
NAME="System em4"
UUID=17b7e246-327c-76fb-6648-b59ca1bdc81e
[[email protected] network-scripts]# cat ifcfg-br0
DEVICE=br0
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=static
IPADDR=172.16.100.149
NETMASK=255.255.255.0
GATEWAY=172.16.100.10
DNS1=8.8.8.8
DNS2=77.88.8.8
STP=no
PROXY_METHOD=none
BROWSER_ONLY=no
PREFIX=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME="Bridge br0"
UUID=d2d68553-f97e-7549-7a26-b34a26f29318
ZONE=internal
[[email protected] network-scripts]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=2 ttl=45 time=142 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=45 time=142 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=45 time=142 ms
^C
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 3 received, 25% packet loss, time 3000ms
rtt min/avg/max/mdev = 142.177/142.415/142.608/0.471 ms
[[email protected] network-scripts]#
[[email protected] network-scripts]# cat ifcfg-em1
ONBOOT=yes
BRIDGE=br1
TYPE=Ethernet
DEVICE=em1
NAME="System em1"
UUID=1dad842d-1912-ef5a-a43a-bc238fb267e7
[[email protected] network-scripts]#
[[email protected] network-scripts]# cat ifcfg-br1
DEVICE=br1
BOOTPROTO=none
ONBOOT=yes
TYPE=Bridge
STP=no
PROXY_METHOD=none
BROWSER_ONLY=no
IPADDR=31.xx.xx.205
PREFIX=29
GATEWAY=31.xx.xx.201
DNS1=8.8.8.8
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME="Bridge br1"
UUID=2ee981ca-5ff4-4f9b-03fe-32879aa3dc85
[[email protected] network-scripts]#
[[email protected] network-scripts]# ping -I br1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 31.xx.xx.205 br1: 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 3999ms
[[email protected] network-scripts]#
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question