<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ihitc.net/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Beno0020</id>
	<title>ITCwiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ihitc.net/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Beno0020"/>
	<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/w/Special:Contributions/Beno0020"/>
	<updated>2026-04-08T22:37:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.38.5</generator>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=User:Beno0020&amp;diff=4592</id>
		<title>User:Beno0020</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=User:Beno0020&amp;diff=4592"/>
		<updated>2011-07-25T03:19:21Z</updated>

		<summary type="html">&lt;p&gt;Beno0020: Created page with &amp;quot;   Chapter 12   Network Hardware Configuration  -The most basic part of network configuration is getting the network hardware up and running.  -Most of the time that is a fairly ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Chapter 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Network Hardware Configuration &lt;br /&gt;
-The most basic part of network configuration is getting the network hardware up and running. &lt;br /&gt;
-Most of the time that is a fairly automatic task since most systems ship with startup scripts that auto-detect the ::network card and loads the correct driver module.&lt;br /&gt;
-If the network hardware is not detected subsequent configuration will not work. You will need to load your network ::hardware driver. &lt;br /&gt;
-You will use the modprobe command. You must know the name of the networks hardware kernel module.&lt;br /&gt;
# modprobe &amp;lt;insert kernel name here&amp;gt; &lt;br /&gt;
Configuring with DHCP&lt;br /&gt;
-One of the most easy ways to configure a computer to use a TCP/IP network is to use DHCP. This allows one computer on ::a network to manage the settings for many other computers.&lt;br /&gt;
-When a computer running a DHCP client boots up it send out a broadcast looking for a DHCP server. The server then ::replies with the configuration information needed by the client to communicate with the computers on the network.&lt;br /&gt;
-Linux has three common DHCP clients.&lt;br /&gt;
pump&lt;br /&gt;
dhclient &lt;br /&gt;
dhcpcd &lt;br /&gt;
-Some distributions ship with one of these but others ship with two or all three. They will all have a default DHCP ::client, that is installed when you tell the system you want to use DHCP at the installation.&lt;br /&gt;
-On systems that ship with more then one DHCP client you can swap one out for another by removing the old client and ::installing the package for the new one.&lt;br /&gt;
-The DHCP client runs at system bootup and is handled by its own SysV startup file or as part of the main network ::configuration startup file.&lt;br /&gt;
-This SysV file is typically named networking or network.&lt;br /&gt;
-The system uses a line in a configuration file to determine whether to run a DHCP client. &lt;br /&gt;
-Red Hat and Fedora set this option in a file called /etc/sysconfig/network-scripts/ifcfg-eth0 (the filename will be ::different if something other than a single Ethernet interface is used)&lt;br /&gt;
-The line in question looks like this: BOOTPROTO=dhcp &lt;br /&gt;
-If the BOOTPROTO variable is set to something different changing to the above line will set the system to use DHCP.&lt;br /&gt;
-Ubuntu uses the /etc/network/interfaces file for a similar purpose but the details differ. &lt;br /&gt;
-On a system that uses DHCP you will see a line like: iface eth0 inet dhcp&lt;br /&gt;
-You may prefer to use the GUI system to adjust these options.&lt;br /&gt;
-Once the DHCP client is configured to run when the system boots the configuration task is complete. On rare occasions ::you may need to tweak the DHCP settings to work around client/server incompatibilities.&lt;br /&gt;
-If you have to manually run a DHCP client you can do so by typing its name (as root) followed by a network identifier ::such as: dhclient eth0 to have the DHCP client attempt to configure eth0 with the help of any DHCP server it find on the &lt;br /&gt;
network.&lt;br /&gt;
Configure with a Static IP Address &lt;br /&gt;
-When a network lacks a DHCP server you will need to provide basic network configuration options manually. &lt;br /&gt;
-These options can be set using interactive commands but to sent them long term you need to adjust a configuration file ::such as:&lt;br /&gt;
/etc/sysconfig/ network-scripts/ifcfg-eth0 or /etc/network/interfaces&lt;br /&gt;
-IP address: You can set the IP address manually with the ifconfig command or at the IPADDR line in the configuration ::file.&lt;br /&gt;
-Network mask: You can set the netmask manually with the ifconfig command or at the NETMASK line in the configuration ::file.&lt;br /&gt;
-Gateway address: You can manually set the gateway via the route command. To make it permanent you need to adjust the ::configuration file. This file may be the same that holds other options or another file such as: /etc/sysconfig/&lt;br /&gt;
network/routes and is most likely called GATEWAY.&lt;br /&gt;
-DNS settings: In order for Linux to use DNS to translate between IP addresses and hostnames you must specify at least ::one DNS server in the /etc/resolv.config file. Adjusting this file is all you need to do to set the name server address.&lt;br /&gt;
-You can also set your computers local domain name in this file using the domain option: domain &amp;lt;name of the domain you ::want to use&amp;gt;&lt;br /&gt;
-The network configuration script may hold other options such as:&lt;br /&gt;
DEVICE=eth0 to specify the interface name&lt;br /&gt;
BOOTPROTO=static to assign a static IP address&lt;br /&gt;
ONBOOT=yes to bring up an interface when the system boots&lt;br /&gt;
NETWORK and BROADCAST are derived from the IPADDR and NETMASK and can be changed if you understand the consequences of ::doing so.&lt;br /&gt;
-This command will bring up eth0 using address 192.168.29.39 and netmask 255.255.255.0&lt;br /&gt;
1. ifconfig etho up 192.168.29.39 netmask 255.255.255.0&lt;br /&gt;
-This command links the specified address to the card so that the computer responds to the address and claims to be that ::address when sending data.&lt;br /&gt;
-Both ifconfig and route can display information on the current network configuration.&lt;br /&gt;
-For ifconfig, omit up and everything that follows; for route, omit add everything that follows.&lt;br /&gt;
-To view the interface you may use this command: # ifconfig eth0&lt;br /&gt;
-When configured correctly ifconfig should show a hardware address an IP address and some other statistics.&lt;br /&gt;
Configuring Routing &lt;br /&gt;
-Routers pass traffic from one network to another. You give the computer a routers address which your system uses as a ::gateway to the internet.&lt;br /&gt;
-Any traffic not directed to the network is directed to the router which then sends it on to it’s destination. Every ::router has a list of rules concerning where to send data based on the destination IP address. &lt;br /&gt;
-The –net and –host force route to interpret the target as a network or computer address, respectively. &lt;br /&gt;
-Netmask lets you set a netmask as you desire and gw lets you specify a router through which packets to the specified ::target should go.&lt;br /&gt;
-The reject keyword installs a blocking route , which refuses all traffic destined for the specific network.&lt;br /&gt;
-Incorrect routing tables can cause serious problems causing some or all computers on the network not to respond. You ::can use route alone to compare the results to what your routing table should be. &lt;br /&gt;
Network Device Configuration Utilities (ip and ifconfig)*(pg. 301)&lt;br /&gt;
	      The ifconfig program is primarily responsible for setting up your network           &lt;br /&gt;
                   interface&lt;br /&gt;
	      cards (NICs). All of its operations can be performed through command-line options,&lt;br /&gt;
                  as&lt;br /&gt;
	      its native format has no menus or graphical interface. Administrators that have&lt;br /&gt;
                  used&lt;br /&gt;
	      the Windows ipconfig program may see some similarities, as Microsoft &lt;br /&gt;
                  implemented&lt;br /&gt;
	      some command-line interface (CLI) networking tools that mimicked functional&lt;br /&gt;
                  of their UNIX counterparts.&lt;br /&gt;
	     TIP Administrators still dealing with Windows may find the %SYSTEMROO%\system32\&lt;br /&gt;
	     netsh.exe program a handy tool for exposing and manipulating the details of Windows&lt;br /&gt;
                  networking&lt;br /&gt;
	     via the CLI.&lt;br /&gt;
	    NOTE The ifconfig program typically resides in the /sbin directory, which is included in&lt;br /&gt;
                root’s&lt;br /&gt;
	    PATH. Some login scripts, such as those in Fedora, do not include /sbin in the PATH for&lt;br /&gt;
                nonprivileged&lt;br /&gt;
	    users by default. Thus, you may need to invoke /sbin/ifconfig when calling on it as a regular&lt;br /&gt;
                user. If&lt;br /&gt;
	    you expect to be a frequent user of commands under /sbin, you may find it prudent to add&lt;br /&gt;
               /sbin toyour PATH.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Setting Up NICs under Fedora and RHEL*(pg.304,305)&lt;br /&gt;
	Fedora and other Red Hat–type systems use a simple setup that makes it easy to configure&lt;br /&gt;
	network cards at boot time. It is done through the creation of files in the /etc/&lt;br /&gt;
	sysconfig/network-scripts directory that are read at boot time. All of the graphical tools&lt;br /&gt;
	under Fedora create and manage these files for you; for other people who like to get under&lt;br /&gt;
	the hood, the following sections show how to manually manage the configuration files.&lt;br /&gt;
	For each network interface, there is an ifcfg file in /etc/sysconfig/network-scripts.&lt;br /&gt;
	This filename is suffixed by the name of the device; thus, ifcfg-eth0 is for the eth0 device,&lt;br /&gt;
	ifcfg-eth1 is for the eth1 device, and so on.&lt;br /&gt;
	If you choose to use a static IP address at installation time, the format for the interface&lt;br /&gt;
	configuration file for eth0 will be as follows:&lt;br /&gt;
	DEVICE=eth0&lt;br /&gt;
	ONBOOT=yes&lt;br /&gt;
	BOOTPROTO=none&lt;br /&gt;
	Network Configuration 305&lt;br /&gt;
	NETMASK=255.255.255.0&lt;br /&gt;
	IPADDR= 192.168.1.100&lt;br /&gt;
	GATEWAY=192.168.1.1&lt;br /&gt;
	TYPE=Ethernet&lt;br /&gt;
	HWADDR=00:0c:29:ac:5b:cd&lt;br /&gt;
