网卡指定ip配置
BOOTPROTO=static
DEVICE=eth1
HWADDR=02:cf:e9:eb:4e:f3
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPADDR=172.16.137.180
GATEWAY=172.16.137.1
NETMASK=255.255.255.0
DNS1=114.114.114.114
IPV4_ROUTE_METRIC= 路由优先级
网卡dhcp配置
BOOTPROTO=dhcp
DEVICE=eth0
HWADDR=02:b6:cc:d8:13:19
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
路由默认第一条更改可在第二条网卡内配置DEFROUTE=no重启网络 ~
评论区