<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WiredRevolution.com &#187; ifconfig</title>
	<atom:link href="http://www.wiredrevolution.com/tag/ifconfig/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wiredrevolution.com</link>
	<description>A Bit of Linux Wisdom</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:45:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Setup SSH access between VirtualBox Host and Guest VMs</title>
		<link>http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setup-ssh-access-between-virtualbox-host-and-guest-vms</link>
		<comments>http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms#comments</comments>
		<pubDate>Fri, 10 Sep 2010 16:50:39 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[/etc/hosts]]></category>
		<category><![CDATA[/etc/network/interfaces]]></category>
		<category><![CDATA[/etc/sysconfig/network-scripts/ifcfg-eth1]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[eth1]]></category>
		<category><![CDATA[guest]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[Host-only Adapter]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[sshd]]></category>
		<category><![CDATA[static IP]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[VM]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=1257</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/virtualbox-icon.png" width="91" height="100" alt="" title="virtualbox" /><br/>It is often necessary to have the ability to SSH between your Linux Host and your Guest virtual machines. In VirtualBox you can do this by simply configuring a second network interface on the Guest. This type of setup will not only allow SSH sessions between Host and Guest, but also between separate Guests themselves. [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/virtualbox/clone-a-virtualbox-guest-vm' rel='bookmark' title='Permanent Link: Clone a VirtualBox Guest VM'>Clone a VirtualBox Guest VM</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/mount-a-virtualbox-shared-folder-inside-a-guest-vm' rel='bookmark' title='Permanent Link: Mount a VirtualBox shared folder inside a guest VM'>Mount a VirtualBox shared folder inside a guest VM</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/setup-usb-support-in-oracle-virtualbox' rel='bookmark' title='Permanent Link: Setup USB support in Oracle VirtualBox'>Setup USB support in Oracle VirtualBox</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/virtualbox-icon.png" width="91" height="100" alt="" title="virtualbox" /><br/><p>It is often necessary to have the ability to SSH between your Linux Host and your Guest virtual machines. In VirtualBox you can do this by simply configuring a second network interface on the Guest. This type of setup will not only allow SSH sessions between Host and Guest, but also between separate Guests themselves.</p>
<p>First off shutdown your Guest VM so that you can add a second network interface. By default you should have one interface already which is using NAT. Leave this alone  as it provides access to the internet. Select the tab “Adapter 2″ and change “attached to” to “Host-only Adapter”.</p>
<p><center><a href="http://www.wiredrevolution.com/wp-content/uploads/2010/09/virtualbox_networking.png"><img src="http://www.wiredrevolution.com/wp-content/uploads/2010/09/virtualbox_networking.png" alt="" title="virtualbox_networking" width="500" height="390" class="aligncenter size-full wp-image-1258" /></a></center></p>
<p>Now boot up your Guest and pull up a terminal. Run <strong>ifconfig</strong> to see what base address eth1 has been assigned. You can use this address as a base to assign static IP addresses for each Guest VM. In this case <strong>inet addr:192.168.56.101</strong> is the base IP address.<br />
<code>$ sudo ifconfig eth1</code><br />
<code>Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX<br />
<strong>inet addr:192.168.56.101</strong>  Bcast:192.168.56.255  Mask:255.255.255.0<br />
inet6 addr: XXXX::XXXX:XXXX:XXXX:XXXX/64 Scope:Link<br />
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br />
RX packets:296 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:237 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:32116 (31.3 KiB)  TX bytes:37642 (36.7 KiB)<br />
</code></p>
<p>If you rely on DHCP you might get a different IP address each time your Guest VM reboots. If this is a problem, you need to setup a static IP address instead.</p>
<p>On a Debian based system edit <strong>/etc/network/interfaces</strong> to add the following lines. <strong>Change the address to your base IP address</strong>.<br />
<code>auto eth1<br />
iface eth1 inet static<br />
    address 192.168.56.101<br />
    netmask 255.255.255.0<br />
</code></p>
<p>On a redhat based system edit this file <strong>/etc/sysconfig/network-scripts/ifcfg-eth1</strong> and add the following lines. <strong>Change the IPADDR to your base IP address</strong>.<br />
<code>DEVICE=eth1<br />
BOOTPROTO=static<br />
IPADDR=192.168.56.101<br />
NETMASK=255.255.255.0<br />
</code></p>
<p>On your Linux Host you can now open a terminal add ssh to the Guest VM:<br />
<code>$ ssh ryan@192.168.56.101</code></p>
<p>If you are having problems connecting, make sure that sshd in installed and running, and that the firewall on the is not blocking the SSH service on the VM.</p>
<p>You can create an entry in <strong>/etc/hosts</strong> so you don&#8217;t have to remember the IP address.<br />
<code>192.168.56.101  virtualhost1</code></p>
<p>This allows you to use the virtual hostname instead.<br />
<code>$ ssh  ryan@virtualhost1</code></p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/virtualbox/clone-a-virtualbox-guest-vm' rel='bookmark' title='Permanent Link: Clone a VirtualBox Guest VM'>Clone a VirtualBox Guest VM</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/mount-a-virtualbox-shared-folder-inside-a-guest-vm' rel='bookmark' title='Permanent Link: Mount a VirtualBox shared folder inside a guest VM'>Mount a VirtualBox shared folder inside a guest VM</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/setup-usb-support-in-oracle-virtualbox' rel='bookmark' title='Permanent Link: Setup USB support in Oracle VirtualBox'>Setup USB support in Oracle VirtualBox</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>How to SSH into Ubuntu LiveCD</title>
		<link>http://www.wiredrevolution.com/ubuntu/how-to-ssh-into-ubuntu-livecd?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-ssh-into-ubuntu-livecd</link>
		<comments>http://www.wiredrevolution.com/ubuntu/how-to-ssh-into-ubuntu-livecd#comments</comments>
		<pubDate>Tue, 16 Dec 2008 14:08:44 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[8.10]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[inet addr]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[IP address]]></category>
		<category><![CDATA[livecd]]></category>
		<category><![CDATA[openssh_server]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=865</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/ubuntu_icon.png" width="80" height="78" alt="" title="ubuntu" /><br/>The ability to remotely SSH into a machine running an Ubuntu LiveCD can come in handy in many situations. The LiveCD supports a large variety of hardware and can be used to troubleshoot system problems on a machine where you have limited or no access. A user with limited skills can easily setup remote access [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh' rel='bookmark' title='Permanent Link: Share a remote filesystem over SSH'>Share a remote filesystem over SSH</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/how-to-x-session-forwarding-over-ssh' rel='bookmark' title='Permanent Link: How to X session forwarding over SSH'>How to X session forwarding over SSH</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/allow-sudo-access-without-passwords-in-ubuntu' rel='bookmark' title='Permanent Link: Allow sudo access without passwords in Ubuntu'>Allow sudo access without passwords in Ubuntu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/ubuntu_icon.png" width="80" height="78" alt="" title="ubuntu" /><br/><p>The ability to remotely <strong>SSH</strong> into a machine running an <strong>Ubuntu</strong> <strong>LiveCD</strong> can come in handy in many situations. The LiveCD supports a large variety of hardware and can be used to troubleshoot system problems on a machine where you have limited or no access. A user with limited skills can easily setup remote access and allow a trusted friend to troubleshoot the system from another location.</p>
<p>The first thing to start the process is to open a <strong>terminal</strong>. Follow these menus:</p>
<p><strong>Applications -> Accessories -> Terminal</strong></p>
<p>In the terminal install the <strong>ssh server</strong> on your LiveCD system.</p>
<pre>
$ sudo apt-get install openssh-server
</pre>
<p>The server is started automatically after installing. </p>
<p>To login remotely, you’ll need to set the password for the default ubuntu user.</p>
<pre>
$ sudo passwd ubuntu
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
</pre>
<p>You should now be able to login to the system running the LiveCD. But first you need to <a href="http://www.wiredrevolution.com/system-administration/find-your-ip-address-with-ifconfig">find the IP address</a> of the machine so you can connect to it.</p>
<p>The <strong>ifconfig</strong> command will list your network interfaces and along with it your IP address.</p>
<pre>
$ ifconfig
</pre>
<pre>
eth0      ...
          <strong>inet addr:192.168.1.1</strong>  Bcast:192.168.2.255  Mask:255.255.255.0
          ...
</pre>
<p>The <strong>inet addr</strong> entry is your IP address which you need to log into the LiveCD system. As you an see above the IP address begins with &#8220;<strong>192.168</strong>&#8221; which indicates that the IP address is only valid on the local network. It was an address assigned to the machine by the router.  This is fine if you plan on logging in from another machine on this local network.</p>
<p>If you need to access the machine from outside your local network you have a couple of options.  The first is to remove any router between you and the Internet. This should give you a valid IP address which is accessible from outside your local network. You may also be able to access your router&#8217;s administration panel and tell it to pass SSH traffic to the IP address of the LiveCD system.  You will then use the router&#8217;s IP address instead for the next step.</p>
<p>If your IP address already begins with something other than &#8220;<strong>192.168</strong>&#8221; then you are safe as well. You should be able to access the LiveCD system from any location, local or not.</p>
<p>Using the IP address from the previous step you can now log into the LiveCD system as the ubuntu user. Use the password you created earler.</p>
<pre>
$ ssh ubuntu@&lt;IP Address&gt;
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh' rel='bookmark' title='Permanent Link: Share a remote filesystem over SSH'>Share a remote filesystem over SSH</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/how-to-x-session-forwarding-over-ssh' rel='bookmark' title='Permanent Link: How to X session forwarding over SSH'>How to X session forwarding over SSH</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/allow-sudo-access-without-passwords-in-ubuntu' rel='bookmark' title='Permanent Link: Allow sudo access without passwords in Ubuntu'>Allow sudo access without passwords in Ubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/ubuntu/how-to-ssh-into-ubuntu-livecd/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Find your MAC address with ifconfig</title>
		<link>http://www.wiredrevolution.com/system-administration/find-your-mac-address-with-ifconfig?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=find-your-mac-address-with-ifconfig</link>
		<comments>http://www.wiredrevolution.com/system-administration/find-your-mac-address-with-ifconfig#comments</comments>
		<pubDate>Thu, 30 Oct 2008 11:06:53 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[HWaddr]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[mac address]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=555</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>You can find the MAC address of your system at the command line by using the ifconfig command. The ifconfig command will show you information on all your network interfaces. If no arguments are given ifconfig displays the status of the currently active interfaces. You have to run this command as root or use sudo. [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/find-your-ip-address-with-ifconfig' rel='bookmark' title='Permanent Link: Find your IP address with ifconfig'>Find your IP address with ifconfig</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms' rel='bookmark' title='Permanent Link: Setup SSH access between VirtualBox Host and Guest VMs'>Setup SSH access between VirtualBox Host and Guest VMs</a></li>
<li><a href='http://www.wiredrevolution.com/windows/find-the-mac-address-on-a-windows-machine' rel='bookmark' title='Permanent Link: Find the MAC address on a Windows machine'>Find the MAC address on a Windows machine</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>You can find the MAC address of your system at the command line by using the <strong>ifconfig</strong> command. The ifconfig command will show you information on all your network interfaces.  If no arguments are given ifconfig displays the status of the currently active interfaces.</p>
<p>You have to run this command as root or <a href="http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo">use sudo</a>.</p>
<pre>
# ifconfig
</pre>
<pre>
wlan0     Link encap:Ethernet  <strong>HWaddr a1:b2:c3:d4:e5:f6  </strong>
          inet addr:192.168.2.11  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:4007 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4246 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3292271 (3.1 MiB)  TX bytes:994922 (971.6 KiB)
</pre>
<p>Your MAC address is displayed in the <strong>HWaddr</strong> field.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/find-your-ip-address-with-ifconfig' rel='bookmark' title='Permanent Link: Find your IP address with ifconfig'>Find your IP address with ifconfig</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms' rel='bookmark' title='Permanent Link: Setup SSH access between VirtualBox Host and Guest VMs'>Setup SSH access between VirtualBox Host and Guest VMs</a></li>
<li><a href='http://www.wiredrevolution.com/windows/find-the-mac-address-on-a-windows-machine' rel='bookmark' title='Permanent Link: Find the MAC address on a Windows machine'>Find the MAC address on a Windows machine</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/find-your-mac-address-with-ifconfig/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find your IP address with ifconfig</title>
		<link>http://www.wiredrevolution.com/system-administration/find-your-ip-address-with-ifconfig?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=find-your-ip-address-with-ifconfig</link>
		<comments>http://www.wiredrevolution.com/system-administration/find-your-ip-address-with-ifconfig#comments</comments>
		<pubDate>Thu, 30 Oct 2008 10:48:07 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[inet addr]]></category>
		<category><![CDATA[IP address]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=544</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>You can find the IP address of your system at the command line by using the ifconfig command. The ifconfig command will show you information on all your network interfaces. If no arguments are given ifconfig displays the status of the currently active interfaces. You have to run this command as root or use sudo. [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/find-your-mac-address-with-ifconfig' rel='bookmark' title='Permanent Link: Find your MAC address with ifconfig'>Find your MAC address with ifconfig</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms' rel='bookmark' title='Permanent Link: Setup SSH access between VirtualBox Host and Guest VMs'>Setup SSH access between VirtualBox Host and Guest VMs</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/how-to-ssh-into-ubuntu-livecd' rel='bookmark' title='Permanent Link: How to SSH into Ubuntu LiveCD'>How to SSH into Ubuntu LiveCD</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>You can find the IP address of your system at the command line by using the <strong>ifconfig</strong> command.  The ifconfig command will show you information on all your network interfaces.  If no arguments are given ifconfig displays the status of the currently active interfaces.</p>
<p>You have to run this command as root or <a href="http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo">use sudo</a>.</p>
<pre>
# ifconfig
</pre>
<pre>
wlan0     Link encap:Ethernet  HWaddr a1:b2:c3:d4:e5:f6
          <strong>inet addr:192.168.2.11</strong>  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:4007 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4246 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3292271 (3.1 MiB)  TX bytes:994922 (971.6 KiB)
</pre>
<p>Your IP address is displayed in the <strong>inet addr</strong> field.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/find-your-mac-address-with-ifconfig' rel='bookmark' title='Permanent Link: Find your MAC address with ifconfig'>Find your MAC address with ifconfig</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms' rel='bookmark' title='Permanent Link: Setup SSH access between VirtualBox Host and Guest VMs'>Setup SSH access between VirtualBox Host and Guest VMs</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/how-to-ssh-into-ubuntu-livecd' rel='bookmark' title='Permanent Link: How to SSH into Ubuntu LiveCD'>How to SSH into Ubuntu LiveCD</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/find-your-ip-address-with-ifconfig/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