Hostnames *(pg. 23-24,535) &lt;br /&gt;
There are 2 way to configure the hostname&lt;br /&gt;
-On DNS&lt;br /&gt;
-On you local computer&lt;br /&gt;
Domain Name System (DNS) *(pg. 377-413) &lt;br /&gt;
- “is a distributed database computers that converts between IP addresses and &lt;br /&gt;
hostnames”.&lt;br /&gt;
- The DNS server just sit and listen for other computers on the network to send &lt;br /&gt;
request.&lt;br /&gt;
- The server then send the request out to other DNS server if it cannot find it &lt;br /&gt;
in it cache.&lt;br /&gt;
- If the server found what the request is asking for then it will send a request&lt;br /&gt;
back to the computer telling it where to go.&lt;br /&gt;
Diagnosing Network Connections *(pg. 316) &lt;br /&gt;
- There are a few command that will help diagnose a problem.&lt;br /&gt;
- They are ping, traceroute, tracepath, netstat, and tcpdump.&lt;br /&gt;
Ping command *(pg. 316) &lt;br /&gt;
- The ping command is a very basic network test, which send ICMP packet to the &lt;br /&gt;
system you name, hostnames, or ip address and wait for a reply&lt;br /&gt;
- In Linux it send the packet every second until you press Ctrl+C key to stop &lt;br /&gt;
the stroke.&lt;br /&gt;
Traceroute command *(pg. 348-349&lt;br /&gt;
- This command will sends a series of three test packets to each computer &lt;br /&gt;
between your system and a specified target system&lt;br /&gt;
Tracepath command *(pg. 413) &lt;br /&gt;
- This command is a lot similar to traceroute&lt;br /&gt;
Checking Network Status &lt;br /&gt;
-A useful diagnostic tool is Netstat&lt;br /&gt;
-Netstat can be used in place of many other tools.&lt;br /&gt;
-It also shows information that is not easily found in other ways.&lt;br /&gt;
Netstat options *(pg. 312-313) &lt;br /&gt;
-Interface information: use netstat –interface or -i parameter to see information about &lt;br /&gt;
network interfaces. This is similar to what ifconfig command displays &lt;br /&gt;
-Routing information: use netstat –route or -r parameter to see the routing table. This &lt;br /&gt;
output is similar to what the route command shows&lt;br /&gt;
-Masquerade information: use netstat –masquerade or –M to see information about &lt;br /&gt;
connections mediated by Linux’s NAT features . This is a good way to stretch limited &lt;br /&gt;
IPv4 addresses. &lt;br /&gt;
-Program use: use netstat –program or –p parameter to show information about programs that &lt;br /&gt;
are using network connections. &lt;br /&gt;
-All connections: use netstat –all or –a parameter to display information about the ports &lt;br /&gt;
that server programs open to listen for network connections. &lt;br /&gt;
tcpdump *(pg. 289-294) &lt;br /&gt;
-Advanced network troubleshooting tool. &lt;br /&gt;
-tcpdump is a packet sniffer that intercepts network packets and log them on the screen.&lt;br /&gt;
-Useful tool to verify that computer is receiving data from other computers &lt;br /&gt;
-This is also useful to examine the data in its raw form, which can be helpful if you &lt;br /&gt;
-understand protocols implementation details allowing you to spot problems. &lt;br /&gt;
-Be aware that packet sniffers can be used by individuals to capture passwords sent over &lt;br /&gt;
the network. &lt;br /&gt;
-You must use tcpdump in root mode. &lt;br /&gt;
-Once you enter tcpdump it summarizes what it is doing and prints lines, one for each packet &lt;br /&gt;
it monitors. &lt;br /&gt;
-Lines consist of time stamps, stack identifiers, origin system name, IP addresses and &lt;br /&gt;
port, destination system name and packet-specific information. &lt;br /&gt;
-Once tcpdump starts it dose not stop so you must press Ctrl+C to terminate it.&lt;br /&gt;
tcpdump options &lt;br /&gt;
- A: displays packet contents in ASCII&lt;br /&gt;
- D: Displays a list of interfaces tcpdump can listen to. &lt;br /&gt;
- n: Shows all addresses numerically.&lt;br /&gt;
- v: Shows additional packet information. &lt;br /&gt;
- w file: Used to write captured packets to the specified file. &lt;br /&gt;
-You could consult tcpdump’s man page for details and for additional options.&lt;br /&gt;
Additional Networking Tools &lt;br /&gt;
-Other than networking diagnostic programs you could use some common programs as debugging tools. &lt;br /&gt;
-One of the most helpful tools may be Telnet a program and protocol tool that is mainly used as &lt;br /&gt;
a remote login tool. &lt;br /&gt;
-Telnet is considered a poor choice as a remote login protocol due to the fact that it &lt;br /&gt;
is entirely unencrypted. &lt;br /&gt;
-A good rule to follow is that you should remove Telnet server from your system and never use &lt;br /&gt;
the telnet client program. SSH is a safer alternative to Telnet described in chapter 10.&lt;br /&gt;
Using Telnet to Debug Network Protocols &lt;br /&gt;
-If you include a port number after the remote hostname, the program connects to the &lt;br /&gt;
specified port allowing you to interact with the server. &lt;br /&gt;
-To use telnet this way you must know a lot of information about the protocol. Without &lt;br /&gt;
the knowledge of the protocol you can still use Telnet to test if a server is running or not. &lt;br /&gt;
-If you try to connect and get a connection refused error message you know that a remote &lt;br /&gt;
server is not running or is inaccessible. (This may be because a firewall is blocking &lt;br /&gt;
the connection)&lt;br /&gt;
-If the result is Escape character this means that the server is running, even though it &lt;br /&gt;
could not be working correctly.&lt;br /&gt;
-This test only works for protocols that us TCP. UDP tools will not connect. &lt;br /&gt;
Using Telnet to Debug Network Protocols continued &lt;br /&gt;
-Sometimes File Transfer Protocols (FTP) can be a helpful tool.&lt;br /&gt;
-This program allows you to transfer files between systems, as its name suggests. &lt;br /&gt;
-To use this tool type the program name followed by the FTP servers name, which will then &lt;br /&gt;
show you a login prompt, allowing you to issue FTP commands.&lt;/div&gt;</summary>
		<author><name>Beno0020</name></author>
	</entry>
</feed>