<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Proxmox_2.2%3A_Menggunakan_Beberapa_NIC</id>
	<title>Proxmox 2.2: Menggunakan Beberapa NIC - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Proxmox_2.2%3A_Menggunakan_Beberapa_NIC"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Proxmox_2.2:_Menggunakan_Beberapa_NIC&amp;action=history"/>
	<updated>2026-04-20T20:30:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Proxmox_2.2:_Menggunakan_Beberapa_NIC&amp;diff=36713&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: Sumber: http://pve.proxmox.com/wiki/Network_Model  Proxmox VE uses a bridged networking model. Each host can have up to 4094 bridges. Bridges are like physical network switches implemented...</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Proxmox_2.2:_Menggunakan_Beberapa_NIC&amp;diff=36713&amp;oldid=prev"/>
		<updated>2013-04-23T22:20:55Z</updated>

		<summary type="html">&lt;p&gt;New page: Sumber: http://pve.proxmox.com/wiki/Network_Model  Proxmox VE uses a bridged networking model. Each host can have up to 4094 bridges. Bridges are like physical network switches implemented...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sumber: http://pve.proxmox.com/wiki/Network_Model&lt;br /&gt;
&lt;br /&gt;
Proxmox VE uses a bridged networking model. Each host can have up to 4094 bridges. Bridges are like physical network switches implemented in software on the Proxmox VE host. All VMs can share one bridge as if virtual network cables from each guest were all plugged into the same switch. For connecting VMs to the outside world, bridges are attached to physical network cards assigned a TCP/IP configuration. For further flexibility, VLANs (IEEE 802.1q) and network [[bonding]]/aggregation are possible. In this way it is possible to build complex, flexible virtual networks.&lt;br /&gt;
&lt;br /&gt;
The network configuration is usually changed using the web interface. Changes are stored to &amp;lt;code&amp;gt;/etc/network/interfaces.new&amp;lt;/code&amp;gt;, and are activated when you reboot the host. Actual configuration resides in &amp;lt;code&amp;gt;/etc/network/interfaces&amp;lt;/code&amp;gt;. The following examples list the contents of that file.&lt;br /&gt;
&lt;br /&gt;
==Default Configuration (bridged)==&lt;br /&gt;
The installation program creates a single bridge (vmbr0), which is connected to the first ethernet card (eth0).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
auto lo&lt;br /&gt;
iface lo inet loopback&lt;br /&gt;
iface eth0 inet manual&lt;br /&gt;
&lt;br /&gt;
auto vmbr0&lt;br /&gt;
iface vmbr0 inet static&lt;br /&gt;
        address 192.168.10.2&lt;br /&gt;
        netmask 255.255.255.0&lt;br /&gt;
        gateway 192.168.10.1&lt;br /&gt;
        bridge_ports eth0&lt;br /&gt;
        bridge_stp off&lt;br /&gt;
        bridge_fd 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Virtual machine behave as if they were directly connected to the physical network. The network, in turn, sees each virtual machine as having its own MAC, even though there is only one network cable connecting all of these VMs to the network.&lt;br /&gt;
&lt;br /&gt;
==Routed Configuration==&lt;br /&gt;
Most hosting providers do not support the above setup. For security reasons they disable networking as soon as they detect multiple MAC addresses on a single interface. &lt;br /&gt;
&lt;br /&gt;
A common setup is a public IP (assume 192.168.10.2 for this example), and additional IP blocks for your VMs (10.10.10.1/255.255.255.0). For such situations we recommend the following setup:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
auto lo&lt;br /&gt;
iface lo inet loopback&lt;br /&gt;
&lt;br /&gt;
auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
        address  192.168.10.2&lt;br /&gt;
        netmask  255.255.255.0&lt;br /&gt;
        gateway  192.168.10.1&lt;br /&gt;
        post-up echo 1 &amp;gt; /proc/sys/net/ipv4/conf/eth0/proxy_arp&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
