Chapter 11 Remote Maintenance
I. Configuration requirement
1) When SUN workstation serves as the Point to Point Protocol (PPP) server, there are two kinds of virtual network interfaces: ipdptpn and ipdn (where n indicates the device number. Serial port A corresponds to 0 and serial port B to 1). For ipdptpn interface, one modem can only connect to one PPP client. For ipdn interface, one modem can connect to multiple PPP clients.
2) For the time being, only the configuration of static IP-based PPP client is supported. If a PC serves as the PPP client, set "PPP" as the server type when setting connection attributes, and select the specified IP address when setting TCP/IP attributes. Other settings remain unchanged.
3) The dial-up script should be compiled in consistency with the type of modem. It is hard to do so during the configuration of workstation dial-up service. Three types of modems are recommended: Robotics, Hayes, and Etek. Here we introduce the configuration of Hayes modem.
4) Unix to Unix Copy Protocol (UUCP) software and PPP software should be pre-installed on the workstation (they are already installed on the current workstations). If necessary, use this command to install the PPP software:
#: pkginfo | grep ppp
II. Configuration procedure
1) Check the connection of modem.
Connect the modem to the serial port, and then use this command to check whether the modem is properly connected (assume that the modem is connected to serial port A):
User Manual
HUAWEI iManager N2000 Fixed Network Integrated Management System
Chapter 11 Remote Maintenance
# tip /dev/cua/a
connected
If “connected” is displayed, it indicates that the modem is connected to serial port A. In this case, if the modem can be configured by using AT commands, it indicates that the modem is connected properly. Otherwise, check whether the serial port cable and the modem are normal. Type “~” to quit the command “tip”.
2) Configure the PPP.
Default settings of configuration script:
z The IP addresses of the PPP server and PPP client are set to “192.168.55.1” and
“192.168.55.2” respectively.
z The PPP server adopts ipdptpn network interfaces.
z The login user name of the PPP client is “ppp_user”.
These parameters can be changed if necessary.
Set the server:
z On the PC, load the file “ppp.tar” to the directory “/usr/local/rms/” as the user “root”.
Note that this file is transmitted in binary system.
z Log in to the workstation as a super user, and then decompress the file “ppp.tar”.
# cd /usr/local/rms
# tar xvf ppp.tar
z Connect the modem to the workstation and telephone line, and then power on the modem. On the workstation, enter the PPP directory, and then configure the PPP server as below:
# cd PPP
# sh setup_ppp.sh (or use “./setup_ppp.sh”).
z Specify the computer as the remote monitor server (options are client and server.
By default it serves as the client): server
z Input the serial port used (a or b. It is “a” by default): b
z Rate of serial communication (19200bps, 9600bps, or 38400bps. It is 19200bps by default (We recommend that you press <Enter> to accept the default value 19200bps).
z Input the type of the used modem (Hayes, Robotics, or Etek. It is Hayes by default):
(case-sensitive).
z The PPP user is “ppp_user” by default.
z Input the password of "ppp-user":
z New password: (input the password of the PPP user.)
Note:
If you have forgotten the password of "ppp_user", log in as a super user and then change the password using the command “passwd ppp_user”. We recommend that you set the default password to “abcd”.
Input these two commands to control the Hayes modem (we recommend that you copy and paste them).
AT&FN0Q2X0&C1&D2S0=1&W&y<CR>: Set parameters of modem
~.<CR>: End the session with modem
Note:
Input the above two commands from the beginning of the line. <CR> stands for Carriage Return.
If a Robotics modem is used, we recommend that the AT command used to communicate with the modem be changed to:
AT&F1&B1&C1&D2X0S0=1&W
If an Etek modem is used, we recommend that the AT commands used to communicate with the modem be changed to:
ATX0&C1&D2S0=1&W connected
AT&FN0Q2X0&C1&D2S0=1&W&y OK
~.
[EOT]
#
Note:
z Both serial ports a and b are okay. We recommend using 19200bps as the serial communication rate.
z The modem type is case sensitive.
z We recommend that you input the AT commands for communicating modem with “Copy” and “Paste”.
To end the session with the modem, type “~” at the beginning of the line.
3) Establish and end connections
z Check if the process “asppp” is started:
# ps -ef | grep asppp
User Manual
HUAWEI iManager N2000 Fixed Network Integrated Management System
Chapter 11 Remote Maintenance
z Start “asppp”
# /etc/init.d/asppp start
z Stop “asppp”
# /etc/init.d/asppp stop
z After "asppp” is started on both the server and the client, ping the server to establish the dial-up connection.
# ping ppp_server [N]
Note:
The dial-up may take a tong time. If you ping the server for the first time, a time-out might occur. "N" is used to set the time-out period of the command “ping”. You can check whether the connection is made by viewing the log files (see "Troubleshooting" later in this manual) or the status indicator in the mode.