With the rapid development of the IT industry, Cisco routers are widely used in all walks of life. This article will start with basic configuration and briefly introduce the configuration method of Cisco routers.
1. Configure the Ethernet port # conf t
Configure the router from the terminal (Cisco's various commands can be abbreviated, as long as they are not repeated with other commands, such as configure terminal can be written as conf t).
# int e0
Specify port E0.
# ip addr ABCD XXXX
ABCD is the Ethernet address and XXXX is the subnet mask.
# ip addr ABCD XXXX secondary
Port E0 can support multiple address types at the same time, as long as each address type is not in the same network segment.
# no shutdown
Activate E0 port.
# exit
2. Configure the serial port (SERIAL)
1. X.25 configuration
# conf t
# int S0
# ip addr ABCD XXXX
# ip addr ABCD XXXX secondary
The 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, provided by the telecommunications department.
# x25 map ip ABCD XXXX br
Map X.25 address, ABCD is the IP address of the opponent's router (such as S0), and XXXX is the opponent's router
(such as S0).
# x25 htc X
The maximum bidirectional channel number X has a value range of 1 to 4095, and it must be configured according to the actual digital configuration provided by the Post and Telecommunications Bureau.
# x25 nvc X
Configure the number of permanent virtual circuits. X cannot exceed the actual value provided by the Post and Telecommunications Bureau, otherwise it will affect the normal transmission of data.
# no shutdown
# exit
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
LMI uses the Q933A standard. There are three types of LMI (Local management Interface), namely ANSI's T1.617, CCITT's Q933A and Cisco's unique standards.
# frame-relay intf-typ ABC
ABC is the type of frame relay device, which is DTE device, DCE switch or NNI (network contact interface) support device.
# frame_relay interface_dlci 110 br
Configure DLCI (Data Link Connection Identifier).
# frame-relay map ip ABCD XXXX broadcast
Establish frame relay mapping. ABCD is the other party's IP address, XXXX is the local DLCI number, broadcast allows broadcast forwarding or update routes.
# no shutdown
# exit
3. Configuration of frame relay subinterface
# conf t
# int s0.1 point-to-point
Corresponding to subinterface 1 of S0, point-to-point mode.
# ip addr ABCD XXXX
ABCD is the IP address of subport 1, and XXXX is the subnet mask.
# frame-relay interface-dlci 100 br
4. Configure dial-up backup
(1) Configure the backup main port
# conf t
# int s0
S0 is the main mouth.
# backup int asy 1
Port A1 is the backup port.
# backup delay 0 1
The delay is 1 second.
(2) Configure the virtual interface
# conf t
# ip addr ABCD XXXX
ABCD is the IP address of the virtual interface, and XXXX is the subnet mask.
# encap ppp
# dialer in-band
Activate the on-call dialing function.
# dialer idle-timeout 7200
# dialer map ip ABCD modem-script call
broadcast 1234567 br
Map the corresponding dial port. ABCD is the IP address of the other party's dial port, and 1234567 is the corresponding phone number.
# dialer_group 1
Defines dial group members.
(3) Configure the firewall
# dialer_list 1 pro ip permit
Allow IP protocol to pass.
(4) Configure the connection password
# user name ABCD pass XXXX
ABCD is the other party's host name, and XXXX is the connection password.
(5) Configure dial string
# conf t
# chat-script call "ABORT BUSY ABORT ERROR" atdt 1234567 TIMEOUT 45 "CONNECT"
1234567 is the other party’s phone number.
(6) Configure the dial-up connection password
# conf t
# username ROU1 pass XXXX
ROU1 is the other party's router name, and XXXX is the connection password.
(7) Configure the line
# conft
# line aux 0
# modem inout
MODEM bidirectional transmission.
# modem autoconfigure discovery
Automatically configure the parameters of MODEM.
# transport input all
# speed 51200
The MODEM transmits and receives the rate of 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 routing
1. Dynamic routing configuration
# conf t
# router eigrp 20
Using the EIGRP routing protocol, commonly used routing protocols include RIP, IGRP, IS-IS, etc.
# 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 Ethernet address of the machine.
# network XXXX
XXXX is the IP address of S0.
# no auto-summary
# exit
2. Configuration of static routing
# ip router ABCD XXXX YYYY 90
ABCD is the Ethernet address of the opponent's router, XXXX is the subnet mask, and YYYY is the corresponding WAN port address of the opponent.
# dialer-list 1 protocol ip permail
3. Backup configuration files to hard disk
First start the TFTP program on the computer.
# copy run tftp
Only when an empty file is created on the hard disk and has read and write permissions can the backup be successful.
4. Restore backup configuration files to router
# copy tftp run
5. Create a backup on the router
# copy run start
Article entry: csh Editor in charge: csh
1. Configure the Ethernet port # conf t
Configure the router from the terminal (Cisco's various commands can be abbreviated, as long as they are not repeated with other commands, such as configure terminal can be written as conf t).
# int e0
Specify port E0.
# ip addr ABCD XXXX
ABCD is the Ethernet address and XXXX is the subnet mask.
# ip addr ABCD XXXX secondary
Port E0 can support multiple address types at the same time, as long as each address type is not in the same network segment.
# no shutdown
Activate E0 port.
# exit
2. Configure the serial port (SERIAL)
1. X.25 configuration
# conf t
# int S0
# ip addr ABCD XXXX
# ip addr ABCD XXXX secondary
The 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, provided by the telecommunications department.
# x25 map ip ABCD XXXX br
Map X.25 address, ABCD is the IP address of the opponent's router (such as S0), and XXXX is the opponent's router
(such as S0).
# x25 htc X
The maximum bidirectional channel number X has a value range of 1 to 4095, and it must be configured according to the actual digital configuration provided by the Post and Telecommunications Bureau.
# x25 nvc X
Configure the number of permanent virtual circuits. X cannot exceed the actual value provided by the Post and Telecommunications Bureau, otherwise it will affect the normal transmission of data.
# no shutdown
# exit
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
LMI uses the Q933A standard. There are three types of LMI (Local management Interface), namely ANSI's T1.617, CCITT's Q933A and Cisco's unique standards.
# frame-relay intf-typ ABC
ABC is the type of frame relay device, which is DTE device, DCE switch or NNI (network contact interface) support device.
# frame_relay interface_dlci 110 br
Configure DLCI (Data Link Connection Identifier).
# frame-relay map ip ABCD XXXX broadcast
Establish frame relay mapping. ABCD is the other party's IP address, XXXX is the local DLCI number, broadcast allows broadcast forwarding or update routes.
# no shutdown
# exit
3. Configuration of frame relay subinterface
# conf t
# int s0.1 point-to-point
Corresponding to subinterface 1 of S0, point-to-point mode.
# ip addr ABCD XXXX
ABCD is the IP address of subport 1, and XXXX is the subnet mask.
# frame-relay interface-dlci 100 br
4. Configure dial-up backup
(1) Configure the backup main port
# conf t
# int s0
S0 is the main mouth.
# backup int asy 1
Port A1 is the backup port.
# backup delay 0 1
The delay is 1 second.
(2) Configure the virtual interface
# conf t
# ip addr ABCD XXXX
ABCD is the IP address of the virtual interface, and XXXX is the subnet mask.
# encap ppp
# dialer in-band
Activate the on-call dialing function.
# dialer idle-timeout 7200
# dialer map ip ABCD modem-script call
broadcast 1234567 br
Map the corresponding dial port. ABCD is the IP address of the other party's dial port, and 1234567 is the corresponding phone number.
# dialer_group 1
Defines dial group members.
(3) Configure the firewall
# dialer_list 1 pro ip permit
Allow IP protocol to pass.
(4) Configure the connection password
# user name ABCD pass XXXX
ABCD is the other party's host name, and XXXX is the connection password.
(5) Configure dial string
# conf t
# chat-script call "ABORT BUSY ABORT ERROR" atdt 1234567 TIMEOUT 45 "CONNECT"
1234567 is the other party’s phone number.
(6) Configure the dial-up connection password
# conf t
# username ROU1 pass XXXX
ROU1 is the other party's router name, and XXXX is the connection password.
(7) Configure the line
# conft
# line aux 0
# modem inout
MODEM bidirectional transmission.
# modem autoconfigure discovery
Automatically configure the parameters of MODEM.
# transport input all
# speed 51200
The MODEM transmits and receives the rate of 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 routing
1. Dynamic routing configuration
# conf t
# router eigrp 20
Using the EIGRP routing protocol, commonly used routing protocols include RIP, IGRP, IS-IS, etc.
# 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 Ethernet address of the machine.
# network XXXX
XXXX is the IP address of S0.
# no auto-summary
# exit
2. Configuration of static routing
# ip router ABCD XXXX YYYY 90
ABCD is the Ethernet address of the opponent's router, XXXX is the subnet mask, and YYYY is the corresponding WAN port address of the opponent.
# dialer-list 1 protocol ip permail
3. Backup configuration files to hard disk
First start the TFTP program on the computer.
# copy run tftp
Only when an empty file is created on the hard disk and has read and write permissions can the backup be successful.
4. Restore backup configuration files to router
# copy tftp run
5. Create a backup on the router
# copy run start
Article entry: csh Editor in charge: csh