set route on linux
linux route
add static route
- add default static route
1 | # Permanent |
- add specific net static route
1 | echo "any net 110.188.40.0/24 gw 110.188.40.1" >> /etc/sysconfig/static-routes |
delete route
1 | # delete default route |
replace route
1 | # work well after every network restart |
change route
1 | # change some params of existing route |