# 基於橋接模式設置固定 ip cat >> /etc/sysconfig/network-scripts/ifcfg-enp0s3 << EOF # network setting BOOTPROTO=static # 固定ip IPADDR=192.168.1.84 # 網關 GATEWAY=192.168.1.1 # DNS DNS1=8.8.8.8 DNS2=114.114.114.114 EOF # 重啓network service network restart