Network Bridge - Debian
Network Bridge - Debian
If you would like your virtual machines to be visible on your network and have them
accept connections from other computers and devices on your network, so they appear as
tho they were distinct physical machines, then you need to create what is called a
Network Bridge. This process will "share" the physical network adapter on your host
computer with each of the virtual machines. You can only configure a Network Bridge
using a wired network adapter. It is not possible to use a wireless device for this.
You need to make a couple of changes to a file on the host computer. So, issue the
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
following command either from a Putty Session or from a Terminal (Applications ->
Accessories -> Terminal). You could of course do this directly from the command line on
your server:
Note: If you're currently using a fixed IP address then the auto eth0 section of the
file will look different to the above.
If you're not familiar with using the vim editor then you press the [Insert] key once to
switch into "edit mode" to allow you to type or paste new content into the file.
auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
Don't forget to mask out the auto eth0 and iface eth0 inet dhcp lines
Once you've made the changes then press the [Esc] key once and type :wq to save and
quit out of the file. If you make a mistake then issue :q! instead of :wq to abort your
changes.
Once you've made the changes to the file then issue the following command to make them
active:
obviously you must substitute the values for address, broadcast, netmask & gateway
to those applicable to your own network. Don't simply use the ones that work in my
setup!
If you're not familiar with using the vim editor then you press the [Insert] key once to
switch into "edit mode" to allow you to type or paste new content into the file.
auto br0
iface br0 inet static
address 192.168.1.200
broadcast 192.168.1.255
netmask 255.255.255.0
gateway 192.168.1.254
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
Don't forget to mask out the auto eth0 and iface eth0 inet dhcp lines
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Once you've made the changes then press the [Esc] key once and type :wq to save and
quit out of the file. If you make a mistake then issue :q! instead of :wq to abort your
changes.
Once you've made the changes to the file then issue the following command to make them
active:
Still stuck? Not what you were looking for? Then head over to the Discussion Forum
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com