服务器配置网络路由,ip,等
启动NetworkManager
systemctl enable NetworkManager
systemctl start NetworkManager
配置刀片ip及网关
nmcli connection modify eth0 ipv4.method static ipv4.addresses 10.180.103.1/24
nmcli connection modify eth1 ipv4.method static ipv4.addresses 10.180.104.1/24 ipv4.gateway 10.180.104.254
启动
service network restart
更改路由
vi /etc/rc.local
用vim更改
改完 按esc退出,再按shift和“:” 输入“wq”保存退出
启动
sh /etc/rc.local
查看ip
ip a
查看路由
route