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: 192.168.0.123 Set the netmask by editing the file /etc/inet/netmasks: 192.168.0.0 255.255.255.0 Set the default gateway by editing the file /etc/defaultrouter: 192.168.0.1 […]

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=192.168.0.123 NETMASK=255.255.255.0 GATEWAY=192.168.0.1 ONBOOT=yes Network interface bonding To achieve higher bandwidth and/or reliability, network interfaces can be bonded. First, edit […]