那是不是就如下图所示:
[主机]----------(eth0)[Red Hat](tap0 or vnet0)---------(eth0)[uClinux]
正在做如下测试:
1.设置主机地址为1.0.0.2
2.设置red hat eth0的地址 1.0.0.1 , tap0(vnet0)为 2.0.0.1
3.设置uclinux eth0的地址为 2.0.0.2
4.在主机加一条路由: destination: 2.0.0.0 ,nexthop:1.0.0.1
5.在uclinux加一条路由: destination:1.0.0.0 ,nexthop:2.0.0.1
即:
[1.0.0.2]--------eth0(1.0.0.1)[red hat]tap0(2.0.0.1)--------eth0(2.0.0.2)[uclinux]
测试1.0.0.2(外部主机)能不能和2.0.0.2(uclinux)互通。
随后将附上结果。