auto vmbr0&lt;br /&gt;
iface vmbr0 inet static&lt;br /&gt;
        address  10.10.10.1&lt;br /&gt;
        netmask  255.255.255.0&lt;br /&gt;
        bridge_ports none&lt;br /&gt;
        bridge_stp off&lt;br /&gt;
        bridge_fd 0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Masquerading (NAT)===&lt;br /&gt;
In some cases you may want to use private IPs behind your Proxmox host&amp;#039;s true IP, and masquerade the traffic using NAT:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
auto vmbr0&lt;br /&gt;
iface vmbr0 inet static&lt;br /&gt;
        address  10.10.10.1&lt;br /&gt;
        netmask  255.255.255.0&lt;br /&gt;
        bridge_ports none&lt;br /&gt;
        bridge_stp off&lt;br /&gt;
        bridge_fd 0&lt;br /&gt;
&lt;br /&gt;
        post-up echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
        post-up   iptables -t nat -A POSTROUTING -s &amp;#039;10.10.10.0/24&amp;#039; -o eth0 -j MASQUERADE&lt;br /&gt;
        post-down iptables -t nat -D POSTROUTING -s &amp;#039;10.10.10.0/24&amp;#039; -o eth0 -j MASQUERADE&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configuring VLAN in a cluster==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;For the simplest way to create VLAN follow the link&amp;#039;&amp;#039;&amp;#039;: [[vlan|VLAN]]&lt;br /&gt;
&lt;br /&gt;
Goal:&lt;br /&gt;
* Have two separate network on the same NIC&lt;br /&gt;
* Another host (firewall) manage the routing and rule to access to these VMs (out of this doc)&lt;br /&gt;
&lt;br /&gt;
Suppose this scenario:&lt;br /&gt;
* A cluster with two nodes&lt;br /&gt;
* Each node have two NIC&lt;br /&gt;
* We want bonding the NIC&lt;br /&gt;
* We use two network: one untagged 192.168.1.0/24 and one tagged (VLanID=53) 192.168.2.0/24, we must configure the switch with port vlan.&lt;br /&gt;
* We want separate these network at layer 2&lt;br /&gt;
&lt;br /&gt;
===Create bond0===&lt;br /&gt;
First of all we create the bond0 (switch assisted 802.3ad) at the proxmox web interface, follow the video.&lt;br /&gt;
&lt;br /&gt;
At the end we have a /etc/network/interface like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# network interface settings&lt;br /&gt;
auto lo&lt;br /&gt;
iface lo inet loopback&lt;br /&gt;
&lt;br /&gt;
iface eth0 inet manual&lt;br /&gt;
&lt;br /&gt;
iface eth1 inet manual&lt;br /&gt;
&lt;br /&gt;
auto bond0&lt;br /&gt;
iface bond0 inet manual&lt;br /&gt;
	slaves eth0 eth1&lt;br /&gt;
	bond_miimon 100&lt;br /&gt;
	bond_mode 802.3ad&lt;br /&gt;
&lt;br /&gt;
auto vmbr0&lt;br /&gt;
iface vmbr0 inet static&lt;br /&gt;
	address  192.168.1.1&lt;br /&gt;
	netmask  255.255.255.0&lt;br /&gt;
	gateway  192.168.1.250&lt;br /&gt;
	bridge_ports bond0&lt;br /&gt;
	bridge_stp off&lt;br /&gt;
	bridge_fd 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Configure your switch appropriately. If you&amp;#039;re using a bond of multiple links, you need to tell this to your switch and put the switch ports in a Link Aggregation Group or Trunk.&lt;br /&gt;
&lt;br /&gt;
===Create VLAN===&lt;br /&gt;
We have two methods to follow:&lt;br /&gt;
&lt;br /&gt;
====First explicit method====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
auto vlan53&lt;br /&gt;
iface vlan53 inet manual&lt;br /&gt;
	vlan_raw_device bond0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Second method====&lt;br /&gt;
