Routers have a pivotal position in computer network, and are the bridge of computer network. It can not only connect different networks, but also choose the path of data transmission, and can block illegal access.
The configuration of routers is not very easy for beginners. Now the general configuration of the router and simple debugging introduced to everyone, for friends in the configuration router reference, this article take Cisco2501 as an example.
The Cisco2501 has an Ethernet port (AUI), a console port (RJ45), a aux port (RJ45) and two simultaneous serial ports that support DTE and DCE devices, and support eia/tia-232, eia/tia-449, v.35, X.25 and EIA-530 interfaces.
A Configuration
1. Configuring Ethernet Ports
# conf T (Router configuration from terminal)
# int E0 (Specify E0 Port)
# IP addr abcd xxxx (ABCD is Ethernet address, XXXX is subnet mask)
# IP Addr ABCD XXXX secondary (E0 port supports two address types at the same time. If the first is a class A address, the second is a B or Class C address.
# no shutdown (activating E0 port)
# exit
After completing the above configuration, ping to check the E0 port is normal. If it is not normal, usually because the port is not activated, beginners are often easy to ignore. Use the no shutdown command to activate the E0 port.
2. Configuration of X.25
# conf T
# int S0 (Specify S0 Port)
# IP addr abcd xxxx (ABCD is Ethernet S0 IP address, XXXX is subnet mask)
# EnCap X25-ABC (Encapsulation X.25 protocol. ABC specifies X.25 for DTE or DCE operations, defaults to DTE)
# x25 addr ABCD (ABCD S0 X.25 port address, provided by the Post Office)
# x25 Map IP ABCD XXXX BR (mapped X.25 address. ABCD is the IP address of the other router (such as: S0), XXXX is the X.25 port address of the other router (e.g., S0)
# x25 HTC X (maximum bidirectional channel number configured). The value range of x is 1-4095, according to the actual digital configuration provided by the Post Office.
# x25 NVC x (Configure the number of virtual circuits, X can not exceed the actual number of posts provided by the Post Office will affect the normal transmission of data)
# exit
After the S0 port configuration is complete, activate the E0 mouth with the no shutdown command. If the ping S0 port is normal, the ping-mapped X.25 IP address is not the same as the other router port IP address. May be caused by the following: 1 native X.25 address configuration error, re-check with the Post office (X.25 address length is 13 bits); 2) native mapped IP address or X.25 address configuration error, reconfigured correctly; 3 IP address or X.25 address configuration error, 4 the native or other routing configuration error.
Can communicate with each other, but there is a packet loss phenomenon. This situation, generally have the following several possible: 1 line situation is not good, or network card, RJ45 plug contact bad; 2 x25 HTC Highest two-way channel number x range and X25NVC virtual circuit number x exceeds the actual number provided by the Post Office. Maximum bidirectional channel number and virtual circuit number the greater the two values, the better, but definitely can not exceed the actual number of posts provided by the Post Office, otherwise there will be lost packet phenomenon.
3. The configuration of the special line
# conf T
# intS2 (designated S2 port)
# IP addr abcd xxxx (ABCD S2 IP address, XXXX as subnet mask)
# exit
When the line port configuration is complete, the S2 port can be activated with no shutdown command.
4. Configuration of Frame Relay
# conf T
# int S0
# IP addr abcd xxxx (ABCD S0 IP address, XXXX as subnet mask)
# EnCap Frante_relay (Package Frante_relay protocol)
# no nrzi_encoding (Nrzi=no)
# Frame_relay Lmi_type q933a (LMI uses q933a standard. There are 3 kinds of LMI (local management Interface): ansi:t1.617, ccitty:q933a and Cisco-specific standards)
# fram-relay Intf-typ ABC (ABC is the frame Relay device type, which is a DTE device, a DCE switch, or a nni (network contact interface) support)
# Frame_relay Interface_dlci (Configure DLCI (data link connection identifier))
# frame-relay Map IP ABCD XXXX Broadcast (build Frame Relay mapping.) ABCD is the IP address of the other, XXXX is the local DLCI number, broadcast allows the broadcast forward forwarding or update routing)
# no shutdown (activate this port)
# exit
After the Frame Relay S0 port configuration completes, check the S0 port with the ping command. If it is not normal, usually because the port is not activated, activate the S0 port with the no shutdown command. If ping S0 port is normal, ping mapped IP address is not normal, it may be the Frame relay switch or the other side configuration error, need to be integrated.