<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>bridging-virtualbox &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/bridging-virtualbox/</link>
	<description>Feed of posts on WordPress.com tagged "bridging-virtualbox"</description>
	<pubDate>Tue, 01 Dec 2009 23:46:08 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Networking di virtual box (konfigurasi host interface networking &amp; bridging) ubuntu linux]]></title>
<link>http://w3hol.wordpress.com/2008/07/25/networking-di-virtual-box-konfigurasi-host-interface-networking-bridging-ubuntu-linux/</link>
<pubDate>Fri, 25 Jul 2008 17:50:30 +0000</pubDate>
<dc:creator>w3hol</dc:creator>
<guid>http://w3hol.wordpress.com/2008/07/25/networking-di-virtual-box-konfigurasi-host-interface-networking-bridging-ubuntu-linux/</guid>
<description><![CDATA[Jika anda belum menginstall VirtualBox Silakan ikuti tutorialnya dari tulisan saya yang sebelumnya d]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Jika anda belum menginstall VirtualBox Silakan ikuti tutorialnya dari tulisan saya yang sebelumnya dari alamat URL berikut: <a href="../2008/07/24/tutorial-virtualbox-ubuntu-install-windows-di-virtualbox/">http://w3hol.wordpress.com/2008/07/24/tutorial-virtualbox-ubuntu-install-windows-di-virtualbox/</a></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify">secara default kartu jaringan virtual pada vbox di-set sebgai NAT (network address translation) pilihan ini sangat berguna jika anda ingin mengakses service yang ada di host pc seperti browsing, email, chatting dll.</p>
<p style="margin-bottom:0;" align="justify">Unutk advance networking seperti simulasi jaringan, maka anda harus memilih tipe host interface networking pada kartu jaringan virtual-nya. Disni saya akan menjelaskan step – by step tetang konfigurasi interface networking.</p>
<p style="margin-bottom:0;" align="justify">
<ul>
<li>
<p style="margin-bottom:0;" align="justify">Install software yang dibutuhkan :</p>
</li>
</ul>
<pre style="text-align:justify;">$sudo apt-get install bridge-utils uml-utilities</pre>
<p style="margin-bottom:0;" align="justify">
<ul>
<li>
<p style="margin-bottom:0;" align="justify">back up konfigurasi interface jaringan anda</p>
</li>
</ul>
<pre style="text-align:justify;">$sudo cp /etc/network/interfaces /etc/network/interfaces.`date +~%b-%d-%Y~%T`</pre>
<p style="margin-bottom:0;" align="justify">
<ul>
<li>
<p style="margin-bottom:0;" align="justify">edit file /etc/network/interface , tambahkan baris beriku :</p>
</li>
</ul>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="top" bgcolor="#c0c0c0">
<pre style="text-align:justify;">auto tap1
 iface tap1 inet manual
 up ifconfig $iface 0.0.0.0 up
 down ifconfig $iface down
 tunctl_user USERNAME</pre>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom:0;" align="justify">“<em>USERNAME” </em><span style="font-family:Times New Roman,serif;">→</span> anda ganti sesuai username anda.</p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><strong>Membuat Bridge :</strong></p>
<p style="margin-bottom:0;" align="justify"><span>Sebelumnya, set permission dahulu kepada vboxusers. Dengan mengedit </span>/etc/udev/rules.d/20-names.rules<span> perhatikan baris berikut :</span></p>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="top" bgcolor="#c0c0c0">
<pre style="text-align:justify;">KERNEL=="tun",        NAME="net/%k"</pre>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify">Anda edit menjadi :</p>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="top" bgcolor="#c0c0c0">
<pre style="text-align:justify;">KERNEL=="tun",        NAME="net/%k",  GROUP="vboxusers",     MODE="0660"</pre>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom:0;" align="justify">
<ul>
<li>
<p style="margin-bottom:0;" align="justify">Membuat bridge dengan nama br0</p>
</li>
</ul>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="top" bgcolor="#c0c0c0">
<pre style="text-align:justify;">sudo brctl addbr br0</pre>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom:0;" align="justify">
<ul>
<li>
<p style="margin-bottom:0;" align="justify">Set interface network anda menjadi promiscuous dalam hal ini eth0 <span style="font-family:Times New Roman,serif;">→</span> eth0 anda bisa rubah sesuai interfaces anda</p>
</li>
</ul>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="top" bgcolor="#c0c0c0">
<pre style="text-align:justify;">$sudo ifconfig eth0 0.0.0.0 promisc</pre>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom:0;" align="justify">
<ul>
<li>
<p style="margin-bottom:0;" align="justify">Link interface network anda (eth0) ke br0</p>
</li>
</ul>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="top" bgcolor="#c0c0c0">
<pre style="text-align:justify;">$sudo brctl addif br0 eth0</pre>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom:0;" align="justify">
<ul>
<li>
<p style="margin-bottom:0;" align="justify">Set ip address br0</p>
</li>
</ul>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="top" bgcolor="#c0c0c0">
<p align="justify"><em><strong>Jika anda menggunakan dhcp :</strong></em></p>
<pre style="text-align:justify;">$sudo dhclient br0

<em><strong>atau jika anda menggunakan static ip:</strong></em>
$sudo ifconfig br0 192.168.1.105 netmask 255.255.0.0
$sudo route add default gw 192.168.1.1 br0</pre>
<p align="justify">“tinggal anda sesuaikan IP-nya sesuai jaringan anda.</p>
<p align="justify">192.168.1.105 : adalah ip br0</p>
<p align="justify">192.168.1.1 : adalah default gateway</p>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom:0;" align="justify">
<ul>
<li>
<p style="margin-bottom:0;" align="justify">Link TAP ke bridge br0 dan mengaktifkannya</p>
</li>
</ul>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="top" bgcolor="#c0c0c0">
<pre style="text-align:justify;">$sudo brctl addif br0 tap1
$sudo ifconfig tap1 up</pre>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom:0;" align="justify"><!--more--></p>
<ul>
<li>
<p style="margin-bottom:0;" align="justify">Sampai disini anda sudah bisa menggunakan host interface networking, 	namun anda perlu mengubah kartu virtual jaringan anda dari Attached 	to : “NAT” menjadi Attached to : “Host Virtual Networking” 	dan isikan “tap1” tanpa tanda petik pada kolom Interfaces Name.</p>
</li>
</ul>
<p style="margin-bottom:0;" align="justify">Namun konfigurasi teresbut akan hilang jika anda reboot mesin anda&#8230; untuk itu kita perlu mebuat scriptnya.</p>
<p style="margin-bottom:0;" align="justify">Berikut scriptnya :</p>
<p style="margin-bottom:0;" align="justify"><strong>script untuk mengaktifkan / up bridge jika mesin anda menggunakan DHCP :</strong></p>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="top" bgcolor="#c0c0c0">
<pre style="text-align:justify;">sudo tunctl -t tap1 -u USERNAME
sudo chown root.vboxusers /dev/net/tun
sudo chmod g+rw /dev/net/tun
sudo brctl addbr br0
sudo ifconfig eth0 0.0.0.0 promisc
sudo brctl addif br0 eth0
sudo dhclient br0
sudo brctl addif br0 tap1
sudo ifconfig tap1 up</pre>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><strong>script untuk stop / down bridge jika mesin anda menggunakan DHCP :</strong></p>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="top" bgcolor="#c0c0c0">
<pre style="text-align:justify;">sudo ifconfig tap1 down
sudo ifconfig eth0
sudo ifconfig br0 down
sudo brctl delbr br0
sudo dhclient eth0</pre>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;"><strong>Tips :<em> </em></strong><em><span>“simpan file tersebut dengan nama bridgeup dan bridgedown, agar script tersebut dapat dieksekusi tambahkan execute mode pada file tersebut dengan perintah : </span></em><strong><span style="font-style:normal;">$chmod 755 namafilenya</span></strong><em><span>”</span></em></p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;" align="justify"><strong>script untuk mengaktifkan / up bridge jika mesin anda menggunakan IP Static :</strong></p>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="top" bgcolor="#c0c0c0">
<pre style="text-align:justify;">sudo tunctl -t tap1 -u USERNAME
sudo chown root.vboxusers /dev/net/tun
sudo chmod g+rw /dev/net/tun
sudo brctl addbr br0
sudo ifconfig eth0 0.0.0.0 promisc
sudo brctl addif br0 eth0
sudo ifconfig br0 HOST_IP netmask NETMASK
sudo route add default gw GATEWAY br0
sudo brctl addif br0 tap1
sudo ifconfig tap1 up</pre>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom:0;" align="justify"><strong>TIPS :<em> </em></strong><em><span>“isikan HOST_IP dengan IP anda, isikan GATEWAY dengan gateway anda”</span></em></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><strong>script untuk stop / down bridge jika mesin anda menggunakan IP Static :</strong></p>
<table border="1" cellspacing="0" cellpadding="4" width="100%">
<col width="256*"></col>
<tbody>
<tr>
<td width="100%" valign="top" bgcolor="#c0c0c0">
<pre style="text-align:justify;">sudo ifconfig tap1 down
sudo ifconfig eth0
sudo ifconfig br0 down
sudo brctl delbr br0
sudo ifconfig eth0 HOST_IP netmask NETMASK up
sudo route add default gw GATEWAY eth0</pre>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify"><strong>Tips :<em> </em></strong><em><span>“simpan file tersebut dengan nama bridgeup dan bridgedown, agar script tersebut dapat dieksekusi tambahkan execute mode pada file tersebut dengan perintah : </span></em><strong><span style="font-style:normal;">$chmod 755 namafilenya</span></strong><em><span>”</span></em></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;font-style:normal;" align="justify">Untuk mengeksekusi script tersebut dengan cara :</p>
<p style="margin-bottom:0;font-style:normal;" align="justify">$./nama_scriptnya</p>
<p style="margin-bottom:0;font-style:normal;" align="justify">
<p style="margin-bottom:0;font-style:normal;" align="justify">misal</p>
<p style="margin-bottom:0;font-style:normal;" align="justify">$./bridgeup</p>
<p style="margin-bottom:0;font-style:normal;" align="justify">
<p style="margin-bottom:0;font-style:normal;" align="justify"><strong>TIPS :</strong><span> </span><em><span>“anda harus berada pada direktory dimana script tersebut disimpan, jika tidak akan terjadi error :</span></em><strong> bash: ./bridgeup: No such file or directory<em> </em></strong><em><span>”</span></em></p>
<p style="margin-bottom:0;" align="justify">
<p style="margin-bottom:0;" align="justify">
</div>]]></content:encoded>
</item>

</channel>
</rss>
