centos5.5 adding static routes

Source: Internet
Author: User


[[Email protected] ~] #route-N//View routing table (IP route can also be viewed)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/6D/wKioL1UJIz2BNJSIAADxCxrUVGk757.jpg "title=" 01.jpg "alt=" Wkiol1ujiz2bnjsiaadxcxruvgk757.jpg "/>

[[Email protected] ~] #route Add default GW 10.77.50.1

[[Email protected] ~] #route add-net 10.77.78.0 netmask 255.255.255.0 GW 10.77.50.1

Add additional network segments


Check the status of the firewall

[Email protected] ~]#/etc/init.d/iptables status

Shut down/Turn on the firewall (immediate effect) each of the 2 methods

[[Email protected] ~] #service iptables Stop

[[email protected] ~]#/etc/init.d/iptables stop

[[Email protected] ~] #service iptables start

[[email protected] ~]#/etc/init.d/iptables start

Shut down/Turn on firewall (permanently off) after reboot takes effect

[[Email protected] ~] #chkconfig iptables off

[[Email protected] ~] #chkconfig iptables on

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/73/wKiom1UJJb_Dajx7AAFU6yK1BN0323.jpg "title=" 02.jpg "alt=" Wkiom1ujjb_dajx7aafu6yk1bn0323.jpg "/>





This article is from the "bit record to share with you" blog, please be sure to keep this source http://xkai20.blog.51cto.com/854040/1621840

centos5.5 adding static routes

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.