Saturday, August 29, 2009

Linux Network Configuration

How to Configure Network on Linux

What are the RPM need to installed

kdenetwork-3.5.4-4.fc6
system-config-network-1.3.99-1.el5
system-config-network-tui-1.3.99-1.el5
kdenetwork-devel-3.5.4-4.fc6
Network Configuration File

#/etc/sysconfig/network-scripts/ifcfg-eth0
#/etc/sysconfig/network
Network Configuration Tool

system-config-network
system-config-network-gui
system-config-network-cmd
system-config-network-tui

What is service need to be started

service network restart/stop/start

Editing network Configuration File

maually assigning ip address
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
IPADDR=10.192.194.110
BOOTPROTO=static ("dhcp" when you want dhcp server ip address)
NETMASK=255.255.240.0
MII_NOT_SUPPORTED=yes
ONBOOT=yes
How add the Default Route Redhat Linux:

vi /etc/sysconfig/network
HOSTNAME=bgospc
GATEWAY=10.192.207.254
NETWORKING=yes

How add the Default Route in SuSe Linux:

#vi /etc/sysconfig/network/routes
default 10.192.207.254 - -
How to add DNS Server name and IP address

Add the entry to vi /etc/resolv.conf

#vi /etc/resolv.conf
search bg.emulex.com ad.emulex.com emulex.com wa.emulex.com sj.emulex.com ma.emulex.com co.emulex.com
nameserver 138.239.197.20
nameserver 138.239.197.101
nameserver 138.239.197.103

No comments:

Post a Comment