Network configuration on OpenSolaris

Static IP address Assigning a static IP address on OpenSolaris is accomplished by editing the hostname files in the directory /etc. For example, assign a static IP address to interface bge0 by editing /etc/hostname.bge0: Set the netmask by editing the file /etc/inet/netmasks: Set the default gateway by editing the file /etc/defaultrouter: […]

Network configuration on CentOS

Static IP address Assigning a static IP address on CentOS is accomplished by editing the files in the directory /etc/sysconfig/network-scripts. For example, assign a static IP address to interface eth0 by editing /etc/sysconfig/network-scripts/ifcfg-eth0: DEVICE=eth0 BOOTPROTO=none IPADDR= NETMASK= GATEWAY= ONBOOT=yes Network interface bonding To achieve higher bandwidth and/or reliability, network interfaces can be bonded. First, edit […]

Enabling NTP daemon on CentOS

Here are the steps to take to enable the Network Time Protocol (NTP) daemon on CentOS. Change the timeserver value to one that is close to you. yum install ntp ntpdate service ntpd start chkconfig ntpd on If you encounter the error “no server suitable for synchronization found”, you can use an unprivileged port […]

Samba file sharing

Samba is a file and print server for Windows-based clients using TCP/IP as the underlying transport protocol. In fact, it can support any SMB/CIFS-enabled client. One of Samba’s big strengths is that you can use it to blend your mix of Windows and Unix machines together without requiring a separate Windows NT/2000/2003 Server. On OpenBSD, […]

Network Time Protocol (NTP)

The Network Time Protocol (NTP) is used to synchronize the time of a computer client or server to another server or reference time source, such as a radio or satellite receiver or modem. It provides accuracies typically within a millisecond on LANs and up to a few tens of milliseconds on WANs relative to Coordinated […]

Dynamic Host Configuration Protocol (DHCP)

The Dynamic Host Configuration Protocol (DHCP) is an Internet protocol for automating the configuration of computers that use TCP/IP. DHCP can be used to automatically assign IP addresses, to deliver TCP/IP stack configuration parameters such as the subnet mask and default router, and to provide other configuration information such as the addresses for printer, time […]

BIND DNS server

BIND (Berkeley Internet Name Domain) is an implementation of the Domain Name System (DNS) protocols and provides an openly redistributable reference implementation of the major components of DNS, including a DNS server (named), a DNS resolver library and tools for verifying the proper operation of the DNS server. The BIND DNS Server is used on […]

Apache virtual hosts

Assume we want to serve webpages for two domains, and and these pages should be available with and without the ‘www’, so from,, and In addition, clients connecting directly to our IP address, instead of using these domain names, should get an error message (404 Not Found) or short […]

Multiple webservers behind one IP address

This article was featured on Daemon News 2002-02. Overview This article discusses a network setup where multiple webservers reside behind one IP address. Such a situation may arise when you need a specific webserver for one task and a different webserver for another task, running different operating systems or webserver software. With only one IP […]