Network Configuration On Red Hat Enterprise Linux/CentOS Linux

preview_player
Показать описание
Interface: eth0
IP Address: 172.x.x.x
Subnet Mask: 255.255.255.0
Gateway:172.x.x.x
Name Server or DNS: 8.8.8.8 (you can use any public DNS or your ISP DNS)
Broadcast address x.x.x.x
Method : Static or Manual (Define Static IP or Non-DHCP)

There are three types of method for configuration of Network in Linux or RHEL / CentOS Linux.

1 - ifcfg-eth0 Script Method (Complex):
Edit interface file using any editor.
vim /etc/sysconfig/network-scripts/ifcfg-eth0

2 - nmcli Method (Hard):
Edit Connection with Command Line Interface

3- nmtui Method: (Easy)
Edit Connection with Text Based User Interface
Рекомендации по теме