I must say that I am not very familiar with the virtual box environment. I have spent some time looking around for a solution. I must ask, what are you trying to do besides the ping -I? Can you connect to the outside world using the windows 192.168.2.2 computer? I do not know if the windows computer needs or has the 192.168.1.5 gateway in it's setup. It does not seem to be in your attached table of Active Routes.
In my searching, I found a few links that you might want to view:
The above site talks about wired networks and briefly mentions gateways and binding interfaces and ports together.
The above site talks about virtual Ethernet devices and containers.
I must say that if your windows computer can get to the outside world, I would leave everything alone, and just ponder about why ping -I works the way it does.
I hope someone else can help out, I apologize that I could not solve your problem.
Originally Posted by adept
After modification (and reboot) my /etc/sysconfig/network-scripts/ifcfg-eth1 has gateway line: GATEWAY=192.168.1.5
This not solve my problem. eth1 gateway set to 192.168.1.53 (eth0 interface IP address) does not make difference. But may be ping -I ethx sends packets only outside ethx segment (ping feature)? Now I can ping 192.168.1.53 (eth0) from 192.168.2.2 Windows machine connected to the eth1 subnet. But still can not ping 192.168.1.5 from 192.168.2.2. I can ping 192.168.1.5 from eth0 (Linux machine).
Some configuration info from the Windows machine:
0x1 ........................... MS TCP Loopback interface
0x2 ...xx xx xx xx xx xx ...... xxxxxxxxxxxxxxxx (real value is hidden for e-mail)
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.2.3 192.168.2.2 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.2.0 255.255.255.0 192.168.2.2 192.168.2.2 20
192.168.2.2 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.2.255 255.255.255.255 192.168.2.2 192.168.2.2 20
188.8.131.52 240.0.0.0 192.168.2.2 192.168.2.2 20
255.255.255.255 255.255.255.255 192.168.2.2 192.168.2.2 1
Default Gateway: 192.168.2.3
and from the Linux machine:
[....]# ip route show
192.168.2.0/24 dev eth1 proto kernel scope link src 192.168.2.3 metric 1
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.53 metric 1
default via 192.168.1.5 dev eth0 proto static