Discussion:
How to add a default gateway?
(too old to reply)
scott
2005-12-07 20:49:51 UTC
Permalink
In OS/2 Warp, how does one define a default gateway?
Daniel Jones
2005-12-08 01:29:09 UTC
Permalink
Post by scott
In OS/2 Warp, how does one define a default gateway?
There is a way throgh the GUI, in Warp 3 or 4: tcpcfg.exe (but
in the later versions of TCP/IP like 4.1 - 4.3, it's TCPCFG2).

Or, edit the SETUP.CMD file in \mptn\bin = look for these lines:

route add default 192.168.2.1 -hopcount 1
route add -net 192 192.168.2.1 -netmask 255.255.255.0 -hopcount 1

On my system, for example - the router on my local network is
192.168.2.1 (more complex situations, like multiple subnets,
require slightly more complex configuration).
scott
2005-12-08 05:19:08 UTC
Permalink
Post by Daniel Jones
Post by scott
In OS/2 Warp, how does one define a default gateway?
There is a way throgh the GUI, in Warp 3 or 4: tcpcfg.exe (but
in the later versions of TCP/IP like 4.1 - 4.3, it's TCPCFG2).
route add default 192.168.2.1 -hopcount 1
route add -net 192 192.168.2.1 -netmask 255.255.255.0 -hopcount 1
On my system, for example - the router on my local network is
192.168.2.1 (more complex situations, like multiple subnets,
require slightly more complex configuration).
Thank you. Sounds like what I'm looking for. I'll give it a try
tomorrow.

Scott
scott
2006-01-08 18:54:23 UTC
Permalink
Post by Daniel Jones
Post by scott
In OS/2 Warp, how does one define a default gateway?
There is a way throgh the GUI, in Warp 3 or 4: tcpcfg.exe (but
in the later versions of TCP/IP like 4.1 - 4.3, it's TCPCFG2).
route add default 192.168.2.1 -hopcount 1
route add -net 192 192.168.2.1 -netmask 255.255.255.0 -hopcount 1
On my system, for example - the router on my local network is
192.168.2.1 (more complex situations, like multiple subnets,
require slightly more complex configuration).
In the example you have, where you are describing the contents of
the SETUP.CMD file, what do you put in to set that traffic is to go out
through a router and then out to the Internet?
scott
2006-01-08 18:56:18 UTC
Permalink
Post by Daniel Jones
Post by scott
In OS/2 Warp, how does one define a default gateway?
There is a way throgh the GUI, in Warp 3 or 4: tcpcfg.exe (but
in the later versions of TCP/IP like 4.1 - 4.3, it's TCPCFG2).
route add default 192.168.2.1 -hopcount 1
route add -net 192 192.168.2.1 -netmask 255.255.255.0 -hopcount 1
On my system, for example - the router on my local network is
192.168.2.1 (more complex situations, like multiple subnets,
require slightly more complex configuration).
In re-reading your message, I see what you are doing. Forget my
earlier message.

I have tried going through the GUI and it hangs. Seems like an old
problem that IBM never fixed. So, I will edit the SETUP.CMD file.
scott
2006-01-09 00:11:49 UTC
Permalink
Post by scott
In OS/2 Warp, how does one define a default gateway?
Well, here is what I have for a SETUP.CMD:
route -fh
rem arp -fh
ifconfig lo 127.0.0.1
ifconfig lan0 192.168.1.90 netmask 255.255.255.0 mtu 1492
ifconfig lan1 192.168.1.91 netmask 255.255.255.0 mtu 1492
route add default 192.168.1.254 -hopcount 1
route add -net 192.168.1 192.168.1.254 -netmask 255.255.255.0 -hopcount 1
ipgate off

With this I can ping another system on my lan but connect countact
anything outside of the router. The router's address is 192.168.1.254

Any ideas?

Thanks!
Wolf Kirchmeir
2006-01-09 16:12:27 UTC
Permalink
Post by scott
Post by scott
In OS/2 Warp, how does one define a default gateway?
route -fh
rem arp -fh
ifconfig lo 127.0.0.1
ifconfig lan0 192.168.1.90 netmask 255.255.255.0 mtu 1492
ifconfig lan1 192.168.1.91 netmask 255.255.255.0 mtu 1492
route add default 192.168.1.254 -hopcount 1
route add -net 192.168.1 192.168.1.254 -netmask 255.255.255.0 -hopcount 1
ipgate off
With this I can ping another system on my lan but connect countact
anything outside of the router. The router's address is 192.168.1.254
Any ideas?
Thanks!
You may have to reset some of the router's defaults. Eg, my router would
block all incoming until I set it to direct-connect to the internet.
Just a thought.

HTH

Continue reading on narkive:
Loading...