|
Configuring Linux on a network
HOWTO configure the network interface and routing by
using commands /sbin/ifconfig and /sbin/route
Command to check the interface configuration:
or
Command to check the routing configuration:
or
Command to stop the interface:
or
Command to configure the interface:
Command to configure the routing to the gateway:
HOWTO Configure the network interface and routing by using the startup scripts.
Static IP address configuration on Ubuntu in /etc/network/interfaces
Dynamic (DHCP) configuration on Ubuntu:
Static IP address configuration on RedHat:
Specific settings for the network cards go into the config files in directory /etc/sysconfig/network-scripts. For example,
/etc/sysconfig/network-scripts/ifcfg-eth0
Dynamic (DHCP) configuration on RedHat:
The interface configuration file for eth0,
/etc/sysconfig/network-scripts/ifcfg-eth0:
For the name resolution, configure
/etc/hosts, /etc/resolv.conf, /etc/nsswitch.conf
|
|