Solved

enabling Hosts file on OS/2 Warp 4

Posted on 1998-09-17
2
572 Views
Last Modified: 2013-12-23
How do you enable hosts file on OS/2 Warp 4.  What directory you put it in.  is c:\tcpip\etc?  How can you save the file in ASCII.  I know that it prompt you to save the file either in text, OS/2 command prompt, or DOS command prompt.  Any suggestions??? help...
0
Comment
Question by:JNGIN
2 Comments
 

Accepted Solution

by:
jpmcdon earned 20 total points
ID: 1558386
The hosts file is always "enabled" in OS/2, unlike in Windows where you need to rename the "hosts.sam" file to "hosts" in order to "enable" it.

However, the hosts file is empty by default.

The way to add a host to your hosts list:
1) Open an OS/2 command prompt
2) Type TCPCFG and press Enter
3) In a few seconds the TCP/IP Configuration window will open
4) Click on the HOSTNAMES tab on the right of the window
5) Go to "page 2" of the HOSTNAMES tab by clicking the right-arrow in the lower right corner of the window
6) The list of hostnames that are defined on your system will be displayed in a box, with a series of buttons below it.  By default, the box only contains <NO ENTRIES>
7) Click the ADD button
8) Fill in the IP Address field with the IP number (i.e. 9.91.4.10), the Hostname field with the full host hame (i.e. www.ibm.com).  You can optionally add a short "alias" for the hostname (like "IBM"), as well as a comment that will be displayed in the listing.  These two parameters are not required, however.
9) Click the ADD button.  You should see your new hostname in the list.
10) Exit TCP/IP configuration by double-clicking the icon in the upper-left corner of the window (close the program).  You will be asked if you want to SAVE or DISCARD your changes - click SAVE.11) The program may tell you it needs to make changes to the CONFIG.SYS file - click YES if asked
12) The program may also ask you if you want to configure SENDMAIL.  Click NO when asked.

You will likely not need to reboot the system for this change - test it by using your still-open command window to "ping" your new hostname.
0
 

Author Comment

by:JNGIN
ID: 1558387
Good answer.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question