Add static route

  • Thread starter Thread starter Danieltbt05
  • Start date Start date
D

Danieltbt05

I'm trying to add a static route to my routing table that will
automatically establish a route to my isp router so i don't have to
manually dial up everytime i start windows but it won't works. Error
bad gateway address. Pls advise. Thanks

route add 219.93.218.177 255.255.255.255 218.208.226.28
218.208.226.28

Regards
Daniel
 
First, your syntax is incorrect. It should be something like;

route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
destination^ ^mask ^gateway metric^

Does your server know how to get to 218.208.226.28 or is it out the DG?
 
Hi, is it must be same subnet ? That IP is my isp ip, i think my
computer doesnt know abt it.

Regards
Daniel
 
Hi, below is my ipconfig and routing table. Thanks

Windows IP Configuration
Host Name . . . . . . . . . . . . : Backup
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : Yes
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : mp420.afraid.org

PPP adapter RAS Server (Dial In) Interface:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.1.2
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . :



Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : mp420.afraid.org
Description . . . . . . . . . . . : Broadcom 440x 10/100 Integrated
Controller
Physical Address. . . . . . . . . : 00-08-02-DF-63-FF
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.0.9
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DNS Servers . . . . . . . . . . . : 192.168.0.2
192.168.0.9
Primary WINS Server . . . . . . . : 192.168.0.2

PPP adapter Internet:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 218.111.21.9
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 219.93.218.177
DNS Servers . . . . . . . . . . . : 202.188.0.133
202.188.1.5
NetBIOS over Tcpip. . . . . . . . : Disabled


IPv4 Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x10002 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
0x10003 ...00 08 02 df 63 ff ...... Broadcom 440x 10/100 Integrated
Controller
0x10004 ...00 0c f1 13 b3 d7 ...... Intel(R) PRO/Wireless LAN 2100 3B
Mini PCI Adapter
0x20005 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 219.93.218.177 218.111.21.9
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.9 192.168.0.9
20
192.168.0.9 255.255.255.255 127.0.0.1 127.0.0.1
20
192.168.0.255 255.255.255.255 192.168.0.9 192.168.0.9
20
192.168.1.2 255.255.255.255 127.0.0.1 127.0.0.1
50
218.111.21.9 255.255.255.255 127.0.0.1 127.0.0.1
50
218.111.21.255 255.255.255.255 218.111.21.9 218.111.21.9
50
219.93.218.177 255.255.255.255 218.111.21.9 218.111.21.9
1
224.0.0.0 240.0.0.0 192.168.0.9 192.168.0.9
20
224.0.0.0 240.0.0.0 218.111.21.9 218.111.21.9
1
255.255.255.255 255.255.255.255 192.168.0.9 192.168.0.9
1
255.255.255.255 255.255.255.255 192.168.0.9 10004
1
Default Gateway: 219.93.218.177
===========================================================================
Persistent Routes:
None
 
You don't need a static route, you already have a default route pointing
there.
( 0.0.0.0 0.0.0.0 219.93.218.177 218.111.21.9 1)

If you want to establish connectivity to your ISP at boot up, you could have
your autoexec ping the ISP or something. I would assume there are idle
timeouts that would drop the line after a specified amount of idle time, so
that may not work. Having the route in the table will not keep the line up.
 
Back
Top