Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TCP/IP DUN & LAN sharing gateways

Status
Not open for further replies.

SROLefty

Technical User
Feb 3, 2003
1
US
HI,
I have a laptop running W2K Pro. It is connected to a LAN via an internal Ethernet adapter and a static IP. I also have a Cardbus CDPD modem with a static IP. I only have 2 applications that use the modem (a mobile dispatch and a telnet client) and I have the normal office applications using the LAN (IE,Outlook, IM etc.).

I am trying to work around the DUN taking over the default gateway so I can use both the modem and the LAN at the same time.

I have been working with ROUTE commands, but I have not been able to find the right syntax.

I have copied a doctored up route table to this message, I hope its not too confusing. a = the LAN IPs and b = the modem IPs. I have removed the second octet from all the IPs so the table would fit this message.

I appreciate any suggestions on how to work around this problem.

C:\>route print
======================================================
Interface List
0x1 .........................MS TCP Loopback interface
0x1000003.aa aa aa aa aa aa .Intel 8255x-based Integrated Fast Ethernet

======================================================
======================================================
Active Routes:
Network Des Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 aaa.aa9.254 aaa.aa9.71 1
127.0.0.0 255.0.0.0 127.0.1 127.0.0.1 1
aaa.aa9.0 5.255.0 aaa.aa9.71 aaa.aa9.71 1
aaa.aa9.71 255.255.255 127.0.1 127.0.1 1
aaa.aa9.255 255.255.255 aaa.aa9.71 aaa.aa9.71 1
224.0.0 224.0.0 aaa.aa9.71 aaa.aa9.71 1
255.255.255 255.255.255 aaa.aa9.71 aaa.aa9.71 1
Default Gateway: aaa.aa9.254
======================================================
Persistent Routes:
None

C:\>route print
======================================================
Interface List
0x1 .........................MS TCP Loopback interface
0x1000003.aa aa aa aa aa aa .Intel 8255x-based Integrated Fast Ethernet

0x4000004.bb bb bb bb bb bb .WAN (PPP/SLIP) Interface
=======================================================
=======================================================
Active Routes:
Network Des Netmask Gateway Interface Metric
0.0.0 0.0.0 bbb.bbb.229 bbb.bbb.229 1
0.0.0 0.0.0 aaa.aaa.125 aaa.aa9.71 2
127.0.0 255.0.0 127.0.1 127.0.1 1
bbb.0.1 255.255.255 bbb.bbb.229 bbb.bbb.229 1
bbb.bbb.229 255.255.255 127.0.1 127.0.1 1
bbb.bbb.255 255.255.255 bbb.bbb.229 bbb.bbb.229 1
aaa.aa9.0 255.255.0 aaa.aa9.71 aaa.aa9.71 1
aaa.aa9.71 255.255.255 127.0.1 127.0.1 1
aaa.aa9.255 255.255.255 aaa.aa9.71 aaa.aa9.71 1
224.0.0 224.0.0 bbb.bbb.229 bbb.bbb.229 1
224.0.0 224.0.0 aaa.aa9.71 aaa.aa9.71 1
255.255.255 255.255.255 aaa.aa9.71 aaa.aa9.71 1
Default Gateway: bbb.bbb.229
=======================================================
Persistent Routes:
None

C:\>

a is the Ethernet adapter
b is the PCMCIA CDPD modem

Both have static IP addresses

a's IP = aaa.aa9.71
gateway = aaa.aa9.254
DNS = aaa.aa6.125
mask = 255.255.0

b's IP = bbb.bb6.225
gateway = bbb.bbb.229
DNS = bbb.bb8.100

 

I assume that all the IP-traffic for hosts with IP-address equal to bbb.bbb.bbb.* have to go through interface bbb.bbb.bbb.229 and all the traffic to other hosts through interface aaa.aaa.aaa.71

Then the first line in the routing table:
0.0.0.0 0.0.0.0 bbb.bbb.bbb.229 bbb.bbb.bbb.229 1
is wrong.
(this is why the default gateway is bbb.bbb.bbb.229)

Try removing the default gateway in the TCP-IP properties of the modem interface.
(Control Panel->Network connections->Properties)
OR
Try with the route command to define a new default interface.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top