Page 100 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 100
Network Operating Systems-I
notes Proxy configuration. Choose one of three options:
1. Direct internet connection
2. Manual proxy configuration (specify proxy and port)
3. Automatic proxy configuration (give URL)
assigning an ip address
Computers may be assiged a static IP address or assigned one dynamically. Typically a server
will require a static IP while a workstation will use DHCP (dynamic IP assignment). The Linux
server requires a static IP so that those who wish to use its resources can find the system. It is
more easily found if the IP address does not change and is static. This is not important for the
Linux client workstation and thus it is easier to use an automated Dynamic Host Configuration
Protocol (DHCP) for IP address assignment.
static ip address assignment
Choose one of the following methods:
1. Command Line:
/sbin/ifconfig eth0 192.168.10.12 netmask 255.255.255.0 broadcast 192.168.10.255
Network address by convention would be the lowest: 192.168.10.0
Broadcast address by convention would be the highest: 192.168.10.255
The gateway can be anything, but following convention: 192.168.10.1
Note the highest and lowest addresses are based on the netmask. The previous
example is based on a netmask of 255.255.255.0
2. Red Hat / Fedora GUI tools:
/usr/bin/neat Gnome GUI network administration tool. Handles all interfaces. Configure
for Static IP or DHCP client. (First available with Red Hat 7.2.)
/usr/bin/netcfg (Handles all interfaces) (last available in Red Hat 7.1)
3. Red Hat / Fedora Console tools:
/usr/sbin/system-config-network-tui (Text User Interface)
/usr/sbin/netconfig (Only seems to work for the first network interface eth0 but not
eth1,...)
4. Directly edit configuration files/scripts. See format below.
The ifconfig command does NOT store this information permanently. Upon reboot this
information is lost. Manually add the network configuration to /etc/sysconfig/network-scripts/
ifcfg-eth0 (Red Hat/Fedora/CentOS) for the first NIC, ifcfg-eth1 for the second, etc, or /etc/
network/interfaces (Ubuntu) as shown below. Any other commands you may want to add to the
system boot sequence can be added to the end of the file /etc/rc.d/rc.local. The commands netcfg
and netconfig make permanent changes to system network configuration files located in /etc/
sysconfig/network-scripts/, so that this information is retained and used upon system boot.
94 LoveLy professionaL university