การปรับค่า Hostname, และ IP ของ CentOS 8
การปรับ Hostname
1. พิมพ์คำสั่ง
nmtui-hostname
2. กำหนดชื่อ Hostname ที่ต้องการ
การปรับ IP Address
1. พิมพ์คำสั่ง
nmtui-edit
2. กำหนดชื่อ IP Address ที่ต้องการ
3. พิมพ์คำสั่ง
nmtui-connect
4. เลือก IP Address ที่ต้องการเชื่อมต่อ
5. ตรวจสอบรายละเอียด IP
ip adr
ip a
ip a | inet
ifconfig enp0s3
6. ทดสอบการเชื่อมต่ออินเทอร์เน็ต
ping -c2 www.google.co.th
การตรวจสอบรายละเอียดไอพี ด้วยคำสั่ง ethtool และ mii-tool
# dnf install ethtool mii-tool
# ethtool enp0s3
# mii-tool enp0s3
# netstat -tulpn
# ss -tulpn
# lsof -i4 -6