Open main menu

Pathology Education Instructional Resource β

Changes

This Is Your Brain On Informatics: Network

1,587 bytes added, 08:59, 1 December 2013
no edit summary
</p>
===Getting Started===
<p>
This first item of note is the location of the file that names the network connections in Linux. This file can be found [[This Is Your Brain On Informatics: Common Pathnames|here]] under the network section. Upon being opened the file should show something similar to this (# indicates a comment): <pre># The loopback network interfaceauto loiface lo inet loopback # The primary network interfaceauto eth0iface eth0 inet dhcp</pre> The networks shown here are the basic networks that will allow the machine to connect to the internet. If this is a regular computer (not a virtual machine), this file should be completely setup for internet connection and ssh purposes.</p> ==Adding a network== <p>This step should be taken care of if it is a regular computer; however this is very necessary for a virtual machine.</p> ===Using a Dynamically Acquired IP===<p>This method will the network to randomly (within reason of course) select an IP address each time the virtual box is disconnected from an ISP (Internet Service Provider) or another virtual machine is created.<br /><br /> '''Vitual Machine Note'''<br />This step is critical to allowing the virtual machine to interact with the outside world and not have a host only network. The steps below are for a virtual box, but can be applied to any other network setup in Linux.v # Access the above pathname with pico (pico /etc/network/interfaces)# Below the first network (indicated by eth0), copy the first network, replacing eth0 with eth1#::::auto eth1#::::iface eth1 inet dhcp# Reboot the machine# Determine the new IP address of the eth1 network by one of the following## After logging in, check the IP next to the eth1 network## Type "ifconfig" into the command line and check the IP next to the "inet addr:"  
</p>
347
edits