Advanced router configuration command

Source: Internet
Author: User
Tags cisco commands

As we have mentioned earlier, the vro itself has an independent operating system and needs to face various complex network environments. Therefore, the configuration process of the vro is not a simple process. In addition to some basic configurations described in the previous article, many special configurations, such as Wan Protocol configuration and LAN protocol configuration, are also required in actual applications. This article describes the most common router command configuration methods for advanced users.

I. vro command configuration method

Because no configuration file is available for the newly purchased vro, initial configuration is required. After the terminal communication parameters are set, connect to the vro console, first turn on the terminal power, then turn on the vro power, and then enter the initial configuration. I will introduce the basic configuration method of the Cisco router here. The principle of the initialization configuration process of other routers is similar.

As we have discussed earlier, there are two main ways to configure a router: one is a command method and the other is a dialog mode. The command method is more flexible and highly targeted, therefore, some advanced configurations of A vro usually adopt this method. However, this method is complicated and it is difficult for new users to remember many vro configuration commands. The dialog mode is relatively less flexible but easy to accept, just as it is easier to use a Windows system than a UNIX system. Next, let's take a look at how the command is used.

Connect the hardware of the configured vro with the CONSOLE line randomly attached to Cisco. One end is connected to the CONSOLE port of the Cisco3640 vro and the other end is connected to the comport of the computer. Open the computer, start the Super Terminal Program, and get a name for your connection, such as Cisco_SETUP. Use COM1 for the next connection. Next, select the second-digit 9600, data-bit 8, and the parity check is unavailable, stop bit 1, no data flow control, and finally Select OK. In fact, the connection method here is the same as the configuration for changing the host initialization described earlier. For more information about the connection method, see the previous section.

The basic configurations of A vro include several relatively independent parts. The following describes the basic configurations of A vro, some explanatory statements are interspersed in command statements, with a "//" symbol in front.
[NextPage]
1. Configure the Ethernet port

All Cisco commands can be abbreviated as long as they are not repeated with other commands. For example, "configure terminal (terminal configuration)" can be written as "conf t", but this does not mean that it can be written in disorder, when the configuration is too large, you will find some of its basic abbreviations. Before that, you 'd better refer to the relevant books. The main commands for configuring an Ethernet port are as follows:

# Int e0
// Specify the E0 port.
# Ip addr abcd xxxx // "ABCD" indicates the ethernet address, and "XXXX" indicates the subnet mask.
# Ip addr abcd xxxx secondary // E0 port supports multiple address types at the same time, as long as each address type is not in the same network segment.
# No shutdown // activate the E0 port.
# Exit

  2. Configure the SERIAL port (SERIAL)

These configurations are mainly used to connect the router to the WAN. The following describes the basic commands used in the configuration of several common Wan protocols.

  (1) X.25 Configuration

# Conf t
# Int S0
# Ip addr ABCD XXXX
# The ip addr abcd xxxx secondary // S0 port also supports multiple address types.
# 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 Department.
# X25 map ip abcd xxxx br // ing X.25 address, ABCD is the ip address of the Peer router (such as S0), XXXX is the X.25 port address of the Peer router (such as S0.
# X25 htc X // The maximum number of two-way channels X ranges from 1 ~ 4095. It must be configured according to the number actually provided by the post office.
# X25 nvc X // configure the number of permanent virtual circuits. X cannot exceed the value actually provided by the post office. Otherwise, normal data transmission will be affected.
# No shutdown
# Exit


[NextPage]
(2) Frame Relay Configuration

# Conf t
# Int s0
# Ip addr ABCD XXXX
# Encap frante_relay
# No nrzi_encoding
NRZI = NO.
# Frame_relay lmi_type q933a // here, the "Q933A" standard is selected for the lmi_type. There are three types of LMS (Local management Interface): ANSI T1.617, CCITT Q933A, and Cisco-specific standards.
# Frame-relay intf-typ A/B/C // A/B/C is the frame relay device type. They are DTE devices, DCE switches, and NNI (Network Contact Interfaces) supported devices.
# Frame_relay interface_dlci 110 br // configure the DLCI (data link connection identifier ).
# Frame-relay map ip abcd xxxx broadcast // creates a frame relay ing. "ABCD" is the IP address of the other party, "XXXX" is the local DLCI number, and broadcast allows the broadcast to forward or update the route.
# No shutdown
# Exit

  (3) configure the Frame Relay subinterface

