11. Question: How do I automatically add a gateway when I start?
A: You can use VI to create a file named S10route in the/ETC/RC2.D directory, which reads:
Route add default xxx.xxx.xxx.xxx 2 where xxx.xxx.xxx.xxx is the gateway.
A: Wouldn't it be simpler to find route in Vi/etc/tcp? After the ifconfig.
Add it to the/etc/tcp file.
A: more convenient in/ETC/RC
A: SCO UNIX environment to automatically increase the gateway two ways:
1. Method One: Edit produces a gateways file under the/etc directory.
Register with Root.
#cd/etc
#vi Gateways
Add the following statement to the file:
NET Purpose Network Gateway gateway address metric valuess [passive/active]
Where valuess represents the number of hops that a distance passes through to the destination network. Passive,active indicates that the gateway is passive or active. For example, the UNIX host on the author's local area network will access the parent line 100.88.1.0 LAN segment, which can be used as follows:
NET 100.88.1.0 Gateway 100.88.198.1 Metric 2 Passive
Where 100.88.198.1 is the local area network IP address of the router. Also to access other branches of the LAN can be added to the above method of the statement.
2. Method Two: Edit produces a file in the/ETC/RC2.D directory that begins with a capital s such as S96gateway.
We know that there are several running levels in Unix, such as Run level 0 indicates system downtime, run Level 1 represents System management state, run Level 2 is System general run level, multi-user state, and each run level corresponds to a/ETC/RCN. D directory. such as Run Level 2 corresponds to the/ETC/RC2.D directory, this directory contains some shell files, Unix system boot into multi-user state automatically execute the commands in these files, and these shell file names have the following format: Snnname. S indicates that the system enters this run level to execute the file to start the process specified in the file; nn is a 00-99 number, which is the sequence number of the process being started; name filename, according to which we can edit the resulting text Pieces such as S96gateway to the machine to start automatically join the gateway.
Register with Root.
#cd/etc/rc2.d
#vi S96gateway
In the file, add the following statement:
Route add NET Destination network gateway address hop count
If the preceding example is to access the 100.88.1.0 network segment, the above statement is:
Route add net 100.88.1.0 100.88.198.1 2
Where 100.88.198.0 is the unit router IP address. To access different networks, you can add corresponding statements accordingly. If you have only one router on your local area network, you can specify that it is the default gateway by adding in S96gateway:
Route add default gateway address 1
If the router address is: 100.88.198.1 The above statement is:
Route add default 100.88.198.0 1
12. Question: How do I start x Windows?
A: After installation, how to enter the SCO UNIX graphics interface after the install to configure the mouse and monitor, STARTX can enter the graphics
interface.
Perform scologin enable
The boot automatically into the x-windows of the landing circle, in the/etc/default/#vi boot, on the last line to add time=3 save, restart. The next time you turn it on, you will go directly to the GUI.
13. Question: How do I modify the domain of the host??
Answer: Use VI to modify/etc/hosts directly, do not reboot make the domain effective after the modification!! Can be modified when Netconfig is run.
14. Question: I can ping the other people's machine, but others ping my computer, and I can ping all the computers inside the LAN, but that is, ping the host on the Internet. (Ping IP address also not, hint, not router)
A: You ping the Internet because you don't have a good gateway,
The gateway can be set with the route command.
Your computer can ping other machines, other computers can not ping your computer is very strange, do not know whether you ping the computer's IP address, or machine name?
Check the/etc/hosts of your own machine and add a statement to the/etc/tcp file route add default gateway 1
or create a file in the/etc/rc2.d directory named S10route, which reads:
Route add default xxx.xxx.xxx.xxx 1
Where xxx.xxx.xxx.xxx is the gateway.