Divided into system routing, network card routing (redhat8 above), static routing
System routing can be set in/etc/sysconfig/network
Network card routing can be set in/ETC/SYSCONFIG/NEWORK-SCRIPT/IFCFG-ETHX
Static routing in/etc/sysconfig/networking/device/can be set in Ethx.route, static route as the name implies, is fixed, set up the general will not easily change the route
Reproduced:
http://tieba.baidu.com/f?kz=636594999
Static routing configuration files in Linux
Static routing: Many people like to add a/etc/rc.d/rc.local to a large number of routes that are not part of this segment.
Such a statement, in fact, the system also provides the location where it is correctly placed, but this file does not exist by default, you need to see/etc/init.d/network this script to know, it will not only bring the network card, but also to check whether there are/etc/sysconfig/ static-routes files, if any, add the static routes recorded in these files, the format is simple, such as the above two statements replaced by the static-routes requirements of the format is:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.