LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting up bridge interface (https://www.linuxquestions.org/questions/linux-newbie-8/setting-up-bridge-interface-4175624963/)

abukapsoun 03-05-2018 04:02 AM

Setting up bridge interface
 
Hi,

I am installing Openstack and I am trying to set up the bridge, however when the system restart, I can see my physical interface takes the same IP as the bridge.
If I bring down/ up using ifdown/ ifup the IP dissapears from the interface.

Why and How the physical interface is taking an IP on boot while it shouldnt?

Below is my configuration

vi /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE=OVSPort
NAME=ens33
DEVICE=ens33
DEVICETYPE=ovs
OVS_BRIDGE=br-ex
ONBOOT=yes


vi /etc/sysconfig/network-scripts/ifcfg-br-ex
DEVICE=br-ex
DEVICETYPE=ovs
TYPE=OVSBridge
BOOTPROTO=static
IPADDR=192.168.187.128
NETMASK=255.255.255.0
GATEWAY=192.168.187.2
IPV4_FAILURE_FATAL=no
IPV6INIT=no
ONBOOT=yes

X-LFS-2010 03-05-2018 09:35 PM

https://www.freebsd.org/doc/en_US.IS...-bridging.html

a bridge can connect different networks between two computers using just one network interface card (nic) in each computer

as for OS view, a bridge sits on a network card and has possibly many IPs, the network card "does not have the IP"

frames are transferred between network cards: IP is an interface protocol (it's not the only one, but popular), TCP is on top of IP is the "software layer" or delivery agent that uses IP's input/output of frames.

SUMMARY: IP address is used in delivering (parts of frames, packets) to software using "an IP" that is merely associated (possibly negotiated with foreign computers, possibly not) with the hardware

If you use an iMac, it uses BSD-like userland (ifconfig is present). If you use Settings (desktop) to add a network, Apple software automatically uses Bridging to do it (noting other OS'es might use TCP/IP and want one IP per NIC or require tunneling if one has only one NIC for many nets: not so with Bridging or Apple Sierra OS).

AwesomeMachine 03-05-2018 11:05 PM

TRry adding this line to both config files
Quote:

NM_CONTROLLED=no
and then
Code:

$ service network restart


All times are GMT -5. The time now is 07:36 AM.