添加路由遇到的问题:SIOCADDRT: File exists
原因:路由已经存在了。
解决方法:
从网上搜到的:
1. Open ifcfg file vi /etc/sysconfig/network-scripts/ifcfg-eth0:7
2. NETWORK=217.174.242.0 Make sure this address is unique to each ifcfg file; if you use the same address in another ifcfg file you will receive the aforementioned error.
3. Edit if required by pressing i
to begin insert mode, make the changes, then pressing Esc
to return to view mode.
3. Save the document by using a SHIFT ZZ
combination.
4. Restart the network: service network restart