1.[[email protected] ~]# cd /etc/sysconfig/network-scripts //进入配置网络脚本的文件夹下
2.[[email protected] network-scripts]# ls 查看网络脚本配置文件,一般以ifcfg开头
3.[[email protected] network-scripts]# ls //查看当前目录下的文件
4.[[email protected] network-scripts]# vi ifcfg-ens33 //编辑ifcfg-ens文件,按i键编辑,编辑完成后按ESC键退出编辑模式,在输入Shift+:,然后输入wq保存并退出
5.[[email protected] network-scripts]# ping www.baidu.com //ping百度看网络通不通
6.[[email protected] /]# ip addr //查看网络配置,红色标记就是你的IP地址,可以通过远程终端工具访问linux了
7.使用远程终端putty管理linux
相关文章: