By fenng
Operating System: SCO openserver 5.0.5
Router name: Router
Username and password: User/user
Router address: 10.154.0.1
Loopback address: 10.154.15.1
Address pool address: 10.154.14.1-10.154.14.62
Network mask: 255.255.255.192
-----------------------------------------
Modem manager management tools
First, you should be familiar with modem management tools:
Modem manager is used to set modem.
Double-click the system administration icon on the desktop, select networks, and select modem manager.
Enter scoadmin in the command line to start scoadmin and select "Networks", and then select "modem manager ".
Enter scoadmin modem manager in the command line
-----------------------------------------
Install a modem
1. Automatic modem Detection
If you select Automatic Detection in modem manager, make sure the following:
1. Make sure that the modem is connected and enabled (powered on)
2. Select "add" from the modem menu and continue to select "Automatic Detection.
3. Select the serial port connected by the modem, or select any for the system to check all serial ports.
4. Select OK to start searching for the modem. When the serial port connected to the modem is detected, the modem
The indicator will flash for several seconds. Modem during this process
Manager detects the corresponding serial port and generates the detected modem list.
5. When the detection is complete, select the modem to be added and click OK to add the modem.
If no modem is detected, make sure that the modem is properly connected and the switch is on. Some are too old
"Or too new modem cannot be correctly detected. In this case, you should consider manually adding the modem.
------------------------------------------
Manually add Modem
In modem manager, manually add the modem:
1. Select Add from the modem menu and choose manual configuration. The Modem appears.
Configuration (modem settings) window
2. Enter the following information:
-----------------------------------
Modem vendor (modem provider)
Select the manufacturer of your modem. If not listed, select the standard modem type.
MODEM model (modem type)
Enter the modem type. If the standard modem type is selected, select the standard modem type.
Line speed (BPS)
Input the serial line speed. The default value is 38,400 BPS. We recommend that you do not select a high speed to avoid unnecessary troubles.
If not, use 9600bps, which is the default serial speed and is more secure.
Modem Port
Select the port (tty1a or tty2a) connected to the modem)
Answer mode (response mode)
Select off if the dial is selected. If the dial is accepted, select on
----------------------------------
3. Click OK to accept the above Configuration
Disable non-modem-controlled ports and activate modem-controlled ports
For example: # disable ttynn (non-Modem Port) Here "ttynn" can be tty1a.
# Enable ttynn (Modem Port) Here "ttynn" can be tty1a.
In addition, make sure that ttynn belongs to uucp:
# Chown-r uucp: uucp/dev/ttynn
Replace NN with the corresponding port number (1A or 2a)
TIPS:
Test whether dial-out is allowed
1. # Cu-l tty1a dir
2. Activate the modem speaker so that you can hear the dial tone:
Atm2
(Turn off atm0 .)
3. Enter the following command:
Atdt phone number. For example, atdt163
4. confirm that the modem can be set out and enter ~. (Add a small dot to a wavy line) Exit Cu
Set uucp connection
You can manually edit/usr/lib/uucp/systems and
/Usr/lib/uucp/devices file. It is best to use uucp Manager/uuinstall software to complete
In the/usr/lib/uucp directory
The systems file contains the list of systems that uucp "knows. And specify the device used to connect to each system
And methods. The devices file specifies the available device, the speed of use, and the port that the device can connect.
Log on to and run scoadmin --> Networks --> uucp manager as the root user, or use
The uuinstall (ADM) command menu is as follows:
# Uuinstall
Uucp Administration Utility
======================================
1. display or update site name
2. display or update list of remote sites (systems)
3. display or update direct-or dial-out lines (devices)
4. display or update direct-or dial-in lines (/etc/inittab)
5. check consistency of uucp files
6. test connection with remote site
7. convert old uucp files to new format
Choose an option (1-7), or Q to quit: 1
Display or update site or machine name (/etc/systemid)
========================================================== ====================
1. Display local site name and machine names
2. update local site name and machine names
Choose an option (1-2), or Q to quit: Q
Uucp Administration Utility
======================================
1. display or update site name
2. display or update list of remote sites (systems)
3. display or update direct-or dial-out lines (devices)
4. display or update direct-or dial-in lines (/etc/inittab)
5. check consistency of uucp files
6. test connection with remote site
7. convert old uucp files to new format
Choose an option (1-7), or Q to quit: 2
At a prompt, enter the text followed by <return>. Use "? "<Return>
To get help, "Q" <return> to quit back to the menu, "-" <return>
An unwanted entry, or just <return> to keep the default text shown.
Display or update list of remote sites (systems)
========================================================== ==========
1. display the systems File
2. Add a new site entry
3. Delete A Site entry
4. Change a site entry
Choose an option (1-4), or Q to quit: 2
Site names listed in the systems file:
Sosco scolon
Which entry do you want to copy (or <return> to see all )? Sosco
----------------
Site name: sosco
SCHEDULE: Any
Device Type: ACU
Speed Range: 2400-9600
Phone number: scz1_3502
Keep CT login:-/R/D-ogin:-/k/D-ogin:
Send login: uusls
---------------- This is the original configuration
Site name? Sosco Test
Schedule? Any
Device type? ACU
Speed range? 2400-9600 9600
Phone number? Scz4503502 62177722
Login CT login? -/R/D-ogin:-/k/D-ogin :-
---------------- Modified
In fact, the system edits the/usr/lib/uucp/systems file.
Note that only one small "-" is entered in the last line. The user name and password are not entered here.
Note: The system already has two templates. You will be prompted when you choose to add them. ** Do not modify the original template **,
Copy is recommended, and do not use the backspace to erase the original information. Simply enter your information in the back.
After the screen display:
New entry is accepted:
Site name: yzpp
SCHEDULE: Any
Device Type: ACU
Speed Range: 9600
Phone number: 6052733
Keep CT login :-
Display or update list of remote sites (systems)
========================================================== ==========
1. display the systems File
2. Add a new site entry
3. Delete A Site entry
4. Change a site entry
Choose an option (1-4), or Q to quit: Q
After the modification, you will be prompted whether to write the file. Select y.
Changes have been made. These shoshould now be written to the file,
Or otherwise they will be discarded. Write out to file (y/n )? Y
Systems file successfully updated.
Use main menu option 5 to check files.
Enter Q to go back to the main menu and select 5 consistency test files. After passing the test, select 6 to test the uucp connection.
Choose an option (1-7), or Q to quit: 5
Check consistency of uucp files
====================================
This option checks the consistency of the files
Systems, devices, dialcodes and/etc/inittab,
Does not modify them nor attempt any connection.
Use main menu option 6 to test connections.
Errors are shown on screen, and also saved in
The file/usr/lib/uucp/checklog.
Proceed to checking (y/n )? Y
Reading the systems file...
Reading the devices file...
Reading the dialcodes file...
Reading the Dialers file...
Reading/etc/inittab file...
Checking the systems file...
Checking the devices file...
Checking the dialcodes file...
Checking/etc/inittab file...
Press <return> to continue
Choose an option (1-7), or Q to quit: 6
Test connection with remote site
======================================
This option attempts to make a connection to
Remote Site with uucico, which uses the systems
And devices files.
Its full debug output is shown on screen, and
Also saved in the file/usr/lib/uucp/testlog.
Site names listed in the systems file:
Sosco scolon Test
Which site do you want to try (or Q to quit )? Test
Finally, a bunch of garbled characters will appear. Indicates that the communication is normal.
Because the user name and password are not entered, garbled characters will continue, switch to another screen, find the process, and kill it.
You can also use this command for testing:
/Usr/lib/uucp/uutry-r-x9 sitename
Uucp configuration is complete.
Next, configure the PPP driver.
Scoadmin --> Networks --> Network Configuration Manager or enter netconfig in the command line.
Select hardware --> Add new WAN connection --> SCO TCP/IP driver --> SCO TCP/IP --> Add
Select PPP
Configurable: dynamic outgoing
Dynamic incoming
Dedicated
Manual outgoing
The configuration information corresponds to the content of the/usr/bin/pppconf file.
Select the first dynamic dial-out.
In our example:
Router name: Router
Username/password: User/user
Router address: 10.154.0.1
Loopback address: 10.154.15.1
Address pool address: 10.154.14.1-10.154.14.62
Network mask: 255.255.255.192
So the configuration is as follows:
---------------------------------------------------------
Local host name: PPP [advanced]
Host IP Address: 10.154.14.1 options...
Destination name: Router
Destination IP Address: 10.154.15.1
Netmask: 255.255.255.192
Uucp destination name: Test
Number of uucp retries:
Gateway: <> Yes <*> NO
Note: You can enter the local host name as needed.
Set Host IP address to one of the addresses in the router address pool.
Set destination name to the name of the vro.
Destination IP Address: Router loopback address
Uucp destination name uucp the name of the target to be added.
Netmask should also be filled in correctly
----------------------------------------------------------------
Set the user name and password in advanced options
Debug level: <> 0 <> 1 <*> 2
Tag for/etc/pppfilter:
Inactivity timeout (minutes ):
Async. Control Character Map (Hex .):
Line Flow Control: <*> none <> xonxoff <> rtscts
Protocol field compression: <*> Yes <> NO
Address-control field compression: <*> Yes <> NO
IP address negotiation: <*> Yes <> NO
Old IP address negotiation: <> Yes <*> NO
Van jakbson TCP Header Compression: <*> Yes <> NO
Old PPP compatibility: <> Yes <*> NO
Authentication Protocol: <> none <> Pap <*> chap
Authentication timeout (minutes ):
Local host ID: User
Local host password: User
After filling in the information, the system will prompt you to reconnect to the core.
Restart the instance.
Modify/etc/pppauth. The last line should be like this:
* User user # enter a row below
Router user
That is, the vro name and user name. This modification is critical! * Indicates the local user name and password.
No information * indicates the remote router.
After restart,
# Netstat-Nr check the route
#/Etc/route add default 10.154.0.1
# Ping 10.154.0.1
The system will automatically dial up :)
Modify/etc/TCP and find a line with/etc/route add.
Write/etc/route add default 10.154.0.1 below
Save disk and exit
#/Etc/tcp stop
#/Etc/tcp start
You can use this command to stop the modem:
# Ifconfig ppp0 down
To enable modem again, run the following command:
# Ifconfig ppp0 up
System commands involved:
-----------------------------------------------------------------
Command function description
-----------------------------------------------------------------
Uucheck checks the files and directories required by UCP. This command also checks for obvious file errors.
Uulog displays the log Content in the log directory of a specific host.
Uuname: list the machines you want to connect
Uustat displays the status of the current UCP Request queue or the queue connected to other systems.
Uutry calls uucico for debugging and saves the information to/tmp/machine.
And display the last 10 rows on the terminal. -The-x option changes the debugging level (level 5 by default ).