A strange problem occurred when setting up a route.
Source: Internet
Author: User
A strange problem occurred when setting up a route-Linux Enterprise Application-Linux server application information. For details, refer to the following section. I used three Red Hat Enterprise Linux 5 machines (A, B, C) to build A routing experiment.
There are two NICs on machine A used as the Routing Server. I run the following command)
# Ifconfig eth0 192.168.8.254 netmask 255.255.255.0
# Ifconfig eth1 192.168.9.254 netmask 255.255.255.0
# Route add-net 192.168.8.0 netmask 255.255.255.0 eth0
# Route add-net 192.168.9.0 netmask 255.255.255.0 eth1
# Echo 1/proc/sys/net/ipv4/ip_forward
The remaining two machines B and C each have an Nic. I run the following commands respectively: (I have only configured these network configurations for these two machines, and both are successful)
A:
# Ifconfig eth0 192.168.8.191 netmask 255.255.255.0
# Route add default gw 192.168.8.254 eth0
B:
# Ifconfig eth0 192.168.9.191 netmask 255.255.255.0
# Route add default gw 192.168.9.254 eth0
The current situation is as follows: (the iptables of A is the same as that of none)
A can ping B and C, and B and C can also ping two IP addresses of.
But B cannot ping C, and C cannot ping B.
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