Enable routing and IP settings in RedHatLinux

Source: Internet
Author: User
1. [root @ localhost ~] # Echo '1' & gt;/proc/sys/net/ipv4/ip_forward [root @ localhost ~] # More/proc/sys/net/ipv4/ip_forward1 Note: Start linux route settings and view the current value 2. [root @ localhost ~] # Vi/etc/sysctl. conf Note:

1. [root @ localhost ~] # Echo '1'>/proc/sys/net/ipv4/ip_forward
[Root @ localhost ~] # More/proc/sys/net/ipv4/ip_forward
1
Note: Start linux route settings and view the current setting values.
2. [root @ localhost ~] # Vi/etc/sysctl. conf

Note: To save route settings! After starting VI, enter a to enter edit mode and change the following value from 0 to 1.

Net. ipv4.ip _ forward = 1
Note: Run esc to return to the command mode. Input: wq to save and exit.
3. route-n

Note: view the route table
4. ifconfig-

Ifconfig eth0 down
Ifconfig eth0 10.0.2.15 newmask limit 255.0 up
Note: view the IP address and set the IP address value.

Related Article

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.