Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
info:hosting:basics:bridging [2018/01/09 09:55]
Thibmo created
info:hosting:basics:bridging [2018/01/09 17:11]
Thibmo
Line 1: Line 1:
 ====== Bridging Basics ====== ====== Bridging Basics ======
 +{{page>:​disclaimer_widget&​noheader&​nofooter&​noeditbtn}}
 +For certain cases one might wish to create bridged network interfaces.\\
 +A great example would be when hosting containerized environments and VMs.
 +
 +<WRAP center round important>​
 +To follow this example you are required to login as user root.\\
 +If you don't have the password of the root user you can use __//​sudo//​__ instead.
 +</​WRAP>​
 +
 +===== Setup =====
 +**Debian/​Ubuntu:​**\\
 +There is only one step to the installation:​ <code bash>​apt-get update; apt-get upgrade -y; apt-get install bridge-utils</​code>​
 +
 +===== Interface (Bridge) creation =====
 +**Debian/​Ubuntu:​**
 +  - Edit your interface configuration file: <code bash>​nano /​etc/​network/​interfaces</​code>​
 +  - Append the configuration with the following: <code bash>​auto bridge0
 +iface bridge0 inet static
 +        bridge_ports none
 +        bridge_fd 0
 +        bridge_maxwait 0
 +        address <​Interface IP address, like 192.168.10.1>​
 +        netmask <Subnet mask, like 255.255.255.0></​code>​