HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_98
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 98 IMPORTANT NOTE: Time out problems for telnet or ftp connection are often caused by the server trying to resolve the client IP address to a DNS name. Either DNS isn’t configured properly on your server or the client machines aren’t known to DNS. If you are intended to run telnet or ftp services on your server, and aren’t using DNS, don’t forget to add client machine name and IP in your “/etc/hosts” file on the server or you can expect to wait several minutes for the DNS lookup to time out, before you get a login: prompt. Configuring TCP/IP Networking manually with the command line The ifconfig utility is the tool used to set up and  configure your network card. You should understand this command in the event you need to configure the network by hand. An important note to take care is when using ifconfig to configure your network devices, the settings will not survive a reboot. · To assigns the eth0 interface the IP-address of 208.164.186.2 use the command: [root@deep /]# ifconfig eth0 208.164.186.2 netmask 255.255.255.0 · To display all interfaces you may have on your server, use the command: [root@deep /]# ifconfig The output should look something like this: eth0 Link encap:Ethernet  HWaddr 00:E0:18:90:1B:56    inet addr:208.164.186.2  Bcast:208.164.186.255  Mask:255.255.255.0  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 RX packets:1295 errors:0 dropped:0 overruns:0 frame:0  TX packets:1163 errors:0 dropped:0 overruns:0 carrier:0  collisions:0 txqueuelen:100   Interrupt:11 Base address:0xa800   lo Link encap:Local Loopback    inet addr:127.0.0.1  Mask:255.0.0.0 UP LOOPBACK RUNNING  MTU:3924  Metric:1 RX packets:139 errors:0 dropped:0 overruns:0 frame:0  TX packets:139 errors:0 dropped:0 overruns:0 carrier:0  collisions:0 txqueuelen:0   If the ifconfig tool is invoked without any parameters, it displays all interfaces you configured. An option of “-a” shows the inactive one as well. · To display all interfaces as well as inactive interfaces you may have, use the command: [root@deep /]# ifconfig -a The output should look something like this: eth0 Link encap:Ethernet  HWaddr 00:E0:18:90:1B:56    inet addr:208.164.186.2  Bcast:208.164.186.255  Mask:255.255.255.0  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 RX packets:1295 errors:0 dropped:0 overruns:0 frame:0  TX packets:1163 errors:0 dropped:0 overruns:0 carrier:0  collisions:0 txqueuelen:100   Interrupt:11 Base address:0xa800   eth1 Link encap:Ethernet  HWaddr 00:E0:18:90:1B:56