Centos 7 網路配置
阿新 • • 發佈:2018-12-10
變化:ip 命令替換了ifconfig
# ip link show # 顯示網路介面資訊# ip link set eth0 upi # 開啟網絡卡# ip link set eth0 down # 關閉網絡卡# ip link set eth0 promisc on # 開啟網絡卡的混合模式# ip link set eth0 promisc offi # 關閉網絡卡的混個模式
# ip route del default # 刪除預設路由
使用nmcli配置網絡卡
命令:vi /etc/sysconfig/network-script/ifcfg-`name`
重啟網絡卡
service network restart
參照:https://www.linuxidc.com/Linux/2016-06/132420.htm
微信:18991138195 18629350104