工具/软件:Linux
您好!
我希望在 EVM 板上的两个接口之间发送 IP 数据包。
例如,将 eth0设置为192.168.1.2,将 eth1设置为192.168.2.2。 每个接口都连接到主机。
将 IP 地址192.168.1.3分配给连接到 eth0的主机、将 IP 地址192.168.2.3分配给连接到 eth1的主机。
此时、如何配置连接到 eth0的主机以 ping 连接到 eth1的主机?
BR、
Namki Lee。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:Linux
您好!
我希望在 EVM 板上的两个接口之间发送 IP 数据包。
例如,将 eth0设置为192.168.1.2,将 eth1设置为192.168.2.2。 每个接口都连接到主机。
将 IP 地址192.168.1.3分配给连接到 eth0的主机、将 IP 地址192.168.2.3分配给连接到 eth1的主机。
此时、如何配置连接到 eth0的主机以 ping 连接到 eth1的主机?
BR、
Namki Lee。
感谢您的重播。
当前状态如下。
1.更改网络掩码:255.255.255.0 -> 255.255.0.0
2.设置 IPv4转发:/etc/sysctl.conf - net.ipv4_Forward = 1.
3. ping 192.168.1.3 -> 192.168.1.2 =正常。
3. ping 192.168.1.3 -> 192.168.2.2 =正常。
4. ping 192.168.1.3 -> 192.168.2.3 =失败。
5. ping 192.168.2.3 -> 192.168.2.2 =正常。
6. ping 192.168.2.3 -> 192.168.1.2 =失败。
BR、
Namki Lee。