We can use direct the NIC dot VLAN ID, like bond0.53&lt;br /&gt;
&lt;br /&gt;
I prefer the first one!&lt;br /&gt;
&lt;br /&gt;
===Create manually the bridge===&lt;br /&gt;
Now we create manually the second bridge.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
auto vmbr1&lt;br /&gt;
iface vmbr1 inet static&lt;br /&gt;
	address  192.168.2.1&lt;br /&gt;
	netmask  255.255.255.0&lt;br /&gt;
	network  192.168.2.0&lt;br /&gt;
	bridge_ports vlan53&lt;br /&gt;
	bridge_stp off&lt;br /&gt;
	bridge_fd 0&lt;br /&gt;
	post-up ip route add table vlan53 default via 192.168.2.250 dev vmbr1&lt;br /&gt;
	post-up ip rule add from 192.168.2.0/24 table vlan53&lt;br /&gt;
	post-down ip route del table vlan53 default via 192.168.2.250 dev vmbr1&lt;br /&gt;
	post-down ip rule del from 192.168.2.0/24 table vlan53&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* We must not indicate the gateway, we must manually modify the routing table use &amp;#039;&amp;#039;&amp;#039;ip route 2&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* The whole configuration must replicate on the other cluster&amp;#039;s node, the only change is the IP of the node.&lt;br /&gt;
&lt;br /&gt;
===Create the table in ip route 2===&lt;br /&gt;
We must change the file &amp;#039;&amp;#039;&amp;#039;/etc/iproute2/rt_tables&amp;#039;&amp;#039;&amp;#039;, add the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Table for vlan53&lt;br /&gt;
53  vlan53&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
use these commands to add:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
echo &amp;quot;# Table for vlan53&amp;quot; &amp;gt;&amp;gt; /etc/iproute2/rt_tables&lt;br /&gt;
echo &amp;quot;53 vlan53&amp;quot; &amp;gt;&amp;gt; /etc/iproute2/rt_tables&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create the vlan on switch===&lt;br /&gt;
For example on a HP Procurve 52 ports we use the following instructions to create the vlan.&lt;br /&gt;
&lt;br /&gt;
Suppose:&lt;br /&gt;
* Ports 47-48 trunk (switch assisted 802.3ad) for gateway&lt;br /&gt;
* Ports 1-2 trunk (switch assisted 802.3ad) for the first node of cluster proxmox&lt;br /&gt;
* Ports 3-4 trunk (switch assisted 802.3ad) for the second node&lt;br /&gt;
&lt;br /&gt;
Enter in configuration mode and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
trunk 1-2 Trk1 LACP &lt;br /&gt;
trunk 3-4 Trk2 LACP &lt;br /&gt;
trunk 47-48 Trk3 LACP &lt;br /&gt;
vlan 2 &lt;br /&gt;
   name &amp;quot;Vlan2&amp;quot; &lt;br /&gt;
   untagged Trk1-Trk3&lt;br /&gt;
   ip address 192.168.1.254 255.255.255.0 &lt;br /&gt;
   exit &lt;br /&gt;
vlan 53 &lt;br /&gt;
   name &amp;quot;Vlan53&amp;quot; &lt;br /&gt;
   tagged Trk1-Trk3&lt;br /&gt;
   exit &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Test the configuration===&lt;br /&gt;
Reboot the cluster node one by one for testing this configuration.&lt;br /&gt;
&lt;br /&gt;
==Unsupported Routing==&lt;br /&gt;
Physical NIC (eg., eth1) cannot currently be made available exclusively for a particular KVM / Container , ie., without bridge and/or bond.&lt;br /&gt;
&lt;br /&gt;
==Naming Conventions==&lt;br /&gt;
&lt;br /&gt;
* Ethernet devices: eth0 - eth99&lt;br /&gt;
* Allowable bridge names: vmbrn, where 0 ≤ n ≤ 4094	&lt;br /&gt;
* Bonds: bond0 - bond9&lt;br /&gt;
* VLANs: Simply add the VLAN number to the ethernet device name, separated by a period. For example &amp;quot;eth0.50&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Video Tutorials==&lt;br /&gt;
*[http://www.youtube.com/proxmoxve Proxmox VE YouTube Channel]&lt;br /&gt;
*[[Bond configuration (Video)]]&lt;br /&gt;
*[[Bridge configuration (Video)]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* http://pve.proxmox.com/wiki/Network_Model&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>