centos7.6修改外接網(wǎng)卡名稱規(guī)則 centos系統(tǒng)光口網(wǎng)卡怎么配置?
centos系統(tǒng)光口網(wǎng)卡怎么配置?帶有vi/etc/sysconfig/network-scripts/ifcfg-eno16777736bootprotostaticonbootyesipaddr1
centos系統(tǒng)光口網(wǎng)卡怎么配置?
帶有vi/etc/sysconfig/network-scripts/ifcfg-eno16777736bootprotostaticonbootyesipaddr192.168.1.120prefix24gateway192.168.1.1
centos7.4路由表更改?
我的系統(tǒng)是:RH9.0有兩個(gè)網(wǎng)卡。
單位有兩個(gè)網(wǎng)關(guān)看看速度快但不比較穩(wěn)定,一個(gè)速度慢但很穩(wěn)定。我的系統(tǒng)的靜態(tài)路由表不勝感激:
[root]#route-n
KernelIProutingtable
DestinationGenmaskFlagsMetricRefUseIface
192.168.1.00.0.0.0255.255.255.0U000eth0
192.168.0.00.0.0.0255.255.255.0U000eth1
169.254.0.00.0.0.0255.255.0.0U000eth1
127.0.0.00.0.0.0255.0.0.0U000lo
0.0.0.0192.168.0.1920.0.0.0UG000eth1
我你每次開機(jī)后都要改一改這個(gè)路由表才能同樣的在用兩個(gè)網(wǎng)關(guān)192.168.0.191和192.168.1.1,如下操作:
routeomit-net0.0.0.0netmask0.0.0.0gw192.168.1.1eth0(加一條路由項(xiàng))
routedel-net169.254.0.0netmask255.255.0.0eth1(刪一條多余的路由項(xiàng))
我想問一下是否這個(gè)可以在某地方作一配置,就你不你每次關(guān)機(jī)后都要手工的把這兩個(gè)命令想執(zhí)行再看看,能把我的路由信息轉(zhuǎn)成追加:
[root]#route-n
KernelIProutingtable
DestinationGenmaskFlagsMetricRefUseIface
192.168.1.00.0.0.0