Centos soft route configuration failed

Source: Internet
Author: User
Centos soft route configuration failed-Linux Enterprise Application-Linux server application information. See the following for details. The computer has two NICs, eth0 and eth1. Configure the soft route.
My configuration is as follows:

Eth0: connecting to the Internet
IP: 10.214.45.88
Subnet: 255.255.255.0
Gateway: 10.214.45.1

Eth1: Intranet
IP: 192.168.2.1
Subnet: 255.255.255.0

The route table is as follows:

Destination Gateway Genmask Flags Metric Ref Use Iface
10.214.45.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 10.214.45.1 0.0.0.0 UG 0 0 0 eth0

Added the route forwarding function: Modify the/etc/sysctl. conf file net. ipv4.ip _ forward = 1.



After confirmation

The eth1 Nic is connected to the hub, and a pc is connected to the hub. The IP address is PC1 and 192.168.2.10.

One PC2 and Centos are in the same network segment, which is PC2 and IP Address: 10.214.45.100


Problem:
PC1 and PC2 ping are different


What is wrong with my configuration? Give me some advice. Thank you.

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.