<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.linuxquestions.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Osor</id>
	<title>LQWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.linuxquestions.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Osor"/>
	<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/wiki/Special:Contributions/Osor"/>
	<updated>2026-04-11T06:29:41Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.0</generator>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Imap&amp;diff=28569</id>
		<title>Imap</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Imap&amp;diff=28569"/>
		<updated>2006-07-21T20:01:18Z</updated>

		<summary type="html">&lt;p&gt;Osor: redirect to IMAP&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT[[IMAP]]&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Pop&amp;diff=28568</id>
		<title>Pop</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Pop&amp;diff=28568"/>
		<updated>2006-07-21T20:00:29Z</updated>

		<summary type="html">&lt;p&gt;Osor: added redirect to POP3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT[[POP3]]&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Subnet_mask&amp;diff=28564</id>
		<title>Subnet mask</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Subnet_mask&amp;diff=28564"/>
		<updated>2006-07-21T19:49:58Z</updated>

		<summary type="html">&lt;p&gt;Osor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A '''subnet mask''' is used in the IP addressing system which divides the [[IP address]] in two parts: the [[Subnet|network part]] and the [[host bits|host part]]. A subnet mask (also shortened to '''netmask''') is usually expressed like an IP address in [[dotted decimal]] notation. The subnet mask works by ''masking out'' the network part from the full [[IP address]]:&lt;br /&gt;
&lt;br /&gt;
The logical operation AND is performed with the IP address and netmask.&lt;br /&gt;
 192.168.3.45 AND 255.255.255.0 = 192.168.3.0&lt;br /&gt;
This tells us that the computer with an address of 192.168.3.45 belongs to a [[Subnet|subnet]] called 192.168.3.0.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Subnet]]&lt;br /&gt;
* [http://www.subnetmask.info www.subnetmask.info] for [[IPv4]] subnet mask calculators&lt;br /&gt;
&lt;br /&gt;
{{stub}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Networking]]&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Subnet_mask&amp;diff=28563</id>
		<title>Subnet mask</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Subnet_mask&amp;diff=28563"/>
		<updated>2006-07-21T19:49:14Z</updated>

		<summary type="html">&lt;p&gt;Osor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A '''subnet mask''' is used in the IP addressing system which divides the [[IP address]] in two parts: the [[Subnet|network part]] and the [[host bits|host part]]. A subnet mask (also shortened to '''netmask''') is usually expressed like an IP address in [[dotted decimal]] notation. The subnet mask works by ''masking out'' the network part from the full [[IP address]]:&lt;br /&gt;
&lt;br /&gt;
The logical operation AND is performed with the IP address and netmask.&lt;br /&gt;
 192.168.3.45 AND 255.255.255.0 = 192.168.3.0&lt;br /&gt;
This tell us that the computer with an address of 192.168.3.45 belongs to a [[Subnet|subnet]] called 192.168.3.0.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Subnet]]&lt;br /&gt;
* [http://www.subnetmask.info www.subnetmask.info] for [[IPv4]] subnet mask calculators&lt;br /&gt;
&lt;br /&gt;
{{stub}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Networking]]&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Netmask&amp;diff=28562</id>
		<title>Netmask</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Netmask&amp;diff=28562"/>
		<updated>2006-07-21T19:31:41Z</updated>

		<summary type="html">&lt;p&gt;Osor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT[[Subnet_mask]]&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=CIDR_notation&amp;diff=28429</id>
		<title>CIDR notation</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=CIDR_notation&amp;diff=28429"/>
		<updated>2006-07-06T03:36:37Z</updated>

		<summary type="html">&lt;p&gt;Osor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The canonical way of conveying the identity a network is to specify an [[IP address]] and a [[subnet mask]]. The problem with this method is that the netmask is in [[dotted decimal]] notation, yet the ''mask'' operates in a bitwise fashion. This means that only select few decimal digits can be used in a the fields of a netmask (for example 255.255.253.0 is an invalid netmask). The correct usage of the netmask therefore requires either&lt;br /&gt;
*Memorization of the most commonly seen forms (comes with experience)&lt;br /&gt;
*Fluency in binary (comes with a whole lot of experience)&lt;br /&gt;
*Having a reference table/calculator handy&lt;br /&gt;
&lt;br /&gt;
[[CIDR]] notation is the abbreviation of an [[IP address]] and [[subnet mask]] using the number of bits used for the subnet appended to the end of the IP address, thus: &lt;br /&gt;
&lt;br /&gt;
 CIDR: 192.168.0.0/24&lt;br /&gt;
''is an abbreviation for:''&lt;br /&gt;
 IP Address: 192.168.0.0&lt;br /&gt;
 Netmask:    255.255.255.0 &lt;br /&gt;
 (in binary) 11111111.11111111.11111111.00000000&lt;br /&gt;
''because this subnet mask uses 24 bits for the network portion of the address.''&lt;br /&gt;
&lt;br /&gt;
'''Another example:'''&lt;br /&gt;
 CIDR: 192.168.0.0/21&lt;br /&gt;
''would look like:''&lt;br /&gt;
 IP Address: 192.168.0.0&lt;br /&gt;
 Netmask:    255.255.248.0&lt;br /&gt;
 (in binary) 11111111.11111111.11111000.00000000&lt;br /&gt;
And so on...&lt;br /&gt;
&lt;br /&gt;
Because of its versatility, brevity, and easiness to understand CIDR notation is now the preferred method of identifying a network.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[subnetting]]&lt;br /&gt;
*[[supernetting]]&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=User:Osor&amp;diff=28428</id>
		<title>User:Osor</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=User:Osor&amp;diff=28428"/>
		<updated>2006-07-06T00:19:18Z</updated>

		<summary type="html">&lt;p&gt;Osor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You have reached Osor's page. This is probably a mistake. Osor probably doesn't interest you much.&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Talk:Subnet_mask&amp;diff=28427</id>
		<title>Talk:Subnet mask</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Talk:Subnet_mask&amp;diff=28427"/>
		<updated>2006-07-06T00:18:01Z</updated>

		<summary type="html">&lt;p&gt;Osor: typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I'm thinking the information on this page is already explained much better in [[Subnet]]. Would it be a good idea to get rid of this page (i.e., redirect)? I'll give it a few days before taking action.&lt;br /&gt;
--[[User:Osor|Osor]] 17:29, July 5, 2006 (EDT)&lt;br /&gt;
:A subnet and a subnet mask are really two different topics IMHO, so they should probably be distinct articles (current content aside).  At a minimum, I'd say if they are combined, a subnet mask section should be added to the subnet page. [[User:Jeremy|Jeremy]] 19:39, July 5, 2006 (EDT)&lt;br /&gt;
::Of course they are two different topics. What I'm saying is that the [[Subnet]] page already has a (much better) explanation of subnet masks. Rather than reinvent the wheel here (on [[Subnet mask]]), I wanted to reduce data duplication. There are many ways to do this&lt;br /&gt;
::#Move the bulk of the subnet mask information from [[Subnet]] to here, and add an obvious link&lt;br /&gt;
::#Get rid of this page entirely, and reorganize [[Subnet]] to have a subsection for subnet mask&lt;br /&gt;
::#Make this page redirect to [[Subnet]]&lt;br /&gt;
::I'm not saying the last way is the best, but it certainly is the easiest. --[[User:Osor|Osor]] 20:17, July 5, 2006 (EDT)&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Talk:Subnet_mask&amp;diff=28426</id>
		<title>Talk:Subnet mask</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Talk:Subnet_mask&amp;diff=28426"/>
		<updated>2006-07-06T00:17:21Z</updated>

		<summary type="html">&lt;p&gt;Osor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I'm thinking the information on this page is already explained much better in [[Subnet]]. Would it be a good idea to get rid of this page (i.e., redirect)? I'll give it a few days before taking action.&lt;br /&gt;
