RedHat Network configuration
Run nmtui
Then maybe;
service network restart
If we wish to change from DHCP to a static IP, edit the following file;
Replacing the if cfg-eth0 to suit the network interface.
Change BOOTPROTO from dhcp to static and add IPADDR=xxx.xxx.xxx.xxx
Might be worth changing ONBOOT to yes, however if you run nmtui and check Automatically Connect, this should do this for us.
See also from here
RHEL Network configuration
The primary network configuration files are as follows:
/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 ofDNS
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:
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.