<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5769607921475220697</id><updated>2011-04-21T18:24:46.325-04:00</updated><category term='Linux'/><title type='text'>933k_4@bul0us</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://y0duh.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5769607921475220697/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://y0duh.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>y0duh</name><uri>http://www.blogger.com/profile/11148485573902894200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5769607921475220697.post-5025872610804890986</id><published>2007-12-03T21:56:00.002-05:00</published><updated>2007-12-03T22:40:27.603-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>/etc/fstab, /etc/mtab, /etc/exports, file systems, DNS, NFS, NIS, and the Art of Linux</title><content type='html'>&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:180%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-size:180%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=""&gt;y0duh says, “Linux very powerful operating system (OS), very powerful indeed.” How many times have you heard the praises of Linux being sung by the hacker community (not to be confused with crackers), hardcore geeks, computer enthusiasts, or anyone who detests Microsoft? Well this article is not meant to be one of those intended to sway the masses to convert to Linux; in fact, it is written for purely selfish reasons. In December I intend to take the Linux+ certification exam followed by the RHCT certification exam in February. At this point some of the network administration files and services, particularly those that pertain to distributing information, are still a little murky, which inspired this article. The files and services that I am referring to are the NFS, &lt;/span&gt;&lt;st1:city&gt;&lt;st1:place&gt;&lt;span style=""&gt;NIS&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:city&gt;&lt;span style=""&gt;, and DNS services and the /etc/mtab, /etc/fstab, and /etc/exports files. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;      &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;0000. &lt;u&gt;What is Linux?&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;Linux is an open source multi-user OS developed by Linus Torvalds in 1991 using Richard Stallman’s “GNU is Not Unix” (GNU) project. Stallman is the founder of the Free Software Foundation and the author of the Free Software Manifesto. Torvalds created Linux partially because he was bored, partially as a hobby, but mostly because Minux, the OS Torvalds was using at the time, had limited capabilities as an OS. Torvalds initially started developing Linux by writing a terminal emulation program for the Minux OS. He eventually started adding features to the terminal emulator program as was necessary. This project evolved into what eventually became the first version of the Linux OS. Torvalds then uploaded the OS to the Internet, and asked other programmers to post any recommendations and/or suggestions they had about his OS. To Torvald’s surprise, people immediately started making suggestions for the new operating system and even requested to start supporting the software. The rest, as they say, is history.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;A key feature that makes Linux so powerful is the command line interface (CLI). Anything done via the graphical user interface (GUI) can be done from the command line. In fact some, like me, believe that the GUI hinders a user’s ability to utilize all of an OS’ features and abilities. It is often more difficult finding features while navigating with the GUI. From the CLI a user can do exactly what she intends to do with the OS. It is not that Windows lacks the tools of Linux; it just hinders a user by scattering many of its features throughout the OS (I can only make this point about Windows since the Mac OS X is built on the UNIX kernel). Interestingly it appears that lately even Windows is making its CLI more functional.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;Today Linux is over 16 years old and has numerous distributions. Usually a Linux user learns and loyally aligns with one of these distributions (personally I prefer Red Hat or Suse). However, the easiest way to begin using Linux is to decide which distribution to use and to download a copy from one of the many websites. &lt;span style=""&gt; &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;      &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;0001. &lt;u&gt;Linux File Systems&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;The Linux file system is made up of multiple directories that are arranged in a hierarchical structure. The file structure can be described as a tree with the root or “/” directory acting as the trunk. All other directories branch off the root directory. Each directory houses a particular type of file. For instance, the /etc directory contains all of the OS configuration files. If a program needs to be configured, the program’s configuration file is almost always in the /etc directory. The /home directory contains the OS user(s) files, and of course the /boot directory contains booting instructions files. The /var directory houses the OS log files. Other directories that bear mentioning are the /mnt, /src, and /tmp directories. One other directory critical to Linux is the swap file directory. The swap file acts as the virtual memory for a Linux system. It is often recommended that this file be twice the size of the amount of physical RAM of a computer. The swap file is the equivalent of the virtual memory file of a Windows machine. It is recommended that all directories be installed on separate partitions. The one exception to this practice is the /home directory. It should be noted that the only two files absolutely necessary for a Linux installation are the swap and “/” directories.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;Some novice users have a difficult time switching between different Linux distributions because certain files are often placed in different locations; however, the basic directory structures are comparable between all Linux brands. In fact most Linux OS distributions have similar, although not exact, file structures.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;      &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;b style=""&gt;&lt;span style=""&gt;0010. &lt;u&gt;Network File System (NFS)&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;NFS allows files to be shared across a Linux network. Case in point, individual files and directories can be shared among multiple users on a network. Often one computer acts as a server while other client computers access it for particular files or directories. Setting up NFS is fairly straight forward; the configuration file is naturally located in the /etc directory. This file, /etc/exports, is used to configure NFS by indicating which files/directories are shared remotely. The format for the /etc/exports file is as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;b&gt;/home/departments/sales&lt;span style=""&gt;     &lt;/span&gt;sally.company.com (ro)&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;The statement indicates that the /home/departments/sales directory can be accessed by the host sally.company.com with read only privileges. Next start the NFS daemon with the “service nfs start” command. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;On a remote client, a file can be manually accessed using the “mount” command, or managed by the OS using the “autofs” utility. The autofs utility automatically loads any files or directories a user has rights or access to. File shares can also be set up to automatically mount at when the OS starts up. The etc/fstab can be used to accomplish this task. The “fstab” file stands for file system table. This file lists all of the OS file system directories to be mounted by default. Of course the root user has access to and can alter this file. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;b style=""&gt;&lt;span style=""&gt;0011. &lt;u&gt;/etc/fstab&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;As stated above, fstab stands for file system table. According to Mark Sobell’s “A Practical Guide to Linux” the fstab file contains the list of file systems that the Linux host checks by default (Sobell, 601). The file is also used by the mount and umount utilities to mount or unmount directories. This file is located in the /etc directory. Here is an example of what an fstab entry looks like (note: the numbers underneath the fields are not part of the configuration file):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;      &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;b&gt;&lt;/b&gt;&lt;pre&gt;&lt;b&gt;/dev/cdrom     /cdrom&lt;span style=""&gt;       &lt;/span&gt;iso9660    user,noauto,ro&lt;/b&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#1        &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;        #2        &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#3        &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#4&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;As you can see the entry contains several fields. The first field gives the physical location of the file system. The location in the example is the CD-ROM drive. The second is the mount point of the file system. A mount point is physical location of the file system being mounted. The CD-ROM is being mounted to the /cdrom directory. The third field is the device or file system type. CD-ROMs use an iso9660 file system. The fourth field in the example gives any parameters to be used while mounting the file system. According to the example anyone can load the CD-ROM drive with read-only permissions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;&lt;b style=""&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b style=""&gt;&lt;span style=""&gt;0100. &lt;u&gt;/etc/mtab &lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;The /etc/mtab file lists all of the devices and files to be mounted when the OS boots. Clearly mtab stands for mount table. The “mount” command will display all mounted files and devices. Here is an example of an mtab entry (note: the numbers underneath the fields are not part of the configuration file):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;      &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;b&gt;&lt;pre&gt;/dev/hda        on        /        type    ext3    (rw)&lt;/b&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;#1    &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;                    #2    &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;    #3    &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#4    &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;    #5&lt;/pre&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;&lt;span style=""&gt;The first entry (#1) is the physical location of the mount. In this instance the root directory (field #2) is located on the primary IDE drive. Moreover, the /dev/hda is also the mount point for the root directory. The file system type is ext3 (fields #3 and #4) and the root file system was mounted with read and write file permissions (field #5).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;As should be obvious, the /etc/mtab and /etc/fstab files are very similar in structure. Each file has entry lines that have several fields, both are used by the mount and umount utilities, and both contain mounting points for the directories and files being loaded. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;      &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;0101.&lt;/span&gt;&lt;/b&gt;&lt;span style=""&gt; &lt;b style=""&gt;&lt;u&gt;Network Information Service (&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;st1:city&gt;&lt;st1:place&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style=""&gt;NIS&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/st1:place&gt;&lt;/st1:city&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style=""&gt;)&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b style=""&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;st1:city&gt;&lt;st1:place&gt;&lt;span style=""&gt;NIS&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:city&gt;&lt;span style=""&gt;, formerly known as the Yellow Pages, allows important information to be distributed across a Linux network. For instance, password information, user groups, and individual network server information (IP addresses and hostnames) can all be shared between multiple Linux systems using a &lt;/span&gt;&lt;st1:city&gt;&lt;st1:place&gt;&lt;span style=""&gt;NIS&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:city&gt;&lt;span style=""&gt; server functioning as a centralized database. Like Network File System, &lt;/span&gt;&lt;st1:city&gt;&lt;st1:place&gt;&lt;span style=""&gt;NIS&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:city&gt;&lt;span style=""&gt; is set up in a client/server model. &lt;span style=""&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;There are several &lt;/span&gt;&lt;st1:city&gt;&lt;st1:place&gt;&lt;span style=""&gt;NIS&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:city&gt;&lt;span style=""&gt; tools used by the multiple Linux distributions. Most of the tools all begin with the letters “yp”, so they will be referred to as yp-tools from this point forward. The server must have multiple yp-tools available, while the client computers only need the client yp-tool(s).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;The network services switch file (nsswitch.conf), contains the order that a host searches for information when it is requested. If &lt;/span&gt;&lt;st1:city&gt;&lt;st1:place&gt;&lt;span style=""&gt;NIS&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:city&gt;&lt;span style=""&gt; is used to lookup particular information on a network the nsswitch.conf file can be utilized to point to a &lt;/span&gt;&lt;st1:city&gt;&lt;st1:place&gt;&lt;span style=""&gt;NIS&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:city&gt;&lt;span style=""&gt; server as one of the locations to find information. Like all configuration files the nsswitch.conf file is located in the /etc directory and the &lt;/span&gt;&lt;st1:city&gt;&lt;st1:place&gt;&lt;span style=""&gt;NIS&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:city&gt;&lt;span style=""&gt; daemon must be started with the “service ypserv start” command. If &lt;/span&gt;&lt;st1:city&gt;&lt;st1:place&gt;&lt;span style=""&gt;NIS&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:city&gt;&lt;span style=""&gt; is being used to manage information about particular network hosts, for instance servers, the nsswitch.conf file must be configured. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;st1:city&gt;&lt;st1:place&gt;&lt;span style=""&gt;NIS&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:city&gt;&lt;span style=""&gt; clients can be setup in multiple ways. The customary method is the edit the /etc/host.conf file. This file tells a host the order in which to resolve a search for files. Traditionally the configuration contains an entry to first search the computer and then to use the DNS server:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style="font-weight: bold;"&gt;order hosts,bind&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;An entry must also be added to point to a &lt;/span&gt;&lt;st1:city&gt;&lt;st1:place&gt;&lt;span style=""&gt;NIS&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:city&gt;&lt;span style=""&gt; server:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style="font-weight: bold;"&gt;order hosts,bind,&lt;/span&gt;&lt;st1:city style="font-weight: bold;"&gt;&lt;st1:place&gt;&lt;span style=""&gt;nis&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:city&gt;&lt;span style=""&gt; &lt;span style=""&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b style=""&gt;&lt;span style=""&gt;0110. &lt;u&gt;Domain Name Service (DNS)&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;DNS is a very complex application with entire books written on the subject; this article merely skims the surface of this Internet tool. Only the files necessary to run the client and server services will be discussed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;When the Internet was small it was relatively easy to remember network addresses on the Internetwork. Of course that was eons ago, now it is practically impossible to remember the IP address of every host and domain name on the Internet. DNS is the solution to the problem. DNS is a service that resolves human readable domain names into IP addresses. This allows users to type in Universal Resource Locators (URL) like &lt;a href="http://www.redhat.com/index.html"&gt;www.redhat.com/index.html&lt;/a&gt; instead of 209.132.177.50. In order for DNS to work a network must have a registered domain name.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;There is a complex DNS system integrated into the Internet. It has a hierarchical structure, similar to the Linux file system. This hierarchy usually encompasses root and local network nameservers, although more complex networks could have additional tiers. The root nameservers house the databases for the top level domains (TLD). A TLD is the suffix located at the end of a domain name (i.e. .com, .net, .mil, etc.). Root DNS servers only accept requests from other nameservers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;Most domains (networks) will have a local nameserver that is responsible for the local network’s name resolution requests; in other words, local DNS servers are responsible for maintaining the database of hostnames requested by the local network. This database reduces the number of times a local nameserver has to seek out a root DNS server when a domain name has to be resolved. If a network does not have a physical DNS server, the domain more than likely uses an ISP’s nameserver(s). &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;Let us assume that the domain name, &lt;a href="http://www.redhat.com/index.html"&gt;www.redhat.com/index.html&lt;/a&gt;, is being requested for the first time on a network. The resolution begins by interpreting the URL from right to left. There is an implicit “.” (period) at the end of the TLD which indicates to begin looking at the root of the DNS system. So DNS will start at the root nameserver of the TLD; in this instance the commercial (.com) name server. Next the Red Hat domain will be resolved. On the Red Hat domain the web server (www) host will be resolved, and the web server will supply the index.html webpage being requested. In other words the URL requests the index.html file located on the Red Hat domain’s web server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;There are several critical DNS files. On the DNS server, the /etc/named.conf file is the main configuration file. This is the file that an administrator will configure to get DNS functioning on the network. Directions on how to configure this file would require another article, so I will omit those instructions. Once the named.conf file has been configured, the “service named start” command should be administered from the command line in order to actually start the DNS service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;The /etc/hosts and the /etc/resolv.conf files must be configured for all DNS clients. The /etc/hosts file dictates how an address is resolved locally:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;      &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style="font-weight: bold;"&gt;127.0.0.1&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;                     &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;localhost.localdomain localhost&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;209.132.177.50&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;           &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;redhat.com&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;while the /etc/resolv.conf file defines which nameserver(s) to use:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;      &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style="font-weight: bold;"&gt;nameserver 192.168.1.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;nameserver 200.200.173.1&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;DNS has multiple tools to manage the service. The “host” command is a DNS lookup tool. Basically the command allows users to identify nameservers. The “dig” command, like the host command, identifies nameservers; however, the tool is a bit more powerful. Several options can be used with the dig command to find specific information about a nameserver. This flexibility makes dig a great tool to use when troubleshooting DNS issues. Finally, the “nslookup” command allows a host to query Internet domain servers for information. The tool allows users to request information about the domain, the domain nameserver, and particular hosts on the domain. Indeed DNS is a powerful tool that makes navigation of the Internet feasible. With millions of hosts and domains on the Internet today it would be virtually impossible to manage them all without DNS. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b style=""&gt;&lt;span style=""&gt;0111. &lt;u&gt;EOL&lt;/u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;As with other articles, it is impossible to cover the full scope of the Linux OS. But hopefully it is obvious how powerful this multi-user OS is in the world of computers. It should also be apparent that the OS is multifaceted. In short, Linux is a powerful OS that allows users to have transparent access to all of the OS tools. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;&lt;b style=""&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b style=""&gt;&lt;span style=""&gt;1000. &lt;u&gt;Check Em’&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b style=""&gt;&lt;span style=""&gt;&lt;u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;                    &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;span style=""&gt;A Practical Guide to Linux. Mark G. Sobell&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;Just For Fun: The Story of an Accidental Revolutionary. Linus Torvalds and David Diamond&lt;br /&gt;&lt;a href="http://www.redhat.com/"&gt;http://www.redhat.com&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;a href="http://linux.die.net/"&gt;http://linux.die.net/&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5769607921475220697-5025872610804890986?l=y0duh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://y0duh.blogspot.com/feeds/5025872610804890986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5769607921475220697&amp;postID=5025872610804890986' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5769607921475220697/posts/default/5025872610804890986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5769607921475220697/posts/default/5025872610804890986'/><link rel='alternate' type='text/html' href='http://y0duh.blogspot.com/2007/12/etcfstab-etcmtab-etcexports-file.html' title='/etc/fstab, /etc/mtab, /etc/exports, file systems, DNS, NFS, NIS, and the Art of Linux'/><author><name>y0duh</name><uri>http://www.blogger.com/profile/11148485573902894200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5769607921475220697.post-2488280545354199148</id><published>2007-11-17T23:06:00.001-05:00</published><updated>2007-11-17T23:43:35.877-05:00</updated><title type='text'>Zen VLANs</title><content type='html'>&lt;span style="font-size:100%;"&gt;This article attempts to provide a brief explanation of what VLANs are and how they work on a network. As a network administrator it is your responsibility to make sure that network users receive the services they need to successfully perform their job. For instance, it may be necessary to group certain individuals together on the network, or to separate particular parts of the network from certain users. Both of these tasks and many others can be accomplished by implementing virtual local area networks (VLANs). A VLAN is pretty much what its name implies, a network (LAN) that functions virtually or logically on a physical network. VLANs are a great solution for organizationally breaking a network into functional parts, grouping or organizing network users, controlling the size of a broadcast domain, or administering an additional layer of security on the network.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;br /&gt;LANs&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;A local area network (LAN) is a network that is under the control of one administrator. It is traditionally the combination of all of the devices located on a campus; this encompasses both network devices (routers, switches, hubs, etc.) and end devices (computers, printers, scanners, etc.). These devices will share the same media and IP addressing scheme, and users on the network are grouped together according to where they are physically located. These physical restraints could pose a problem within some organizations.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;VLANs&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;A VLAN is a group of devices on a network that behave as if they are attached to the same media and perform like an independent network. Here is an example: several individuals at XYZ, Inc. are working on the same project. These individuals work in two different departments located in different areas throughout the XYZ Inc. campus. Management has decided that it would be more efficient if the team is set up on its own separate network. The network administrator suggests implementing a VLAN solution. Now Jill in Accounting on the third floor is logically, as opposed to physically, connected to Jack in Marketing on the seventh floor.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;How They Work&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;There are two essential network devices that are necessary for VLAN implementation: a switch and a router. According to Cisco Systems a switch is “a network device that filters, forwards, and floods frames based on the destination address of each frame” &lt;u&gt;http://www.cisco.com/univercd/cc/td/doc/cisintwk/ita/s12.htm.&lt;/u&gt; A switch operates at the network layer (layer 1) of the TCP/IP Model and is usually the network aggregation point to attach end devices to the network. For example, your office PC (assuming you are on a wired network) more than likely is connected to the network via a switch.&lt;br /&gt;&lt;br /&gt;Routers are essential for inter-network communication. A router is a computer that moves (routes) data packets between different networks. Routers use Inter-network Layer IP addresses and route databases (tables) to accomplish this task. Routers also create a broadcast domain on the network by containing broadcast request packets within the LAN. Sometimes too much network traffic can bog down a network, especially if the number of broadcast request packets increase. In most cases reducing the size of the broadcast domain may resolve the problem.&lt;br /&gt;&lt;br /&gt;Since a router creates a broadcast domain on each network and each network must have a router for inter-network connectivity, it can be deduced that all inter-broadcast domain communication is done via the router as well. And since VLANs behave like an individual network, it could be correctly presumed that they are indeed their own broadcast domain. Given that inter-network connectivity is through a router, it can be ascertained that inter-VLAN communication is achieved through a router or another router-like device also:&lt;br /&gt;&lt;br /&gt;Routers=broadcast domain -&gt; VLANs=broadcast domain&lt;br /&gt;&lt;br /&gt;Inter-broadcast domain connectivity through router -&gt; Inter-VLAN connectivity through router as well.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Security&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;Bear in mind that VLANs logically group users and devices on the network. This characteristic could possibly be exploited to add an additional layer of security on the network. A network administrator could separate individuals and devices into groups and regulate the network traffic between them. Access Control Lists (ACL) or other filtering techniques could be used for even more granular control of VLAN packet traffic.&lt;br /&gt;&lt;br /&gt;VLAN implementation could also be used to control the size of a broadcast domain. Scaling down the broadcast domain size reduces the amount of network packets a user will be privy to on the network. This decreases the amount of information a malicious user or attacker could capture/“sniff” from the network. Furthermore, VLANs allow the network administrator to manage users by hierarchically assigning them to particular VLANs. This hinders an attacker from having access to the “entire network” by simply attaching to the LAN.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Implementation&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;Recall that the two essential network devices for VLAN implementation are the router and the switch. The following VLAN configuration will assume that the reader is setting  up a “router-on-a-stick” VLAN topology using a Cisco router with Catalyst 2950 or 2960 switches.&lt;br /&gt;&lt;br /&gt;The router configuration for the “router-on-a-stick” VLAN implementation is relatively simple. Most of the router settings are standard except for the port (trunk) which handles the VLAN traffic. A trunk is a network segment/channel that moves network packets between two points-in this case VLAN packets. Each trunk must be set up for encapsulation. Encapsulation is the process of tagging VLAN packets as they traverse the network. Dot1q encapsulation will be used in this configuration.&lt;br /&gt;&lt;br /&gt;The trunk port will have multiple sub-interfaces programmed on it. The reason, each VLAN must have an individual interface dedicated to it. Fortunately these interfaces do not have to be actual physical interfaces. This is why Cisco routers allow multiple sub-interfaces (logical interfaces) to be configured on one physical port. Each sub-interface will require a unique IP address. Every IP address is then associated to an individual VLAN. At last, the routing protocol must be configured on the router. The following configuration will use EIGRP.&lt;br /&gt;&lt;br /&gt;All switches will also need to be configured to participate in the VLAN process. Initially VLAN Trunking Protocol (VTP) must be set up on each switch. VTP reduces the amount of management a network administrator must do on a VLANed network. One switch will act as the VTP server while the others will function as clients. The VTP server is in charge of passing all relevant VLAN information to the VTP clients. A VTP management domain must then be created on the switches. Naturally all switches within the same VTP domain share like information. The domain for the following example will be “Cisco.” Individual VLANs must also be programmed into the switch, and each switchport will be assigned to a particular VLAN. The VLANs on the switch must be identical to the ones configured on the router. Finally, one of the switchports must function as the trunk port between the switch and the router, and like the router will use dot1q encapsulation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Device Configurations&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;VLAN Router&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;The configuration will omit the basic router configurations and focus on the VLAN settings.&lt;/i&gt;&lt;br /&gt;router#&lt;br /&gt;router#config t&lt;br /&gt;router(c)#hostname vlan_router&lt;br /&gt;vlan_router(c)#interface s0/0&lt;br /&gt;vlan_router(if)#ip address 200.200.200.201 255.255.255.252&lt;br /&gt;vlan_router(if)#no shutdown&lt;br /&gt;vlan_router(if)#description WAN Interface to ISP&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Program sub-interfaces on the router trunk port. These allow an interface to behave like multiple physical ports/interfaces. Sub-interfaces also preserve resources since multiple interfaces function on one port.&lt;/i&gt;&lt;br /&gt;vlan_router(if)#interface fastethernet 0/0&lt;br /&gt;vlan_router(if)#no shutdown&lt;br /&gt;vlan_router(if)#interface f0/0.1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;An encapsulation type must be applied to each trunk on a VLANed network. Dot1q is the non-proprietary encapsulation type used on VLAN networks. The native keyword applies dot1q to the native VLAN, which is VLAN 1 by default.&lt;/i&gt;&lt;br /&gt;vlan_router(if)# encapsulation dot1q native&lt;br /&gt;vlan_router(if)#ip address 192.168.1.1 255.255.255.0&lt;br /&gt;vlan_router(if)#description Sub-interface for VLAN 1&lt;br /&gt;vlan_router(if)#interface f0/0.10&lt;br /&gt;vlan_router(sub-if)#encapsulation dot1q 10&lt;br /&gt;vlan_router(sub-if)#ip address 192.168.10.1 255.255.255.0&lt;br /&gt;vlan_router(sub-if)# description Sub-interface for Accounting VLAN 10&lt;br /&gt;vlan_router(sub-if)#interface f0/0.20&lt;br /&gt;vlan_router(sub-if)#encapsulation dot1q 20&lt;br /&gt;vlan_router(sub-if)#ip address 192.168.20.1 255.255.255.0&lt;br /&gt;vlan_router(sub-if)#description Sub-interface for Marketing VLAN 20&lt;br /&gt;vlan_router(sub-if)#exit&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Program the router to use EIGRP with an autonomous system of 100 as the routing protocol. EIGRP should not do automatic summarization.&lt;/i&gt;&lt;br /&gt;vlan_router(c)#router eigrp 100&lt;br /&gt;vlan_router(c-router)#network 192.168.1.0&lt;br /&gt;vlan_router(c-router)#network 192.168.10.0&lt;br /&gt;vlan_router(c-router)#network 192.168.20.0&lt;br /&gt;vlan_router(c-router)#network 200.200.200.200&lt;br /&gt;vlan_router(c-router)#no auto-summary&lt;br /&gt;vlan_router(c-router)#end&lt;br /&gt;vlan_router#write memory&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;VLAN Switch&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;It is important to understand that by default there is at least one VLAN on every network. There is no need to program VLAN 1 into the switch because it already exists.  Enter the VLAN database mode to set up VLANS on the switch. VLANs must have a unique VLAN number and name.&lt;/i&gt;&lt;br /&gt;switch#vlan database&lt;br /&gt;switch(vlan)#vlan 10 name Accounting&lt;br /&gt;switch(vlan)#vlan 20 name Marketing&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Set up the switch as a VTP server and assign the VTP domain the title “Cisco.”&lt;/i&gt;&lt;br /&gt;switch(vlan)#vtp server&lt;br /&gt;switch(vlan)#vtp domain Cisco&lt;br /&gt;switch(vlan)#exit&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Designate a switchport as the trunk port and apply dot1q VLAN encapsulation.&lt;/i&gt;&lt;br /&gt;switch#conf t&lt;br /&gt;switch(c)#hostname vlan_switch&lt;br /&gt;vlan_switch(c)#interface f0/24&lt;br /&gt;vlan_switch(if)#switchport mode trunk&lt;br /&gt;vlan_switch(if)#switchport trunk encapsulation dot1q&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Spanning-Tree is a feature that avoids switching loops between switches with multiple trunks. Although this configuration is not necessary for this set-up, it is a good habit to form when configuring switches. The portfast keyword allows a non-trunking switchport to skip the process of checking the port for switching loops.&lt;/i&gt;&lt;br /&gt;vlan_switch(if)#interface range f0/0 - 4&lt;br /&gt;vlan_switch(if)#switchport access vlan 1&lt;br /&gt;vlan_switch(if)#spanning-tree portfast&lt;br /&gt;&lt;br /&gt;vlan_switch(if)#interface range f0/5 - 13&lt;br /&gt;vlan_switch(if)#switchport access vlan 10&lt;br /&gt;vlan_switch(if)#spanning-tree portfast&lt;br /&gt;&lt;br /&gt;vlan_switch(if)#interface range f0/14 - 23&lt;br /&gt;vlan_switch(if)#switchport access vlan 20&lt;br /&gt;vlan_router(if)#spanning-tree portfast&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Only one VLAN can be enabled at a time, so enable (with the no shutdown command) VLAN 1 since it is the management VLAN.&lt;/i&gt;&lt;br /&gt;vlan_router(if)#interface vlan 1&lt;br /&gt;vlan_router(if)#ip address 192.168.1.2 255.255.255.0&lt;br /&gt;vlan_router(if)#no shutdown&lt;br /&gt;vlan_router(if)#description Management VLAN&lt;br /&gt;&lt;br /&gt;vlan_router(if)#interface vlan 10&lt;br /&gt;vlan_router(if)#ip address 192.168.10.2 255.255.255.0&lt;br /&gt;vlan_router(if)#description Accounting VLAN&lt;br /&gt;&lt;br /&gt;vlan_router(if)#interface vlan 20&lt;br /&gt;vlan_router(if)#ip address 192.168.20.2 255.255.255.0&lt;br /&gt;vlan_router(if)#description Marketing VLAN&lt;br /&gt;&lt;br /&gt;vlan_switch(if)#end&lt;br /&gt;vlan_switch#write memory&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Conclusion&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;It should be stressed that entire books can be written about VLANs. This article merely scratches the surface of this great tool. Whether implementing VLANs for security, to organize your network into functional working parts, to add structure to the network, to eliminate flat LAN design, or reduce the size of a broadcast domain, VLANing is a great skill to add to your networking toolbox. So go ahead and give it a try. Happy VLANing!&lt;br /&gt;&lt;br /&gt;     by y0duh&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5769607921475220697-2488280545354199148?l=y0duh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://y0duh.blogspot.com/feeds/2488280545354199148/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5769607921475220697&amp;postID=2488280545354199148' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5769607921475220697/posts/default/2488280545354199148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5769607921475220697/posts/default/2488280545354199148'/><link rel='alternate' type='text/html' href='http://y0duh.blogspot.com/2007/11/zen-vlans.html' title='Zen VLANs'/><author><name>y0duh</name><uri>http://www.blogger.com/profile/11148485573902894200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5769607921475220697.post-3810387418898939911</id><published>2007-10-26T05:38:00.000-04:00</published><updated>2007-10-27T02:39:34.784-04:00</updated><title type='text'>Reasons for Layer 3 Switching</title><content type='html'>Here is a short paper that may justify using layer three switches on a network. I hope that it is informative.&lt;br /&gt;&lt;br /&gt;         &lt;br /&gt;&lt;b&gt;Reasons for L3 switching&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;Layer 3 switches can be used to route internal LAN or inter-VLAN traffic thereby reducing the amount of traffic processed by an enterprise router. This is especially effective when a L3 switch is used to connect a backbone within an enterprise network. However, the L3 switch will still have to rely on the network router to learn routing tables and route packets that have to be sent over the WAN. The enterprise router will mostly serve as the network gateway; thus, it will generally be used to perform inter-Autonomous System (AS) routing. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;VLANs and Cisco’s Three Layered Hierarchical Model Design&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;VLANs are virtual LANs created by an administrator for various reasons. VLANs will behave as if devices (within the same VLAN) are attached to the same switch and media. They will also create their own broadcast domain(s). Inter-VLAN traffic must be routed through a L3 device-this could be a router or a L3 switch. Often times L3 switches are used on VLANed networks to reduce the amount of processing a router has to perform when routing VLAN traffic. This is in accordance to Cisco’s Three Layered Hierarchical Model Design which states that the Core layer (most often the enterprise router(s)) should be used to specifically move traffic as quickly and efficiently as possible. See the following website for more information about the Three Layered Hierarchical Model Design: &lt;u&gt;http://www.cisco.com/univercd/cc/td/doc/cisintwk/idg4/nd2002.htm.&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Routing-on-a-Stick&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;A L3 switch could be omitted from a VLANed network with “routing-on-a-stick.” This network design uses the network router to do “trunking” between VLANs thereby managing inter-VLAN traffic. Configuring “routing-on-a-stick” is pretty straight-forward. A port on the router has to be configured to do trunking, and sub-interfaces must be configured on a router port. However, routing-on-a-stick does add to the processing the router is already performing on the network. In addition, for some network administrators, routing-on-a-stick may add to the complexity of a router configuration. Usually this setup is not a problem on small/simple networks, but could become cumbersome and difficult on larger, complex networks.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In conclusion, according to the Cisco Three Layered Hierarchical Design Model, if a router is acting strictly as a core layer device the only thing it should do is quickly move traffic. Yet, a “collapsed network” could be used where a router will act as both a core and distribution layer device. In the case of VLANs, the router will have trunking configured on one of its ports thereby adding to the processing that the router must do on the network while routing inter-VLAN traffic. Although the collapsed network design is less expensive since it eliminates the need for additional equipment (i.e. the L3 switch) it is not always the most efficient setup for a network using multiple VLANs.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;y0duh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5769607921475220697-3810387418898939911?l=y0duh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://y0duh.blogspot.com/feeds/3810387418898939911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5769607921475220697&amp;postID=3810387418898939911' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5769607921475220697/posts/default/3810387418898939911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5769607921475220697/posts/default/3810387418898939911'/><link rel='alternate' type='text/html' href='http://y0duh.blogspot.com/2007/10/reasons-for-layer-3-switches.html' title='Reasons for Layer 3 Switching'/><author><name>y0duh</name><uri>http://www.blogger.com/profile/11148485573902894200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5769607921475220697.post-9093309274576555834</id><published>2007-10-25T09:22:00.000-04:00</published><updated>2007-10-25T09:25:12.468-04:00</updated><title type='text'>Genesis</title><content type='html'>The beginning of my first blog. Hopefully I will be devoted enough to keep up with it.&lt;br /&gt;&lt;br /&gt;-y0duh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5769607921475220697-9093309274576555834?l=y0duh.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://y0duh.blogspot.com/feeds/9093309274576555834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5769607921475220697&amp;postID=9093309274576555834' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5769607921475220697/posts/default/9093309274576555834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5769607921475220697/posts/default/9093309274576555834'/><link rel='alternate' type='text/html' href='http://y0duh.blogspot.com/2007/10/genesis.html' title='Genesis'/><author><name>y0duh</name><uri>http://www.blogger.com/profile/11148485573902894200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