--[[User:Osor|Osor]] 17:29, July 5, 2006 (EDT)&lt;br /&gt;
:A subnet and a subnet mask are really two different topics IMHO, so they should probably be distinct articles (current content aside).  At a minimum, I'd say if they are combined, a subnet mask section should be added to the subnet page. [[User:Jeremy|Jeremy]] 19:39, July 5, 2006 (EDT)&lt;br /&gt;
::Of course they are two different topics. What I'm saying is that the [[Subnet]] page already has a (much better) explanation of subnet masks. Rather than reinvent the wheel here (on [[Subnet mask]]), I wanted to reduce data duplication. There are many ways to do this&lt;br /&gt;
::#Move the bulk of the subnet mask information from [[Subnet]] to here, and add an obvious ::link&lt;br /&gt;
::#Get rid of this page entirely, and reorganize [[Subnet]] to have a subsection for subnet mask&lt;br /&gt;
::#Make this page redirect to [[Subnet]]&lt;br /&gt;
::I'm not saying the last way is the best, but it certainly is the easiest. --[[User:Osor|Osor]] 20:17, July 5, 2006 (EDT)&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Subnet&amp;diff=28425</id>
		<title>Subnet</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Subnet&amp;diff=28425"/>
		<updated>2006-07-06T00:07:19Z</updated>

		<summary type="html">&lt;p&gt;Osor: /* Determining the network address */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All computers on the same network can directly send packets to eachother. When one sends a broadcast packet, all the rest get that packet (that is to say, they're all on the same &amp;quot;broadcast domain&amp;quot; -- aka &amp;quot;VLAN&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Routers connect networks together.&lt;br /&gt;
&lt;br /&gt;
Typcially, a bunch of computers connected to eachother in one room form a network. Also typical is to assign them rfc1918 &amp;quot;reserved&amp;quot; addresses (look up that RFC for more info on those special IP addresses). Perhaps one computer on that network connects that network to the rest of the internet -- this computer is the so-called &amp;quot;gateway&amp;quot;. It's performing routing, and is a router. Note, it's configured to not forward packets addressed to an rfc1918 address.&lt;br /&gt;
&lt;br /&gt;
A '''subnet''' is a network, and is the set of all [[network interface]]s which have the same network address. You usually have one subnet per VLAN. If a machine on that subnet needs to talk to another machine on the subnet, it delivers the packet directly. Packets destined for other machines need to go through the gateway.&lt;br /&gt;
&lt;br /&gt;
== Determining the network address ==&lt;br /&gt;
&lt;br /&gt;
To determine the network address we use a subnet mask, or &amp;quot;netmask&amp;quot;.  This is a [[binary]] number that is used to &amp;quot;mask&amp;quot; an IP address into network and host address portions.&lt;br /&gt;
&lt;br /&gt;
For example, an [[IPv4]] [[IP address]] and subnet mask are both 32 bits long.  Take an address such as:&lt;br /&gt;
&lt;br /&gt;
209.152.163.16&lt;br /&gt;
&lt;br /&gt;
In binary this is:&lt;br /&gt;
&lt;br /&gt;
11010001 10011000 10100011 00010000&lt;br /&gt;
&lt;br /&gt;
The subnet mask is given as either a [[dotted decimal]] or in [[CIDR notation]] (using a bit count).  For example, the [[Network Class|Class B]] subnet mask is:&lt;br /&gt;
&lt;br /&gt;
255.255.0.0&lt;br /&gt;
&lt;br /&gt;
In binary this is&lt;br /&gt;
&lt;br /&gt;
11111111 11111111 00000000 00000000&lt;br /&gt;
&lt;br /&gt;
i.e. a string of 16 1's, followed by 0's.  The [[CIDR]] representation is given as a forward-slash followed by the number of 1's:&lt;br /&gt;
&lt;br /&gt;
/16&lt;br /&gt;
&lt;br /&gt;
It is often appended to the end of the IP address.&lt;br /&gt;
&lt;br /&gt;
209.152.163.16/16&lt;br /&gt;
&lt;br /&gt;
The subnet mask is used to determine the network and host portions of an [[IP address]] in the following ways:&lt;br /&gt;
&lt;br /&gt;
To determine the network address, apply a [[binary]] AND operation to the IP address and the subnet mask:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
11010001 10011000 10100011 00010000&lt;br /&gt;
11111111 11111111 00000000 00000000&lt;br /&gt;
-----------------------------------&lt;br /&gt;
11011001 10011000 00000000 00000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Converting this back to [[dotted decimal]] gives us a network address of:&lt;br /&gt;
&lt;br /&gt;
209.152.0.0&lt;br /&gt;
&lt;br /&gt;
All [[network interface]]s and computers that have this network address can be said to share the same subnet.&lt;br /&gt;
&lt;br /&gt;
==More complex subnets==&lt;br /&gt;
Whilst this is a fairly trivial example, more complex subnets can be created by using a subnet mask that does not end on a margin between [[dotted decimal]] numbers.&lt;br /&gt;
&lt;br /&gt;
A subnet mask of:&lt;br /&gt;
&lt;br /&gt;
11111111 11111111 11100000 00000000&lt;br /&gt;
&lt;br /&gt;
is&lt;br /&gt;
&lt;br /&gt;
255.255.224.0&lt;br /&gt;
&lt;br /&gt;
in [[dotted decimal]], or&lt;br /&gt;
&lt;br /&gt;
/19&lt;br /&gt;
&lt;br /&gt;
as a bit count.  This type of subnetting is usually done by network administrators to create a number of subnetworks within a single class.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Networking basics]]&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Network_addressing&amp;diff=28424</id>
		<title>Network addressing</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Network_addressing&amp;diff=28424"/>
		<updated>2006-07-06T00:05:18Z</updated>

		<summary type="html">&lt;p&gt;Osor: /* Subnet Masks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==IP Adressing==&lt;br /&gt;
===IPv4 - The current Internet standard===&lt;br /&gt;
To connect to an IP network, your host (specifically your host's [[network interface]]) will need a unique [[IP address]] to identify itself as a host on the network. In IPV4, an IP address is a 32-bit number that uniquely identifies your [[NIC]] on a network. For ease of readability we divide this 32-bit number into 4 [[octet]]s with a period separating each one. Each octet has a decimal equivalent of 0-255. A typical IP address then would look something like this: 192.168.5.26. &lt;br /&gt;
&lt;br /&gt;
===Assigning IP Address===&lt;br /&gt;
There are two ways to set the IP address for a [[NIC]]. You can do it manually or you can have it set automatically via [[DHCP]]. [[DHCP]] dynamically assigns IP addresses and other information such as [[subnet mask]], [[DNS]] server, and [[default gateway]] to hosts upon bootup. Most network routers have DHCP built in and enabled by default. However, for small networks it may be preferable to set the IP address manually. &lt;br /&gt;
&lt;br /&gt;
===Subnet Masks===&lt;br /&gt;
[[subnet mask|Subnet masks]] also known as network masks are used to logically split a network into &amp;quot;subnetworks&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When the IP address scheme was originally designed, there were three [[Network Class]]es: Class &amp;quot;A&amp;quot;, which had 126 networks of 16 million addresses in each network, Class &amp;quot;B&amp;quot; which had about 65,000 networks of 65,634 addresses in each network, and Class &amp;quot;C&amp;quot; networks which were millions of networks of 254 addresses each.  You could tell what kind of network you were on by looking at the first byte of the IP address: 1-126 was class A, 128 to 192 was class &amp;quot;B&amp;quot;, and 129 to 192 was class &amp;quot;C&amp;quot;.  (193 to 254 are reserved for special purposes).&lt;br /&gt;
&lt;br /&gt;
The problem with this scheme is that it is too inflexible.  You might need only 2 addresses on a network.  So the subnet mask was invented, to give the network designed more control and flexibility. &lt;br /&gt;
Simply put, a subnet mask describes what portion (that is, which bits) of an address describes which logical network (the subnet) a host belongs to, and what portion identifies the host on that network. (Note: all hosts/devices on your local network must share the same subnet if you want them to able to communicate, otherwise the use of [[routing]] will be necessary.).&lt;br /&gt;
&lt;br /&gt;
So, for example, suppose I need a network with a single machine on it.  I need a second IP address on the default router for that network.  I also will need an IP address for multicasting.  So I can use an IP address of 255.255.255.252.  If my IP address is 216.39.145.57, then the network part of my IP address is 216.39.145.56  and the host part of the address is 0.0.0.1.  To see how this is done, work in binary.  &lt;br /&gt;
 address 216.39.145.57    11011000.00011011.10010001.00111001   &lt;br /&gt;
 mask    255.255.255.252  11111111.11111111.11111111.11111100 &lt;br /&gt;
 result  216.39.145.56    11011000.00011011.10010001.00111000 &lt;br /&gt;
My address is 216.39.145.57, the default router or gateway is at 216.39.145.58, and 216.39.145.59 is reserved for multicasting.&lt;br /&gt;
&lt;br /&gt;
Working with strings of bits, e.g. 11111111.11111111.11111111.11111100, is awkward for humans.  Working with dotted quads,e.g. 255.255.255.252 is also frequently awkward.  So sometimes a network is refered to by its network portion, a slash, and the number of bits in the netmask, e.g. 216.39.145.56/30.&lt;br /&gt;
&lt;br /&gt;
See also: [[Subnet mask]] and [[Network Class]]&lt;br /&gt;
&lt;br /&gt;
==Connecting to the Internet==&lt;br /&gt;
&lt;br /&gt;
An IP address must be unique to your host, which becomes a problem once you connect your machine to the internet. How can you know which IP to choose? In this case an IP address (or range of addresses) must be obtained from your [[ISP]]. An ISP will often assign IP addresses dynamically, giving your computer whichever unique IP address is available from a range it has been assigned. This means your IP address could constantly change, to have a static IP you must ask your ISP to provide you with one however, buying a range of IP addresses can be expensive. &lt;br /&gt;
&lt;br /&gt;
===Private IP Space===&lt;br /&gt;
To overcome this there are 3 ranges of address space which have been reserved for private use, and thus are non-routable (they cannot be sent across a [[WAN]]/internet -- a router will refuse to forward packets addressed to these). These are:&lt;br /&gt;
    '''IP''' - 10.0.0.0 - 10.255.255.255      '''Subnet''' - 255.0.0.0 &lt;br /&gt;
    '''IP''' - 172.16.0.0 - 172.31.255.255    '''Subnet''' - 255.255.0.0 &lt;br /&gt;
    '''IP''' - 192.168.0.0 - 192.168.255.255  '''Subnet''' - 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
===Connecting Multiple Machines===&lt;br /&gt;
Since these addresses (sometimes referred to as &amp;quot;private addresses&amp;quot;) cannot not be routed to the global Internet, you might ask so how will I connect my hosts with private addresses to the Internet. This is achieved through some tricks:&lt;br /&gt;
*[[Router]] with [[NAT|''N''etwork ''A''ddress ''T''ranslation (NAT)]] and  [[PAT|''P''ort ''A''ddress ''T''ranslation (PAT)]]. For outgoing packets, NAT will take a private IP address from the internal LAN and replace it with one provided by your [[ISP]]. [[NAT]], as it maps a private address directly to a public address, each host accessing the internet on the internal network must still have a unique public IP. [[PAT]] works around this and can map multiple private addresses to a single private address. This is achieved by assigning each private address a port on which to communicate with the outside world.&lt;br /&gt;
*[[Proxy server]] - This is a machine on your network which accepts requests for internet access from the private LAN then masquerades as that machine to the external network.&lt;br /&gt;
&lt;br /&gt;
==Configuring Linux Host==&lt;br /&gt;
To set up a Linux machine on a [[network]], you may use the network configuration program that comes with your Linux [[distribution]] (see below), or can do it &amp;quot;by hand&amp;quot;.  If you do the network configuration &amp;quot;by hand&amp;quot;, then you must first be familiar with how Linux references your network interface card ([[NIC]]). Each NIC on a Linux machine is labeled &amp;quot;eth&amp;lt;i&amp;gt;N&amp;lt;/i&amp;gt;&amp;quot; where &amp;lt;i&amp;gt;N&amp;lt;/i&amp;gt; is and a number, by default the first being 0. Therefore if you have only one [[NIC]] on your machine it will most likely be labeled eth0. &lt;br /&gt;
To see a list of settings for your network card use the [[ifconfig]] command (normally you must be [[root]] to run this command). &lt;br /&gt;
&lt;br /&gt;
The IP address can be configured on the command line using ifconfig, the example below configures the device eth0 with IP address 192.168.1.1 and a [[subnet mask]] of 255.255.255.0:&lt;br /&gt;
    ifconfig eth0 192.168.1.1 255.255.255.0&lt;br /&gt;
To have the address dynamically assigned by a [[DHCP]] server on your network with [[hostname]] and [[domain name]] assigned also:&lt;br /&gt;
    dhcpd -HD eth0&lt;br /&gt;
&lt;br /&gt;
These settings will only apply until your next reboot, different [[distribution]]s have various ways of permanently configuring a computer's [[NIC]].&lt;br /&gt;
&lt;br /&gt;
On some distributions, network configuration information is stored in the /etc/sysconfig directory. On a SuSE system for instance, you will find the network configuration settings in the ifcfg-eth0 file in this directory. This file contains a list of tuples, or key=value pairs, that tell Linux how to configure the eth0 interface. There are many options that can be set in this file but the following example gives the minimal list of required settings:&lt;br /&gt;
   BOOTPROTO='static'&lt;br /&gt;
   STARTMODE='onboot'&lt;br /&gt;
   BROADCAST='192.168.5.255'&lt;br /&gt;
   IPADDR='192.168.5.178'&lt;br /&gt;
   NETMASK='255.255.255.0'&lt;br /&gt;
   NETWORK='192.168.5.0'&lt;br /&gt;
&lt;br /&gt;
In order for changes in this file to take effect, you must restart your interface. You can do this by using the ifdown and ifup commands. So if I have made changes to the eth0 interface I would do the following to restart that interface:&lt;br /&gt;
   ifdown eth0&lt;br /&gt;
   ifup eth0&lt;br /&gt;
Again, you need to be root to do this.&lt;br /&gt;
&lt;br /&gt;
For a small private network you should use a private address as defined [[#Private IP space|above]]&lt;br /&gt;
&lt;br /&gt;
Many people use &amp;quot;1&amp;quot; (e.g.192.168.1.1) as the final octet for their [[router]] or [[gateway]].  Look at the following example of IP addresses on some made-up [[LAN]]. All netmasks should be 255.255.255.0:&lt;br /&gt;
   Router: 192.168.1.1 &lt;br /&gt;
   Server 1: 192.168.1.10&lt;br /&gt;
   Server 2: 192.168.1.11&lt;br /&gt;
   Print server 1: 192.168.1.50&lt;br /&gt;
   Print server 2: 192.168.1.51&lt;br /&gt;
   PC 1: 192.168.1.100&lt;br /&gt;
   PC 2: 192.168.1.101&lt;br /&gt;
   PC 3: 192.168.1.102&lt;br /&gt;
   DHCP Range: 192.168.1.150-200&lt;br /&gt;
This gives a general make up that should help define a structured and maintainable network.&lt;br /&gt;
&lt;br /&gt;
===Distribution network configuration programs===&lt;br /&gt;
Your distribution probably has a network setup program or programs which make this much easier, and will cover probably 95% of the configurations you will have to do (if it doesn't, then presumably you are sufficiently expert not to need such a program!).  &lt;br /&gt;
&lt;br /&gt;
====RedHat Fedora Core====&lt;br /&gt;
For example, [[Redhat]] [[Fedora]] Core 4 has four network configuration programs:&lt;br /&gt;
* /usr/bin/system-config-network-druid (requires X-windows)&lt;br /&gt;
* /usr/bin/system-config-network (requires X-windows)&lt;br /&gt;
* /usr/bin/system-config-network-cmd (This is probably best for scripting network configurations)&lt;br /&gt;
* /usr/sbin/netconfig (best for command line editing - uses VT-100 style graphics)&lt;br /&gt;
&lt;br /&gt;
====Debian====&lt;br /&gt;
&lt;br /&gt;
====Knoppix====&lt;br /&gt;
&lt;br /&gt;
==See also== &lt;br /&gt;
&lt;br /&gt;
*[[subnetting]]&lt;br /&gt;
*[[supernetting]]&lt;br /&gt;
*[[IPV6]]&lt;br /&gt;
*[[CIDR]]&lt;br /&gt;
&lt;br /&gt;
[[category:Networking]]&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Network_Class&amp;diff=28421</id>
		<title>Network Class</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Network_Class&amp;diff=28421"/>
		<updated>2006-07-05T23:59:39Z</updated>

		<summary type="html">&lt;p&gt;Osor: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In the early days of [[IP]], networks were delegated in classes. There was no such thing as a [[netmask]] that we use today. Nowadays, however, network classes have become obsoleted by better methods of addressing (such as [[CIDR]]). Nevertheless, learning about network classes can help one's understanding of the [[IPv4]] address-space and how it became the way it has.&lt;br /&gt;
&lt;br /&gt;
In addition to the number of possible hosts on a network, information about the number of possible networks was embedded into the [[IP address]] itself. An address consisted of a ''network part'' and a ''host part''. The network part was itself partitioned to describe the network's class, by the leading number of bits. For each class (decreasing '''A''' through '''E'''), the ''host'' part was in multiples of eight bits (starting from 24 and going 0). The leading bits ''represented'' numbers that were multiples of two (with the exception of '''Class E''' which has four bits representing the number seven), starting from one bit that was zero.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
For example, a '''Class A''' network had one leading bit that was necessarily 0. Then, there were 7 bits dedicated to the network. The rest (24 bits) were for hosts. This means that there were only 128 possible Class A networks, each with 24 bits allocatable by the owner. Class A networks were therefore highly sought after and highly limited by the IANA. So any [[IP address]] in the range &amp;lt;tt&amp;gt;0.0.0.0&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;127.255.255.255&amp;lt;/tt&amp;gt; was considered as being part of a '''Class A''' network. For example, if someone told you that their [[IP address]] was &amp;lt;tt&amp;gt;93.35.54.123&amp;lt;/tt&amp;gt;, you would immediately knew that they were on the Class A network with a first decimal of 93 (in modern [[CIDR notation]], we would call that network &amp;lt;tt&amp;gt;93.0.0.0/8&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Similarly, any [[IP address]] in the range &amp;lt;tt&amp;gt;128.0.0.0&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;191.255.255.255&amp;lt;/tt&amp;gt; was in a '''Class B''' network, and now, there were only 16 bits dedicated to hosts. &lt;br /&gt;
&lt;br /&gt;
For '''Class C''' networks, the range was therefore &amp;lt;tt&amp;gt;192.0.0.0&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;223.255.255.255&amp;lt;/tt&amp;gt; with only eight bits dedicated to hosts.&lt;br /&gt;
&lt;br /&gt;
==Special Classes==&lt;br /&gt;
Now '''Classes A''', '''B''', and '''C''' described all the normal addresses anyone would use, but there are two more classes.&lt;br /&gt;
&lt;br /&gt;
A '''Class D''' network had a range of &amp;lt;tt&amp;gt;240.0.0.0&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;239.255.255.255&amp;lt;/tt&amp;gt;. What makes this unusual is that there are '''zero''' bits dedicated to hosts. How can that be you ask? Well, all '''Class D''' addresses are used only for multicast. This makes sense, as one multicast address can be shared by hosts, and each expects to receive it.&lt;br /&gt;
&lt;br /&gt;
The last network class is '''Class E''', which includes the rest of the address-space (&amp;lt;tt&amp;gt;240.0.0.0&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;255.255.255.255&amp;lt;/tt&amp;gt;) and is reserved by the IANA to experimentation.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[CIDR]]&lt;br /&gt;
*RFC 791 ([[IP]])&lt;br /&gt;
*A lot of RFCs in between&lt;br /&gt;
*RFC 1166 (the last RFC to be used for network classes before [[CIDR]] came into effect)&lt;br /&gt;
&lt;br /&gt;
{{stub}}&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Talk:Network_Class&amp;diff=28420</id>
		<title>Talk:Network Class</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Talk:Network_Class&amp;diff=28420"/>
		<updated>2006-07-05T23:59:08Z</updated>

		<summary type="html">&lt;p&gt;Osor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Need to make some sort of table.&lt;br /&gt;
Also need to make explanation more understandable.&lt;br /&gt;
&lt;br /&gt;
I know this is not a very high priority for you guys (because classful networks are outdated), but it might be nice to get some review.&lt;br /&gt;
--[[User:Osor|Osor]] 19:59, July 5, 2006 (EDT)&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Network_Class&amp;diff=28419</id>
		<title>Network Class</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Network_Class&amp;diff=28419"/>
		<updated>2006-07-05T23:55:45Z</updated>

		<summary type="html">&lt;p&gt;Osor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In the early days of [[IP]], networks were delegated in classes. There was no such thing as a [[netmask]] that we use today. Nowadays, however, network classes have become obsoleted by better methods of addressing (such as [[CIDR]]). Nevertheless, learning about network classes can help one's understanding of the [[IPv4]] address-space and how it became the way it has.&lt;br /&gt;
&lt;br /&gt;
In addition to the number of possible hosts on a network, information about the number of possible networks was embedded into the [[IP address]] itself. An address consisted of a ''network part'' and a ''host part''. The network part was itself partitioned to describe the network's class, by the leading number of bits. For each class (decreasing '''A''' through '''E'''), the ''host'' part was in multiples of eight bits (starting from 24 and going 0). The leading bits ''represented'' numbers that were multiples of two (with the exception of '''Class E''' which has four bits representing the number seven), starting from one bit that was zero.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
For example, a '''Class A''' network had one leading bit that was necessarily 0. Then, there were 7 bits dedicated to the network. The rest (24 bits) were for hosts. This means that there were only 128 possible Class A networks, each with 24 bits allocatable by the owner. Class A networks were therefore highly sought after and highly limited by the IANA. So any [[IP address]] in the range &amp;lt;tt&amp;gt;0.0.0.0&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;127.255.255.255&amp;lt;/tt&amp;gt; was considered as being part of a '''Class A''' network. For example, if someone told you that their [[IP address]] was &amp;lt;tt&amp;gt;93.35.54.123&amp;lt;/tt&amp;gt;, you would immediately knew that they were on the Class A network with a first decimal of 93 (in modern [[CIDR notation]], we would call that network &amp;lt;tt&amp;gt;93.0.0.0/8&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Similarly, any [[IP address]] in the range &amp;lt;tt&amp;gt;128.0.0.0&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;191.255.255.255&amp;lt;/tt&amp;gt; was in a '''Class B''' network, and now, there were only 16 bits dedicated to hosts. &lt;br /&gt;
&lt;br /&gt;
For '''Class C''' networks, the range was therefore &amp;lt;tt&amp;gt;192.0.0.0&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;223.255.255.255&amp;lt;/tt&amp;gt; with only eight bits dedicated to hosts.&lt;br /&gt;
&lt;br /&gt;
==Special Classes==&lt;br /&gt;
Now '''Classes A''', '''B''', and '''C''' described all the normal addresses anyone would use, but there are two more classes.&lt;br /&gt;
&lt;br /&gt;
A '''Class D''' network had a range of &amp;lt;tt&amp;gt;240.0.0.0&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;239.255.255.255&amp;lt;/tt&amp;gt;. What makes this unusual is that there are '''zero''' bits dedicated to hosts. How can that be you ask? Well, all '''Class D''' addresses are used only for multicast. This makes sense, as one multicast address can be shared by hosts, and each expects to receive it.&lt;br /&gt;
&lt;br /&gt;
The last network class is '''Class E''', which includes the rest of the address-space (&amp;lt;tt&amp;gt;240.0.0.0&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;255.255.255.255&amp;lt;/tt&amp;gt;) and is reserved by the IANA to experimentation.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
[[CIDR]]&lt;br /&gt;
*RFC 791 ([[IP]])&lt;br /&gt;
*A lot of RFCs in between&lt;br /&gt;
*RFC 1166 (the last RFC to be used for network classes before [[CIDR]] came into effect)&lt;br /&gt;
&lt;br /&gt;
{{stub}}&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Netmask&amp;diff=28416</id>
		<title>Netmask</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Netmask&amp;diff=28416"/>
		<updated>2006-07-05T22:42:30Z</updated>

		<summary type="html">&lt;p&gt;Osor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT[[Subnet]]&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=CIDR&amp;diff=28415</id>
		<title>CIDR</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=CIDR&amp;diff=28415"/>
		<updated>2006-07-05T22:32:55Z</updated>

		<summary type="html">&lt;p&gt;Osor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''CIDR''' ('''C'''lassless '''I'''nter''' D'''omain '''R'''outing) is the strategy currently used for [[IP]] address assignment and routing. It is a replacement for the older and more rigid [[Network Class|classful networking]] scheme. The new method allows for flexible creation of network addresses through a variable number of bits unique to that network.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[CIDR notation]]&lt;br /&gt;
*RFC 1517&lt;br /&gt;
*RFC 1518&lt;br /&gt;
*RFC 1519&lt;br /&gt;
&lt;br /&gt;
{{stub}}&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Talk:Subnet_mask&amp;diff=28414</id>
		<title>Talk:Subnet mask</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Talk:Subnet_mask&amp;diff=28414"/>
		<updated>2006-07-05T22:00:18Z</updated>

		<summary type="html">&lt;p&gt;Osor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I'm thinking the information on this page is already explained much better in [[Subnet]]. Would it be a good idea to get rid of this page (i.e., redirect)? I'll give it a few days before taking action.&lt;br /&gt;
--[[User:Osor|Osor]] 17:29, July 5, 2006 (EDT)&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Subnet&amp;diff=28413</id>
		<title>Subnet</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Subnet&amp;diff=28413"/>
		<updated>2006-07-05T21:57:31Z</updated>

		<summary type="html">&lt;p&gt;Osor: /* Determining the network address */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All computers on the same network can directly send packets to eachother. When one sends a broadcast packet, all the rest get that packet (that is to say, they're all on the same &amp;quot;broadcast domain&amp;quot; -- aka &amp;quot;VLAN&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Routers connect networks together.&lt;br /&gt;
&lt;br /&gt;
Typcially, a bunch of computers connected to eachother in one room form a network. Also typical is to assign them rfc1918 &amp;quot;reserved&amp;quot; addresses (look up that RFC for more info on those special IP addresses). Perhaps one computer on that network connects that network to the rest of the internet -- this computer is the so-called &amp;quot;gateway&amp;quot;. It's performing routing, and is a router. Note, it's configured to not forward packets addressed to an rfc1918 address.&lt;br /&gt;
&lt;br /&gt;
A '''subnet''' is a network, and is the set of all [[network interface]]s which have the same network address. You usually have one subnet per VLAN. If a machine on that subnet needs to talk to another machine on the subnet, it delivers the packet directly. Packets destined for other machines need to go through the gateway.&lt;br /&gt;
&lt;br /&gt;
== Determining the network address ==&lt;br /&gt;
&lt;br /&gt;
To determine the network address we use a subnet mask, or &amp;quot;netmask&amp;quot;.  This is a [[binary]] number that is used to &amp;quot;mask&amp;quot; an IP address into network and host address portions.&lt;br /&gt;
&lt;br /&gt;
For example, an [[IPv4]] [[IP address]] and subnet mask are both 32 bits long.  Take an address such as:&lt;br /&gt;
&lt;br /&gt;
209.152.163.16&lt;br /&gt;
&lt;br /&gt;
In binary this is:&lt;br /&gt;
&lt;br /&gt;
11010001 10011000 10100011 00010000&lt;br /&gt;
&lt;br /&gt;
The subnet mask is given as either a [[dotted decimal]] or in [[CIDR notation]] (using a bit count).  For example, the Class B subnet mask is:&lt;br /&gt;
&lt;br /&gt;
255.255.0.0&lt;br /&gt;
&lt;br /&gt;
In binary this is&lt;br /&gt;
&lt;br /&gt;
11111111 11111111 00000000 00000000&lt;br /&gt;
&lt;br /&gt;
i.e. a string of 16 1's, followed by 0's.  The [[CIDR]] representation is given as a forward-slash followed by the number of 1's:&lt;br /&gt;
&lt;br /&gt;
/16&lt;br /&gt;
&lt;br /&gt;
It is often appended to the end of the IP address.&lt;br /&gt;
&lt;br /&gt;
209.152.163.16/16&lt;br /&gt;
&lt;br /&gt;
The subnet mask is used to determine the network and host portions of an [[IP address]] in the following ways:&lt;br /&gt;
&lt;br /&gt;
To determine the network address, apply a [[binary]] AND operation to the IP address and the subnet mask:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
11010001 10011000 10100011 00010000&lt;br /&gt;
11111111 11111111 00000000 00000000&lt;br /&gt;
-----------------------------------&lt;br /&gt;
11011001 10011000 00000000 00000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Converting this back to [[dotted decimal]] gives us a network address of:&lt;br /&gt;
&lt;br /&gt;
209.152.0.0&lt;br /&gt;
&lt;br /&gt;
All [[network interface]]s and computers that have this network address can be said to share the same subnet.&lt;br /&gt;
&lt;br /&gt;
==More complex subnets==&lt;br /&gt;
Whilst this is a fairly trivial example, more complex subnets can be created by using a subnet mask that does not end on a margin between [[dotted decimal]] numbers.&lt;br /&gt;
&lt;br /&gt;
A subnet mask of:&lt;br /&gt;
&lt;br /&gt;
11111111 11111111 11100000 00000000&lt;br /&gt;
&lt;br /&gt;
is&lt;br /&gt;
&lt;br /&gt;
255.255.224.0&lt;br /&gt;
&lt;br /&gt;
in [[dotted decimal]], or&lt;br /&gt;
&lt;br /&gt;
/19&lt;br /&gt;
&lt;br /&gt;
as a bit count.  This type of subnetting is usually done by network administrators to create a number of subnetworks within a single class.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Networking basics]]&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
	<entry>
		<id>https://wiki.linuxquestions.org/index.php?title=Talk:Subnet_mask&amp;diff=28412</id>
		<title>Talk:Subnet mask</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxquestions.org/index.php?title=Talk:Subnet_mask&amp;diff=28412"/>
		<updated>2006-07-05T21:29:02Z</updated>

		<summary type="html">&lt;p&gt;Osor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I'm thinking the information on this page is already explained much better in [[Subnet]]. Would it be a good idea to get rid of this page? I'll give it a few days before taking action.&lt;br /&gt;
--[[User:Osor|Osor]] 17:29, July 5, 2006 (EDT)&lt;/div&gt;</summary>
		<author><name>Osor</name></author>
	</entry>
</feed>