1. 程式人生 > >初裝Linux後的連網操作

初裝Linux後的連網操作

linux網卡

系統環境:

[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)


[root@linuxidc ~]# rpm -q centos-release
centos-release-7-2.1511.el7.centos.2.10.x86_64

內核版本:

[root@linuxidc ~]# cat /proc/version
Linux version 3.10.0-327.18.2.el7.x86_64 ([email protected]) (gcc version 4.8.3 20140911 (Red H


[root@linuxidc ~]# uname -a
Linux linuxidc 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


編輯網卡配置文件:

vi /etc/sysconfig/network-scripts/ifcfg-eno16777736
進入配置文件後將ONBOOT=NO修改為yes;然後wq保存並退出。
重啟網絡服務:systemctl restart network
使用ip add命令查看網卡是否已被分配IP地址
技術分享圖片


測試網絡是否正常:(ping 命令)

ping www.baidu.com
技術分享圖片


至此,你就可以使用CRT或者Xshell對此機器進行遠程操作啦。

初裝Linux後的連網操作