Route through PPP direct connection
- From: Al <andnomail@xxxxxxxxxxx>
- Date: Wed, 28 Nov 2007 11:53:11 -0800 (PST)
My goal is to route from a Windows XP box through an embedded
controller connected to the Windows XP box via a direct serial link
that is required to assign the IP address to the embedded controller.
I have a direct serial interface between an XP box and an embedded
controller that communicates via PPP. The XP box MUST supply an IP
address to the embedded device. So I created a new connection under
"Network Tasks" within the Network Connections Dialog and set up all
the parameters including the
Incoming TCP/IP properties to specify the IP address range to assign
the device.
Everything connects great.
I can send packets to the 192.168.1.82 device (embedded controller)
through the XP box.
I need to be able to route packets from the XP box to different IP
addresses on the embedded controller so I wanted to add a route to the
route table to allow routing of packets to the embedded controller and
use the embedded controller as a gateway.
When I attempted to add a route to the route table the route was
refused because the netmask on the IP address assigned to the XP box
side of the ppp connection was 255.255.255.255.
Is there a way to change the netmask assigned to the XP box PPP
interface?
Is there a way to set the Gateway on the PPP interface?
Is there any other way to allow packets destined for 192.168.2.0 to be
routed out the PPP interface?
I believe this is assigned by RAS and I could find no means to change
it using netsh.
Here are some details of what I see on the XP box:
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x1000002 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
0x1000003 ...00 d0 59 3d 6e db ...... Intel 8255x-based Integrated
Fast Ethernet
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface
Metric
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1
1
192.168.1.81 255.255.255.255 127.0.0.1 127.0.0.1
1
192.168.1.82 255.255.255.255 192.168.1.81 192.168.1.81
1
255.255.255.255 255.255.255.255 192.168.1.81 1000003
1
===========================================================================
Persistent Routes:
None
C:\Scripts>ipconfig
Windows 2000 IP Configuration
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Cable Disconnected
PPP adapter RAS Server (Dial In) Interface:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.81
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . :
C:\Scripts>ROUTE ADD 192.168.2.0 MASK 255.255.255.0 192.168.1.82
The route addition failed: Either the interface index is wrong or the
gateway do
es not lie on the same network as the interface. Check the IP Address
Table for
the machine.
===========================================================================
Attempt to change the subnet mask using netsh:
First find the interface name:
===========================================================================
C:\Scripts>netsh
netsh>interface
interface>ip
interface ip>
interface ip>show interface
MIB-II Interface Information
Index: 16777218
User-friendly Name: Internal
GUID Name: Internal
Type: PPP
MTU: 0
Speed: 0
Physical Address:
===========================================================================
First use a command that we know the syntax is correct:
===========================================================================
interface ip>set address name="Internal" source=dhcp
Error obtaining configuration for interface Internal.
.
- Prev by Date: Re: TCP retransmission
- Next by Date: Re: How to get CORRECT source IP address in TDI filter driver?
- Previous by thread: About zero-byte receive (IOCP server)
- Next by thread: Where to find Old MAC address from previous NIC card
- Index(es):
Relevant Pages
|