问题复现
ifconfig时没有ens33网卡
解决不能展示ens33网卡问题
- 切换到 /etc/sysconfig/network-scripts
[admin@localhost network-scripts]# cd /etc/sysconfig/network-scripts
- 打开 ifcfg-ens33,查看内容,发现内容无缺少
[admin@localhost network-scripts]$ vi ifcfg-ens33
3. 指定启动ens33网卡,查看网卡
## 指定启动ens33网卡
[root@localhost network-scripts]# ifconfig ens33 up
## 查看网卡
[root@localhost network-scripts]# ifconfig
配置IP地址
有ens33网卡,但没有IPv4地址,需要分配IPv4地址
- 查看本地IP地址,192.168.152.188
- 配置Linux中ens33网卡地址,需与本地IP地址前三位一致,处于同一个子网
[root@localhost network-scripts]# ifconfig ens33 192.168.152.65 up