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
Incomming TCP/IP properties to specify the IP address range to assign the
device.
Everything connects great.
I need to be able to route packets from the XP box to different IP addresses
on the network 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?
I beleive this is assigned by RAS and I could find no means to change it
using netsh.
I decided to provide additional information about my goals and what I have
attempted. Here is the additional information.
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 and is required
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
Incomming 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 network 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
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
===========================================================================
First use a command that we know the syntax is correct:
===========================================================================