[root@VM-0-12-centos network-scripts]# pwd
/etc/sysconfig/network-scripts
[root@VM-0-12-centos network-scripts]#
[root@VM-0-12-centos network-scripts]# nl ifcfg-eth0
1 # Created by cloud-init on instance boot automatically, do not edit.
2 #
3 BOOTPROTO=dhcp
4 DEVICE=eth0
5 HWADDR=52:54:00:97:41:57
6 ONBOOT=yes
7 PERSISTENT_DHCLIENT=yes
8 TYPE=Ethernet
9 USERCTL=no
[root@VM-0-12-centos network-scripts]#

[root@VM-0-12-centos etc]# more csh.login

[root@VM-0-12-centos etc]# less csh.login



该博客展示了如何在CentOS系统中查看网络配置文件`ifcfg-eth0`,该文件使用DHCP进行网络自动配置,并设置了开机启动。同时,还提及了查看`csh.login`配置文件的过程。

被折叠的 条评论
为什么被折叠?



