Simple configuration of leased line router, leased line Router
A router is a bridge between computer networks. It can connect different networks, select data transmission paths, and block illegal access. Router configuration is not easy for beginners. There are many vro configuration parameters. This document uses Cisco2500 as an example to introduce the general configuration and simple debugging of the leased line router.
1. hardware structure
Cisco2500 includes one Ethernet port (AUI), one Console port, one AUX port, and two synchronous serial ports Serial0/serial1. The AUI port is connected to the user's Lan through TRANSEIVER. either of the two serial ports can be connected to the WAN through a DCE device such as NTU. When configuring a vro, you must use a serial cable to connect the PC serial port to the Console port of the vro, and use the Windows 95 Super Terminal Program or NETTERM software for configuration. PC serial port is set to: baud rate 9600, data bit 8, stop bit 1.
2. Configure the leased line Client
The S0, S1 (short for Serial0 and Serial1) in the following sections are determined by the Serial port connected to the wide area network cable, where the "#" is the command line, without "#", the command is interpreted.
(1) Ethernet port configuration
# Conf t configure the router from the terminal.
# Int e0 specifies the E0 port.
# Ip addr
ABCD XXXX
ABCD is the ethernet address, and XXXX is the subnet mask.
# Ip addr
Abcd xxxx secondary
The E0 port supports two address types at the same time. If the first is A Class address, the second is B or C Class address.
# No shutdown
Activate E0 port.
# Exit
(2) X.25 leased line configuration
# Conf t
# Int s0
S0 port.
# Ip addr ABCD XXXX
ABCD is the IP address of the Ethernet S0, and XXXX is the subnet mask.
# Encap X25
Encapsulate the X.25 protocol.
# X25 addr ABCD
ABCD is the X.25 port address of S0, which is provided by the Telecommunications Board.
# X25 map ip abcd xxxx broadcast
The X.25 address of the ing. ABCD is the IP address of the Peer router, and XXXX is the X.25 port address of the Peer router.
# X25 the maximum number of two-way channels configured for htc X. The value range of X is 1 ~ 4 095, according to the actual digital configuration provided by the Telecommunications Bureau.
# X.25 Number of virtual circuits configured in nvc X. X cannot exceed the actual number provided by the Telecommunications Bureau. Otherwise, normal data transmission will be affected.
# Exit
(3) ddnleased line configuration
# Conf t
# Int s1 specifies the S1 port.
# Ip addr ABCD XXXX
ABCD is the IP address of S1, and XXXX is the subnet mask.
# Encap ppp
Encapsulate the ppp protocol.
# Exit
(4) configuration of the ISDN leased line
# Conf t
# Int BRI0 ISDN interface settings.
# Ip addr ABCD XXXX
ABCD is the IP address of BRI0, and XXXX is the subnet mask.
# Encap ppp
Encapsulate the ppp protocol.
# ISDN switch-type basic-net3 set the ISDN switch type.
# Dialer idle-timeout 180 configure the call duration.
# Dialer map ip ABCD name branch1 speed 64 XXXXX sets the ing between the ip address and the phone number. ABCD is the peer IP address, and XXXXX is the call phone number.
# Exit
(5) Frame Relay Configuration
# Conf t
# Int sO
# Encap frame-relay ietf
Encapsulation frame protocol. ietf is a frame protocol format.
# Fram-relay limi-type ansi
Set the Frame Relay line type encoding to ansi (some protocols use NRZI-encoding ).
# No shutdown
Activate this port.
# Ints0.1 point-to-point
Specify sub-interface 1 corresponding to S0, point-to-point mode.
# Frme-relay interface-dlci AB
Configure the DLCI value (data link connection identifier) provided by the carrier.
# Ip addr abcd xxxx abcd is the ip address of S0, and XXXX is the subnet mask.
# Exit
(6) password configuration
# Conft
# Line vty 0 4
# Password ABC
ABC indicates the logon password.
# Enable password DEF
DEF is the privileged password.
(7) Dynamic Route Configuration
# Conf t
# Router rip 1
Use the rip Routing Protocol. Other common routing protocols include RIP, IGRP, and IS-IS.
# Network
ABCD is the local ethernet address.
# Network
XXXX is the IP address of the serial port.
# Exit
(8) Static route Configuration
# Ip router
ABCD XXXX YYYY
ABCD indicates the ethernet address of the Peer router, XXXX indicates the subnet mask, and YYYY indicates the WAN port address of the Peer router.
(9) Access Control Configuration
# Access-list {permit | deny} address mask
Set the Access Table project. Note that the subnet mask must be reversed.
# Int s0 S0 Port
# Ip access-group list {in | out}
Set the access table on the specified port.
(10) backup and recovery of configuration files
# Copy run tftp
Back up the configuration file to the hard disk of the PC. You must create an empty file on the hard disk and have the read and write permissions to complete the backup.
# Copy tftp run
Recover the backup configuration file to the vro.
3. Basic vro debugging
First, activate the Ethernet port of the vro and all the serial ports to be used by entering the port and executing: # no shutdown.
Check whether the wide area network port or Ethernet port is UP, check whether the connected cable is correct, and whether the configured parameters are correct. Run: # sh int s0 (or e0)
If the Ethernet port from the host to the local router fails, we can regard the Ethernet port of the router as the ethernet card of the common host, which becomes a local area network connection problem, generally, the reason is that the Ethernet port is not activated, or the IP address of the router Ethernet port is not in the same network segment as the host IP address.
If the host fails to access the WAN or Ethernet port of the Peer router, you can perform the following operations.
· The two wide area network ports on the router cannot be connected. Check the NTU and the outer line.
· If there is a default gateway on the host, check the router routing protocol configuration.
· Check the Ethernet port of the host to the peer router. Use the telnet command to remotely log on to the peer vro and check the local network connection by checking the Ethernet port from the local host to the local vro.
Finally, you can use the Tracert command to track the route to determine the CIDR block.