Requires Free Membership to View
The line in bold indicates the default gateway for the machine. In this case, the gateway is an internal router in the private 192.168.0.0 network. Here is a listing after making a dial-up connection:
C:>route print=========================================================================== Interface List 0x1 ........................... MS TCP Loopback interface 0x1000003 ...aa bb cc dd ee ff ...... FE575 Ethernet Adapter 0x28000004 ...00 22 22 00 00 00 ...... WAN (PPP/SLIP) Interface =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 203.21.1.12 203.21.1.12 1 0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.90 2 203.21.1.20 255.255.255.255 127.0.0.1 127.0.0.1 1 203.21.1.12 255.255.255.255 203.21.1.20 203.21.1.20 1 203.21.1.255 255.255.255.255 203.21.1.20 203.21.1.20 1 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 192.168.0.0 255.255.255.0 192.168.0.90 192.168.0.90 1 192.168.0.90 255.255.255.255 127.0.0.1 127.0.0.1 1 192.168.0.255 255.255.255.255 192.168.0.90 192.168.0.90 1 224.0.0.0 224.0.0.0 10.1.1.12 10.1.1.12 1 224.0.0.0 224.0.0.0 192.168.0.90 192.168.0.90 1 255.255.255.255 255.255.255.255 192.168.0.90 192.168.0.90 1 Default Gateway: 10.1.1.12 ===========================================================================Persistent Routes: None
Notice that the bold listing indicates that the default gateway is now the IP address assigned to the WAN interface for the dial-up connection, 203.21.1.20. The other new address, 203.21.1.12, is the network interface at the other end of the dial-up connection.
If you want to alter this behavior, you can change the TCP/IP properties for the interface. Open the Properties window then click Advanced. Uncheck the Use Default Gateway on Remote Network option. If you select this option, traffic will not be routed to the remote location, so you may need to use the ROUTE ADD command to add the route to the local routing list.
This was first published in June 2001
Enterprise Server Strategies for the CIO
Join the conversationComment
Share
Comments
Results
Contribute to the conversation