# Conf t
# Int s0.1 point-to-point // corresponding to S0 sub-interface 1, point-to-point mode.
# Ip addr abcd xxxx // "ABCD" is the ip address of sub-Port 1, and "XXXX" is the subnet mask.
# Frame-relay interface-dlci 100 br

  (4) Configure dial-up backup

· Configure the backup Main Port

# Conf t
# Int s0 // S0 is the main port.
# Backup int asy 1 // A1 port is the backup port.
# Backup delay 0 1 // The delay is 1 second.

· Configure virtual Interfaces

# Conf t
# Ip addr abcd xxxx // "ABCD" is the virtual interface ip address, and "XXXX" is the subnet mask.
# Encap ppp
# Dialer in-band // activate the call-in function.
# Dialer idle-timeout 7200
# Dialer map ip ABCD modem-script call broadcast 1234567 br // map the corresponding dialing port. ABCD is the IP address of the Peer dialing port, and 1234567 is the corresponding phone number.
# Dialer_group 1 // defines the dialing group members.


[NextPage]
· Configure the firewall

# Dialer_list 1 pro ip permit // allow ip protocol to pass.
· Configure the connection password
# User name ABCD pass XXXX // "ABCD" indicates the Host name of the other party, and "XXXX" indicates the connection password.
· Configure the dialing string
# Conf t
# Chat-script call "abort busy abort error" atdt 1234567 TIMEOUT 45 "CONNECT" // "1234567" indicates the phone number of the other party. You can modify it based on your actual situation.

· Configure the dialing connection password

# Conf t
# Username ROU1 pass XXXX // "ROU1" indicates the name of the Peer router, and "XXXX" indicates the connection password.

· Configure the line

# Conft
# Line aux 0
# Modem inout // MODEM bidirectional transmission.
# Modem autoconfigure discovery // automatically configure the MODEM parameters.
# Transport input all
# Speed 51200 // the sending and receiving rate of the MODEM is 51200bps.
# Exit

  (5) Configure synchronous/asynchronous ports

# Conf t
# Int s2
# Ph asyn // configure S2 as an asynchronous port.
# Ph sync // configure S2 as the synchronization port.

  3. Configure the route table

This is to configure the route table of the router and its routing protocol. The specific command is as follows:

  (1) Dynamic Route Configuration

# Conf t
# Router VPN 20 // use the VPN protocol. Common routing protocols include RIP, IGRP, and IS-IS.
# Passive-interface serial0 // If S0 is connected to X.25, enter this command.
# Passive-interface serial1 // If S1 is connected to X.25, enter this command.
# Network ABCD // "ABCD" is the local ethernet address.
# Network XXXX // "XXXX" is the IP address of S0.
# No auto-summary
# Exit

  (2) Static route Configuration

# Ip router abcd xxxx yyyy 90 // "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.
# Dialer-list 1 protocol ip permail

  (3) back up the configuration file to the hard disk

Start the TFTP program on the computer, and enter the following format at the prompt:

# Copy run tftp // create an empty file on the hard disk and have the read/write permission to complete the backup.

  (4) restore the backup configuration file to the vro

# Copy tftp run

  (5) create a backup on the vro

# Copy run start


[NextPage]
Ii. Basic configurations of vrouters in dialog Mode

Setting the dialog can avoid the hassle of manually entering commands. In the privileged command status, use the SETUP command to enter the dialog configuration status. After entering the dialog setting process, the vro will first display the following similar prompts:

--- System Configuration Dialog ---
At any point you may enter a question mark? For help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets [].

This tells you that you can type "? "To get help from the system, press ctrl-c to exit the setting process. The default setting is displayed in. Then the vro will ask whether to enter the Setting Dialog:

Wocould you like to enter the initial configuration dialog? [Yes]:

If you press y or press enter, the vro enters the dialog setting process. First, you can see the current configuration of each port on the vro, as shown below:

First, wocould you like to see the current interface summary? [Yes]: (select "y ")

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.