This chapter describes how to configure the Point-to-Point Protocol (PPP) on serial ports on Cisco 1000 Series Connected Grid Routers (hereafter referred to as the Cisco CG-OS router or CGR 1000).
PPP over the serial port provides IP connectivity to downstream systems within the Supervisory Control and Data Acquisition (SCADA) system.
Additionally, this chapter provides details on enabling and configuring serial ports with either a RS232 DCE or RS485 interface.
PPP over the serial port provides IP connectivity to downstream systems within the SCADA system.
Figure 2-1 provides an example in which you enable the serial port on a CGR 1000 and configure PPP encapsulation on that port to provide connectivity to a low voltage concentrator (LVC). Data from the LVC is then transmitted over a secure IPSec tunnel network to a Control Center for processing.
Challenge Handshake Authentication Protocol (CHAP) provides authentication for communications between the LVC and the CGR 1000. With CHAP, the secret must be in plaintext form. However, the router also supports encrypted passwords.
Figure 2-1 CGR 1000 Serial Port Configured with PPP Encapsulation Provides IP Connectivity within SCADA System
Prerequisites
See the Before You Begin sections below.
Guidelines and Limitations
Verify that the serial port is not configured with another encapsulation method before configuring the serial port for PPP encapsulation by entering the show interface serial slot/port command.
Default Settings
Table 2-1 lists the default settings for the serial ports, line, and PPP parameters.
Table 2-1 Default Settings for Serial Port and PPP
Parameter
Default
Serial port
Disabled
Media type: RS232
Frame size: 100 bytes
Maximum Idle: 10 ms
Pulse time: 500 ms
Full-duplex
Line
Data bits: 8
Flow control: None
Parity: None
Speed: 9600
Stop bits: 1
PPP
Disabled
CHAP authentication: Disabled
Restart delay: 30 seconds
Enabling the CGR 1000 Serial Port
You can configure the two serial ports on the Cisco CG-OS routers to operate as either a RS232 or RS485 interface to provide IP connectivity to systems within the SCADA system.
Determine availability of serial port on the Cisco CG-OS router.
DETAILED STEPS
Command
Purpose
Step 1
configure terminal
Router enters the global configuration mode.
Step 1
interface serialslot/port
Enters the interface command mode for the serial slot/port.
Note The slot/port configuration for the serial port can be 1/1 or 1/2.
Step 2
descriptiontext
Provides a textual description of the interface being configured.
text-Allows 80 alphanumeric, case sensitive, characters.
Step 3
ip addressip address mask[secondary]
Specifies a primary or secondary IPv4 address for an interface.
ip address mask-The network mask can be a four-part dotted decimal address. For example, 255.0.0.0 indicates that each bit equal to 1 means the corresponding address bit belongs to the network address.
The network mask can be indicated as a slash (/) and a number (a prefix length). The prefix length is a decimal value that indicates how many of the high-order contiguous bits of the address comprise the prefix (the network portion of the address). A slash must precede the decimal value and there is no space between the IP address and the slash.
Step 4
no shutdown
Brings up the port, administratively.
Step 5
media-type {rs232 | rs485}
Specifies the media type on the serial port. RS232 is the default.
Step 6
frame-sizenumber
Sets the maximum bytes per frame.
number-Values of 1 to 512. Default setting is 100 bytes.
Step 7
max-idlenumber
Sets the gap between frames.
number-Value of 1 to 1000. Default setting is 10 ms.
Step 8
pulse-timenumber
Defines the period of time before the software notifies a connecting system of an up or down state (enabled/disabled) of the serial port or its link.
number-Value of 1 to 3000. Default setting is 500 ms.
Step 9
{full-duplex | half-duplex}
Configures the serial port to operate in either full-duplex or half-duplex mode. Default setting is full-duplex.
Step 10
copy running-config startup-config
(Optional) Saves this configuration change.
EXAMPLE
This example shows how to enable serial port interface 1/1 on the router, define that interface as a RS232 media-type, enable PPP encapsulation on the interface, and add a description.
router# configure terminal
router(config)# interface serial 1/1
router (config-if)# encapsulation ppp
router (config-if)# media-type RS232
router (config-if)# no shutdown
router (config-if)# description "Adding PPP encapsulation to serial port"
Clearing Interface Counters
When debugging a connection issue, you can use any of all of the following commands to clear the counters.
Command
Purpose
clear counters interface all
Clears counters on all interfaces.
clear counters interface serialslot/port
Clears all interface counters for a specified interface.
Configuring the Line Parameters
You can set and modify the line parameters using the Linux TTY application for each of the Cisco serial ports on the CG-OS router.
BEFORE YOU BEGIN
Enable the serial port on the CG-OS router and define the interface as a RS232 or RS485.
No comments:
Post a Comment