Linux网络服务涉及多个方面,包括网络配置、监控、管理以及安全等。
操作系统:
CentOS Stream 9
实验步骤:
配置IP
[root@localhost ~]# cat /etc/NetworkManager/system-connections/ens160.nmconnection
[connection]
id=ens160
uuid=373e7dc5-7ebd-3477-adac-3eee31fd0e20
type=ethernet
autoconnect-priority=-999
interface-name=ens160
timestamp=1716431315
[ethernet]
[ipv4]
address1=192.168.80.117/24,192.168.80.1
method=manual
[ipv6]
addr-gen-mode=eui64
method=auto
[proxy]
[root@localhost ~]#
配置dns
[root@localhost ~]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 114.114.114.114
[root@localhost ~]#