/etc/hosts
Resolve host names that cannot be resolved any other way, by DNA for example.
/etc/resolv.conf
This file specifies the IP
addresses of DNS
servers and the search domain.
/etc/sysconfig/network
This file specifies routing and host information for all network interfaces.
/etc/sysconfig/network-scripts/ifcfg-interface-name
For each network interface, there is a corresponding interface configuration script. Each of these files provide information specific to a particular network interface.
See also nmtui (similar to netconfig on Slackware)
If not installed;
yum install NetworkManager-tui
To change the IP address on RedHat:
ifconfig eth0 192.168.254.199 netmask 255.255.255.0 up (temp, will change on next boot)
vi /etc/sysconfig/network-scripts/ifcfg-eth0
Restart network with:
service network restart
With Slackware we of course use netconfig
Or
edit /etc/rc.d/rc.inet1.conf
and restart with /etc/rc.d/rc.inet1 restart
No comments:
Post a Comment
Note: only a member of this blog may post a comment.