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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-12-2017, 10:27 AM
|
#1
|
LQ Newbie
Registered: May 2017
Posts: 1
Rep: 
|
Virtual Network Bridge
Hi,
I am trying to create a virtual network bridge.
I am running cent os via virtualbox. I have two virtual networks. I want to connect to the host operating system via a network bridge. Could you please let me know what I doing wrong. My set up is as follows:
Host computer NIC settings:
enp0s3:
TYPE=Ethernet
DEVICE=enp0s3
NAME=enp0s3
UUID=1737f7ds-a5a9-4253-93ef-fdeb4663100e
ONBOOT=no
BRIDGE=br0
br0:
DEVICE=br0
BOOTPROTO=static
ONBOOT=yes
IPADDR=xxx.xxx.xxx.xxx
NETMASK=255.255.255.0
GATEWAY=xxx.xxx.xxx.xxx
TYPE=Bridge
NM_CONTROLLED=no
DNS1=x.x.x.x
DNS2=x.x.x.x
ip addr br0:
3: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN qlen 1000
link/ether 6e:3e:0c:24:53:bc brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global br0
valid_lft forever preferred_lft forever
inet6 fe80::6c3e:cff:fe24:53bc/64 scope link
valid_lft forever preferred_lft forever
ip addr enp0s3:
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:ae:63:45 brd ff:ff:ff:ff:ff:ff
brctl show br0:
[root@localhost network-scripts]# brctl show br0
bridge name bridge id STP enabled interfaces
br0 8000.000000000000 no
Please let me know if you need any more information.
Thanks
|
|
|
05-12-2017, 06:50 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 20,014
|
The easiest way to bridge to the host network in VirtualBox is this:
Shut down the VM.
In the Virtualbox settings for that VM, go to "Network," then select a bridged network in the "Attach to" dialog (the default is "NAT").
Reboot. You should have a bridge network in you LAN.
If not, shut down again, go back to the "Network" dialog, click the little "Advanced" arrow. There may be several adapters listed. VB is usually pretty good at selecting the correct on by default, but, if it hasn't done so, try each one until you find the one that works.
|
|
|
All times are GMT -5. The time now is 11:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|