LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2018, 04:02 AM   #1
abukapsoun
LQ Newbie
 
Registered: Mar 2018
Posts: 11

Rep: Reputation: Disabled
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
 
Old 03-05-2018, 09:35 PM   #2
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 423

Rep: Reputation: Disabled
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).

Last edited by X-LFS-2010; 03-05-2018 at 09:38 PM.
 
Old 03-05-2018, 11:05 PM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
TRry adding this line to both config files
Quote:
NM_CONTROLLED=no
and then
Code:
$ service network restart
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't add interface to bridge Hattablinux Linux - Wireless Networking 2 09-01-2016 06:13 AM
Help setting up bridge interface Cr85bro13 Linux - Networking 1 09-04-2013 09:00 AM
Bridge between ethernet interface and tap interface jayadhanesh Linux - Networking 3 04-12-2009 11:32 PM
can't bridge ppp0 interface a550ee Linux - Networking 2 07-16-2007 03:07 AM
why do an interface bridge? e1000 Linux - Networking 2 01-06-2004 08:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration