Skip to content

Instantly share code, notes, and snippets.

@mfilipe
Created October 14, 2013 12:17
Show Gist options
  • Save mfilipe/6974728 to your computer and use it in GitHub Desktop.
Save mfilipe/6974728 to your computer and use it in GitHub Desktop.
Connect to a Windows XP VM router PS.: IPEnableRouter activated in the Windows XP Registers
developer@ubuntu:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:54:3d:be
inet addr:192.168.21.128 Bcast:192.168.21.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe54:3dbe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:169 errors:0 dropped:0 overruns:0 frame:0
TX packets:367 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22809 (22.8 KB) TX bytes:53298 (53.2 KB)
Interrupt:19 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:172 errors:0 dropped:0 overruns:0 frame:0
TX packets:172 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11602 (11.6 KB) TX bytes:11602 (11.6 KB)
---------------------------------------------------------------------------------
developer@ubuntu:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.21.130 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
192.168.21.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
----------------------------------------------------------------------------------
developer@ubuntu:~$ ping 192.168.21.130
PING 192.168.21.130 (192.168.21.130) 56(84) bytes of data.
64 bytes from 192.168.21.130: icmp_req=1 ttl=128 time=0.202 ms
64 bytes from 192.168.21.130: icmp_req=2 ttl=128 time=0.425 ms
64 bytes from 192.168.21.130: icmp_req=3 ttl=128 time=0.566 ms
^C
--- 192.168.21.130 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.202/0.397/0.566/0.151 ms
----------------------------------------------------------------------
developer@ubuntu:~$ ping 192.168.107.133
PING 192.168.107.133 (192.168.107.133) 56(84) bytes of data.
64 bytes from 192.168.107.133: icmp_req=1 ttl=128 time=0.222 ms
64 bytes from 192.168.107.133: icmp_req=2 ttl=128 time=0.597 ms
64 bytes from 192.168.107.133: icmp_req=3 ttl=128 time=0.360 ms
^C
--- 192.168.107.133 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.222/0.393/0.597/0.154 ms
------------------------------------------------------------------------
developer@ubuntu:~$ ping 192.168.107.2
PING 192.168.107.2 (192.168.107.2) 56(84) bytes of data.
^C
--- 192.168.107.2 ping statistics ---
8 packets transmitted, 0 received, 100% packet loss, time 7018ms
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\admin>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection 5:
Connection-specific DNS Suffix . : localdomain
IP Address. . . . . . . . . . . . : 192.168.21.130
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter Local Area Connection 6:
Connection-specific DNS Suffix . : localdomain
IP Address. . . . . . . . . . . . : 192.168.107.133
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.107.2
Ethernet adapter Network Connect Adapter:
Media State . . . . . . . . . . . : Media disconnected
Ethernet adapter Bluetooth Network Connection:
Media State . . . . . . . . . . . : Media disconnected
-----------------------------------------------------------------------
C:\Documents and Settings\admin>ping 192.168.21.128
Pinging 192.168.21.128 with 32 bytes of data:
Reply from 192.168.21.128: bytes=32 time<1ms TTL=64
Reply from 192.168.21.128: bytes=32 time=1ms TTL=64
Reply from 192.168.21.128: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.21.128:
Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
--------------------------------------------------------------------------
C:\Documents and Settings\admin>ping 192.168.107.2
Pinging 192.168.107.2 with 32 bytes of data:
Reply from 192.168.107.2: bytes=32 time<1ms TTL=128
Reply from 192.168.107.2: bytes=32 time<1ms TTL=128
Reply from 192.168.107.2: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.107.2:
Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment