添加IP地址
# ifconfig eth0 10.10.10.2 netmask 255.255.255.0 up
或
# ip address add 10.10.10.2/24 dev eth0
添加路由
ip route add 172.16.5.0/24 via 10.0.0.101 dev eth0
参考文章
1 Linux add a second IP addressLinux add a second IP address
2 Add a Static Route on CentOS
网友评论