Answer the question
In order to leave comments, you need to log in
Where might the routing error be?
So there is Oracle VM VirtualBox . It has 2 virtual machines installed:
Win XP with two network adapters:
vboxnet0 Link encap:Ethernet HWaddr 0a:00:27:00:00:00
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:489 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:69301 (69.3 KB)
route add 192.168.2.0 mask 255.255.255.0 192.168.2.1
route add 192.168.1.0 mask 255.255.255.0 192.168.1.1
route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.0
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default dir-300 0.0.0.0 UG 100 0 0 enp2s0
link-local * 255.255.0.0 U 1000 0 0 enp2s0
172.17.0.0 * 255.255.0.0 U 0 0 0 docker0
172.18.0.0 * 255.255.0.0 U 0 0 0 br-2ca568140112
192.168.0.0 * 255.255.255.0 U 100 0 0 enp2s0
192.168.1.0 * 255.255.255.0 U 0 0 0 vboxnet0
192.168.2.0 192.168.1.1 255.255.255.0 UG 0 0 0 vboxnet0
ip route add default via 192.168.1.1 table rt2
ip route add 192.168.1.0/24 dev vboxnet src 192.168.1.10 table rt2
ip rule add from 192.168.1.10/32 table rt2
ip rule add to 192.178.1.10/32 table rt2
ip rule add to 192.168.2.0/24 table rt2
default via 192.168.1.1 dev vboxnet0
192.168.1.0 dev vboxnet0 scope link src 192.168.1.10
192.168.2.0 via 192.168.1.1 dev vboxnet0
0: from all lookup local
32759: from all to 192.168.2.0/24 lookup rt2
32760: from 192.168.1.10 lookup rt2
32761: from all to 192.168.1.10 lookup rt2
32766: from all lookup main
32767: from all lookup default
Answer the question
In order to leave comments, you need to log in
1. Windows XP does not route anything by default, this must be enabled. Article from Microsoft for windows 2003 https://support.microsoft.com/ru-ru/help/323339/ho... for XP everything is the same.
Locate and click the following key in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Set the following registry values:
Value Name: IPEnableRouter
Value type: REG_DWORD
Value Data: 1
NOTE: A value of 1 turns on (enables) TCP/IP forwarding for all network connections installed and used by this computer.
route add 192.168.2.0 mask 255.255.255.0 192.168.2.1
route add 192.168.1.0 mask 255.255.255.0 192.168.1.1
Wrong you are doing what you are trying to do from the desktop system router)
microsin.net/adminstuff/windows/xp-routing.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question