[M-003]conf:PKC-云平台虚机网络配置

2020-03-09  本文已影响0人  JeffenCheung

issue

solutions

Step by step

# 查看网卡信息
ip a
ifconfig
# enp1s0 inet 地址 192.168.x.x
# enp6s0
# 编辑网卡
vi /etc/network/interfaces
# Ctl+o编辑添加
auto lo
iface lo inet loopback
auto enp1s0
iface enp1s0 inet dhcp
# 可添加多个网卡
auto enp6s0
iface enp6s0 inet dhcp
# Ctl+: wq 保存退出
:wq
sudo /etc/init.d/networking restart
# 确认网卡配置
ifconfig
上一篇 下一篇

猜你喜欢

热点阅读