Professional Documents
Culture Documents
Network Management
Objectives:
25/tcp smtp
53/udp dns
80/tcp www
110/tcp POP3
The complete list of port used in TCP/IP is available in
/etc/services file.
Network Scripts
Using Red Hat Linux, all network
communications occur between configured
interfaces and physical networking devices
connected to the system. The different types of
interfaces that exist are as varied as the physical
devices they support.
/etc/hosts — The main purpose of this file is to resolve hostnames that cannot
be resolved any other way. It can also be used on resolve hostnames on small
networks with no DNS server. Regardless of the type of network the computer
is on, this file should contain a line specifying the IP address of the loopback
device (127.0.0.1) as localhost.localdomain.
/etc/resolv.conf — This file specifies the IP addresses of DNS servers and the
search domain. Unless configured to do otherwise, the network initialization
scripts populate this file.
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
NETWORK=10.0.1.0
NETMASK=255.255.255.0
IPADDR=10.0.1.27
USERCTL=no
Ethernet Interfaces
The values required in an interface
configuration file can change based on other
values. For example, the ifcfg-eth0 file for an
interface using DHCP looks quite a bit different,
because the DHCP server provides IP
information
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
Activating & Deactivating Network Interfaces
/etc/xinetd.conf
The commands can be used to activate and deactivate the Ethernet interface
eth0
# ifconfig eth0
The above command will give information about the Ethernet interface eth0
# ifconfig –a
The above command will display all information about all the interfaces.