Basic configuration of the router 1. Configure Ethernet (Ethernet) port: # conf TA router from the terminal. # INT E0 Specifies E0 port. # ip addr abcd xxxx abcd is an Ethernet address, XXXX is a subnet mask. # ip addr abcd xxxx Secondary E0 port supports two address types. If the first is a class A address, the second is the B or C address. # no shutdown activates E0 port. # exit 2. X.25 Configuration # Conf T # int S0 Specifies S0 port. # Ip addr abcd xxxx abcd is an IP address of Ethernet S0, XXXX is a subnet mask .. # ENCAP X25-ABC Package X.25 protocol. ABC specifies that X.25 is DTC or DCE operation, default is DTE. # x25 addr ABCD ABCD is the X.25 port address of S0, provided by the Posts and Telecommunications Bureau. # x25 MAP IP ABCD XXXX BR map X.25 address. ABCD is an IP address of the other party router (such as: S0), XXXX is an X.25 port address of the other party router (e.g.,: S0). # x25 HTC X Configure the highest bidirectional channel number. X of the value range 1-4095, to be configured according to the actual digital configuration provided by the Posts and Telecommunications. # x25 NVC X Configure the number of virtual circuits. X must not exceed the number actually provided by the Posts and Telecommunications, otherwise it will affect the normal transmission of the data. # exit ---- 3. Configuration of the special line: # conf T # int S2 Specifies the S2 port. # ip addr abcd xxxx ABCD is the IP address of S2, XXXX is a subnet mask. # exit 4. Frame Relay Configuration # conf T # int S0 # ip addr abcd xxxx abcd is the IP address of S0, XXXX is a subnet mask. # ENCAP FRANTE_RELAY Package Frante_Relay Protocol. # no nrzi_encoding nrzi = no # frame_relay lmi_type Q933A LMI uses the Q933A standard. LMI (LOCAL Management Interface) has three: ANSI: T1.617; CCITTY: Q933A and Cisco unique standards. # FRAM-Relay INTF-TYP ABC ABC is a frame relay device type, which is supported by DTE devices, DCE switches, or NNI (network contact interface). # frame_relay interface_dlci 110 BR configuration DLCI (Data Link Connection Identifier). # Frame-Relay Map IP Abcd XXXX Broadcast establishes a frame relay mapping. ABCD is the other party IP address, XXXX is a local DLCI number, and Broadcast allows broadcast forward or update the route. # no shutdown Activate this port. # exit ---- 5. The configuration of the frame relay sub-interface: # Conf T # int S0.1 Point-to-Point corresponds to the sub-interface 1 of S0, point-to-point mode. # ip addr abcd xxxx abcd is the IP address of the subhead 1, XXXX is a subnet mask. # frame-relay intreface-dlci 100 br 6. Configure dial backup (1). Configure the backup main port # conf T # Int S0 S0 is the main port. # Backup int start 1 A1 port is a backup port. # Backup delay 0 1 delay 1 second. (2). Configuring virtual interface # ip addr abcd xxxx abcd for virtual interface IP address, xxxx is a subnet mask.
# ENCAP PPP Package PPP Protocol. # Dialer In-Band Activate the on-calling function. # Dialer IDLE-TIMEOUT 7200 # Dialer MAP IP Abcd Modem-Script Call Broadcast 6225481 BR mapping the corresponding dial port. The ABCD is the IP address of the other side dial port, 6225481 is the corresponding phone number. # DIALER_GROUP 1 Define the dial-up group member. (3). Configuring Firewall # DIALER_LIST 1 Pro IP Permit Allow IP protocols to pass. (4). Configure the connection password # user name abcd pass xxxx abcd to the other host name, XXXX is a connection password. (5). Configuring Dial String # Conf T # chat-script call abort busy abort error "" ATDT 6335481 TIMEOUT 45 "Connect" 6335481 is the other party's phone number. (6). Configuring Dial-up Password # conf T # usrname rou1 pass xxxx rou1 is the other party router name, xxxx is a connection password. (7). Configure the line # conf T # Line aux 0 # modem inout modem two-way transmission. # Modem AutoConfigure Discovery # Transport Input All # RXSPEED 51200 MODEM speeds 51200. # exit 7. Configure synchronous / asynchronous port (for 2522) # conf T # int S2 # ph asynynchrographic configuration S2 is asynchronous. # pH SYNC, configure S2 as the synchronization port. 8. Dynamic Routing Configuration # conf T # Router EIGRP 20 uses the EIGRP routing protocol. Common route protocols include RIP, IGRP, IS-IS, etc. # Passive-Interface Serial0 If S0 is connected to X.25, enter this article instruction. # Passive-Interface Serial1 If S1 is connected to X.25, enter this article. # NetWork ABCD ABCD is the Ethernet address of this unit. # Network xxxx xxxx is the IP address of S0. # no auto-summary # exit 9. Static route configuration # ip router abcd xxxx yyyy 90 ABCD is the Ethernet address of the other party router; xxxx is a subnet mask.; YYYY is a wide area network port address corresponding to the other party. # Dialer-List 1 Protocol IP Permail 10. Backup profiles to hard disk # Copy Run TFTP Create an empty file on the hard disk and have read and write permissions to back up success. 11. Restore the backup configuration file to the router # Copy TFTP RUN 12. Built a backup of a backup # Copy Run Start router is much more configured, which can be reduced, limited to space, which is limited to the general configuration. ---. Turkey ---- 1. First activation of the Ethernet port of the router and all the serial ports to be used, and the method is to enter the mouth and execute the NO SHUTDOWN.
---- 2. The host connected to the router with the default route (Ethernet address of the central router), the method is to execute under the ultra user of the UNIX system: Router Add Defaule XXXX 1 (xxxx is the E0 port address of the router) . Each host must add default routing, resort, will not communicate with it. ---- 3. Ping this machine's router Ethernet network port (if not: (1) Ethetnet network port is not activated (2) is not in one online), the wide area network port (if not: no increase in the provincial route), the other party wide area network port (If the router configuration error), the router Ethernet network port (if the router configuration error), the host Ethernet network port (if the other host does not add defaults). ---- 4. In the primary card (X.25) host, the network is connected (static routing), and the method is to execute under the Unix system's super-use households: Router Add X.x.x y.y.y 1. X.x.x.x is the guest Ethernet network address; y.y.y is the address of the DVD domain. ---- 5. Use tracert to track the routing to determine the network segment.
Configuration 1, configuring DDR Dial-On-Demand Routing (DDR) is a network connection with public telephone network. Usually, the wide area network is connected by a special line, the router is connected to the data terminal DCE device similar to Modem or ISDN TAS. On, they support the synchronous V.25bis protocol, you can set the dial string with the Scripts and Dialer commands. DDR compares the user's alignment requirements, occasionally data transmission or just transmit data at a specific time, such as banks per night In the case of the transmission report, when an interested package reaches the router, a DDR request is generated. The router sends a call setup information to the specified serial port DCE device. This call connects the local and remote devices. Once there is no data Transmission, idle time starts timing, exceeding the set idle time, this time connection termination. DDR now uses static routes to transmit packets, avoiding DDR dials caused by routing exchange .appletalk, Banyan Vines, Clns, DECNET, IP, IPX, And XNS can be addressed by DDR. Synchronous serial port, asynchronous serial port, and ISDN ports can be configured to one or more destination DDR connections. In the configuration DDR process, we can configure one or several physical interfaces into a logical dial Interface, it can be synchronized V.25, synchronous DTR start dial or asynchronous Chat Script mode. In port configuration mode: function command activates Dial-on-Demand Routing Dialer in-band on one port to specify a port for dial-up access Group Dialer-Group Group-Number Specifies a single phone number Dialer String Dial-String Front Overline Free Waiting Time Dialer IDLE-TIME Seconds Defines One or more destination phone number table Dialer Map protocol net-hop-address Dialer-String Limited Transmission Access-List table or specific protocol Dialer-list dialer-group list access-list-number or dialer-list dialer-group protocol protocol-name {permit | deny | list accept ss-list-number} in Dialer String and Dialer Map Two commands are optional, Dialer String is used when there is only one phone number, and the Dialer Map is a telephone number table. Details For details, please refer to an instance of "DDR Example" below. Configure dial-up backup dial backups provide a protection so that when the radiopolline on the WAN is faulty, start a backup line to make communication normally. There are two cases of startup backup. : The main line breaks off the transmission traffic exceeds the defined maximum value. The definition is required as follows: Set its backup port on the main line port Backup Interface Interface-Name Define Backup Load Backup Load {Enable-Threshold | Never} {Disable-load | Never} Defines the response time of the main trunk up or DOWN. BACKUP DELAY {Enable-delay | Never) {Disable-delay | Never} where the main trunk exceeds the total transfer amount, start the backup line disable -Load --- indicates that the transmission amount is reduced to disconnect the backup line. Enable-delay --- After the main trunk is disconnected, start the backup line. Disable-delay --- indicates that the main line is re-re- After the recovery, the backup line is disconnected. 2, configuring the frame relay frame relay is a protocol standardized by ANSI and CCITT, which provides today's sudden business traffic (such as LAN interconnect and SNA service) Significant performance price advantage. Frame relay is a client device (CPE), such as a router or front-end processor, and a network protocol between a wide area network that sends data to the remote CPE. It has the following features: low Delay, delay refers to the time for a given to send frame through the network to the remote user equipment. When the network is increased, the performance will fall;
Especially for sensitive protocols such as SNA and DECNETs, all frames must wait for a protocol (ie, Novell IPX) that must be awaited after sending, and the use of short trading types. Reliability, under a given delay condition, throughput with the network The reliability varies, the reliability is good, the timeout wait for the resend, the throughput will greatly increase. Lower networked overhead can be predicted in many network environments, such as SNA CICS, not only demand, not only And need to be predictable. Fair. Cisco '
s Frame Relay currently support IP, DECnet, AppleTalk, Xerox Network Service (XNS), Novell IPX, International Organization for Standards (ISO) Connectionless Network Service (CLNS), Banyan VINES, and transparent bridging frame relay transmission. Configuration frame Table of relay: Defining Dynamic or Static Address Mapping Definition Dynamic or Static Address Mapping Defining Dynamic or Static Address Mapping Definition LMI Confolio Solving Monitoring Frame Relay Connects to a Frame Double Pack Configure the frame relay in the frame relay in the port, in Global Configuration mode: The function command specifies the port of the frame relay and enter the port configuration mode interface serial number specified frame relay package encapsulation frame-corre [IETF] Cisco's frame relay is consistent with the RFC 1490 packaging, allowing different manufacturers to communicate. When connecting to other manufacturers, please pack with IETF. Define dynamic or static address mapping dynamic address mapping dynamic address mapping frames Follow the Flip ARP protocol Send the next address that the next hoped address (hypothesis knows DLCI), when there is a response to the ARP protocol request, save in the Address-To-DLCI mapping table, this table is used Provides the next address or out of the DLCI address to flip the ARP protocol is open, so the dynamic address mapping does not need to do any configuration. Static address mapping a static address mapping is an address that is artificially specified next (Next Hop) Protocol address corresponds to the correspondence of DLCI. When a static address mapping is specified, the flip ARP protocol is automatically turned off. Establish a static address mapping table needs to be completed: Function command Defines a DLCI address of a port or sub-port Frame-Relay Interface-DLCI DLCI specified A NEXT HOP Protocol Address and DLCI correspond to Frame-Relay Map Protocol Protocol-Address DLCI [Broadcast] [IETF] [Cisco], keyword protocol support protocol:
IP --- IP Decnet --- Decnet AppleTalk --- AppleTalk Xns --- Xns Novell IPX --- ipx Vines --- Vines Iso Clns --- Clns If it is a point, you can use the interface-dlci command, if A point to multi-point setting Frame-Relay Map a series of DLCI and IP Address correspondence table. Defines LMII to support local management interface LMI (local management interface LMI (local management interface LMI (local management interface), which determines LMI by the switch port. Type. Of course, we can also clearly configure the LMI type. Function command builds the Route Room KEEPALIVE Time Frame-Relay Keepalive Number Defines N391 Interval Frame-Relay LMI-N391-DTE Keep-Exchanges Configuration Frame Relay Exchange Masterway Currently, Access The frame relay network is 56K to 45M, and the frame relay is a connected, package-switched virtual circuit, configuring SVCS on a sub-port on a physical port, configuring SVCS on a sub-port. Configure the SVC Operation function command Specifies the physical port Interface Serial Number If necessary, configure the IP address IP address IP-Address Mask Configure the frame relay ENCAPSULATION FRAME-RELY on this port to activate the Frame Contact SVC Frame-Relay SVC Configure the SVCS function command on the sub-port to specify a sub-port interface serial number.subinterface-number {Multipoint | Point-to-point}, if necessary, configuring the IP Address IP-Address Mask Refer to "Configure Subinterface Example" "Example. Frame Relay Switching When a frame relay network is interconnected with another frame relay network through the IP network, it is necessary to use the frame relay exchange. Gring the IP network as the tunnel of the frame relay package Implement frame relay exchange, configure the following: Function command Set the router as a frame relay switch Frame-Relay Switch on the router on the router Frame-Relay Route in -DLCI OUT-Interface Out-DLCI Defines Network Function Frame-Relay INTF-TYPE {DTE | DCE | NNI} See "Frame Relay Switching Example"
Configuration instance. Monitoring Frame Relay In EXEC mode: Function Command Display Frame DLCI and LMI Information Show Interface Serial Number Shows LMI Status Show Frame-Relay LMI [Type Number] Show PVC Status Show Frame-Relay PVC [Type Number [DLCI]] Display Configuration Static Route Show Frame-Relay Route Display Frame Dress Transmission Status Show Frame-Relay Traffic 3, Configuring DDN DDN (Digital Data Network) is a point-to-point synchronization data communication link. It supports PPP, SLIP Link layer communication protocols such as HDLC and SDLC. Allow IP, Novell IPX, BridGing, Clns, AppleTalk, Decnet, etc. Run it above. Basic Configuration Compression Technology E1 Port Configure Basic Configuration Function Command Enter The Specify Port Interface Serial Number Define this port IP address IP address IP-Address Mask Specifies that the port package encapsulation {PPP | HDLC} Compression technology is usually transmitted in the serial port, which allows the data packet header to exchange normally during each transmission, but each The times will be wasted. Currently supported compressed PPP, Frame Relay, X.25, TCP, etc. Cisco's compression is done by software, which will affect system performance. Therefore, the router CPU takes up 65%, do not use compression (Show Process CPU EXEC Command Current CPU Usage) Functional Command TCP Transfer Head Compressed IP TCP Head-Compression [Passive] X.25 Compression X25 Compress PPP Compression PPP Compress [Predictir | STAC] Note: "Passive" means only input When the package is compressed, the output package is only compressed. The E1 port is configured in the Cisco 4500, 4700, 7000 and 7500 Series. Each E1 port can be divided into 30 channels 64K data lines by time slots. 2 signal line. These 30 64K data lines can be used as a 64K line. Function command defines Controller E1 Control in configuration mode Troller E1 Slot / Port Definitions Line Code Linecode {AMI | HDB3} Defines Character Frame Framing {CRC4 | NO-CRC4} Defining E1 Group Channel-Group Number Timeslots Range [Speed {48 | 56 | 64}] Specifying serial port belongs to That CHANNEL -group group Interface serial slot / port: channel: channel / port ---- is a 7000 or 7500 series, so that the slot slogan and port number are distinguished. Linecode ---- default is HDB3. framing --- - The default is CRC4, matching the Telecommunications Bureau parameters. Channel-group ---- E1 can be divided into 30 Channel-Group, which correspond to the Channel-Group and the Time Slot. Channel-Group is 0-30, TimeSlots is 1-31. Interface serial ---- After defining E1 Channel-Group, we give Group Group into a virtual serial port. For details, please refer to "Channelized E1 Interface Example"
Example. 4, Configuration X.25 X.25 Configuration Complete the following work: Function command Settings X.25 mode Encapsulation X25 [DTE | DCE] Set the maximum virtual circuit X25 HTC MAX-VC-NUMBER Settings X.121 address x25 Address X121 -address Establish IP Address and X.121 Address The X25 MAP IP IP-Address X121-Addres [Broadcast] HTC ---- HTC is the maximum virtual circuit, because many X.25 switches are high to low-to-low virtual circuit Max-Vc-Number cannot exceed the maximum of the application. Please refer to the configuration example of "X.25 Example". 5, configure HDLC: HDLC is the default protocol used by the Cisco router, and a new router is not specified when the package protocol is not specified. The HDLC package is used by default.
A. About command port settings: Task Command Settings HDLC Package Encapsulation HDLC Setting DCE DTL CLOCKRATE SPEED Reset One Hardware Interface Clear Interface Serial Unit Display Interface State Show Interfaces Serial [Unit] 1 Note: 1. The following gives a display Cisco synchronization examples of serial state. Router # show interface serial 0 serial 0 is up, line protocol is up Hardware is MCI serial Internet address is 150.136.190.203, subnet mask is 255.255.255.0 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, LOAD 1/255 Encapsulation HDLC, Loopback Not Set, Keepalive Set (10 sec) Last Input 0:00:07, Output 0:00:00, Output HANG Never Output Queue 0/40, 0 Drops; Input Queue 0/75, 0 Drops Five Minute Input Rate 0 Bits / Sec, 0 Packets / Sec Five Minute Output Rate 0 Bits / Sec, 0 Packets / Sec 16263 Packets Input, 1347238 Bytes, 0 No Buffer Received 13983 Broadcasts, 0 Runts, 0 giants 2 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 2 abort 22146 packets output, 2383680 bytes, 0 underruns 0 output errors, 0 collisions, 2 interface resets, 0 restarts 1 carrier transitions B. Examples: set the following : Router1: Interface Serial0 IP Address 192.200.10.1 255.255.255.0 Clockrate 1000000 Router2: Interface Serial0 IP Address 192.200.10.2 255.255.255.0! C. Examples use E1 lines to implement multiple 64K special line connections. Related commands: Task commands Go to Controller configuration mode controller {T1 | E1 } Number Select Frame Type Framing {CRC4 | NO-CRC4} Select Line-CODE Type Linecode {AMI | B8ZS | HDB3} Establishing a Logical Channel Group and Time slots Channel-Group Number Timeslots Range1 Display Controllers Interface Status Show Controllers E1 [Slot / port] 2 Note: 1. When the link is T1, the Channel-Group number is 0-23, and the TIMESLOT range 1-24;
When the link is E1, the Channel-Group number is 0-30, and the TIMESLOT range 1-31. 2. Observe the Controller status using Show Controllers E1, the following is the normal status of Controllers when the frame type is CRC4. Router # Show Controllers E1 E1 0/0 is up Applique type is Channelized E1 - unbalanced Framing is CRC4, Line Code is HDB3 No alarms detected Data in current interval (725 seconds elapsed):. 0 Line Code Violations, 0 Path Code Violations 0 Slip Secs, 0 Fr. Loss Secs, 0 Line Err Secs, 0 Degraded Mins 0 Erroored Secs, 0 Bursty Err Secs, 0 Severely Err Secs 0 Unavail Secs Total Data (Last 24 Hours) 0 LINE CODE VIOLATIONS, 0 Path Code ViOLATIONS, 0 SLIP Secs Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins, 0 Erroored Secs, 0 Bursty Err Secs, 0 Sevelely Err Secs, 0 Unavail Secs The following example is E1 connection 3 64K line, frame type is NO-CRC4, non-balance chain Road, router setting is as follows: shanxi # wri t Building configuration ... Current configuration:!!! version 11.2 no service udp-small-servers no service tcp-small-servers hostname shanxi enable secret 5 $ 1 $ XN08 $ Ttr8nfLoP9.2RgZhcBzkk / enable password Shanxi !! IP Subnet-Zero! Controller E1 ! 0 framing NO-CRC4 channel-group 0 timeslots 1 channel-group 1 timeslots 2 channel-group 2 timeslots 3 interface Ethernet0 ip address 133.118.40.1 255.255.0.0 media-type 10BaseT interface Ethernet1 no ip address shutdown interface Serial0:!! 0 ip address 202.119.96.1 255.255.255.252 no ip mroute-cache interface Serial0:! 1 ip address 202.119.96.5 255.255.255.252 no ip mroute-cache interface Serial0:! 2 ip address 202.119.96.9 255.255.255.252 no ip mroute-cache! no ip classless ip route 133.210.40.0 255.255.255.0 Serial0: 0 ip route 133.210.41.0 255.255.255.0 Serial0: 1 ip route 133.210.42.0 255.255.255.0 Serial0:! 2 line con 0 line aux 0 line vty 0 4 password shanxi login !
END 6, Configuring PPP: PPP (Point-to-Point Protocol) is the successor of SLIP (Serial Line IP Protocol), which provides a router to Router-to-Router and hosts across synchronous and asynchronous circuits. Network (Host-to-Network) connection. Chap (Chapter Handshake Authentication Protocol) and PAP (PaP (PassWord Authentication Protocol) (PAP) are often used to provide security authentication on serial lines of PPP packages. With CHAP and PAP authentication, each router recognizes the name to prevent unauthorized access. CHAP and PAP have a detailed description on the RFC 1334. A. About the command port setting task command Set PPP Package Encapsulation PPP1 Settings Authentication Method PPP Authentication {CHAP | CHAP PAP | PAP CHAP | PAP} [IF-NEEDED] [List-Name | Default] [Callin] Specify Password Username Name Password Secret Set DCE Direction CLOCKRATE SPEED Note: 1. Use CHAP / PAP must use a PPP package. When connected to non-Cisco routers, a PPP package is generally used, and other manufacturers routers generally do not support Cisco's HDLC package protocol. 2. Example Router1 and Router2's S0 port package PPP protocol, use CHAP to authenticate, and a user should establish a user in Router1, as a user name, that is, the username should be router2. At the same time, one user should be established in Router2, as the user name, that is, the username should be router1. The Password of the two users built must be the same.
Settings are as follows: Router1: hostname router1 username router2 password xxx interface Serial0 ip address 192.200.10.1 255.255.255.0 clockrate 1000000 ppp authentication chap Router2:! Hostname router2 username router1 password xxx interface Serial0 ip address 192.200.10.2 255.255.255.0 ppp authentication chap 7, WAN configuration example DDR Example Dial Backup Example configure subinterface Example Frame Relay Switching Example Channelized E1 Interface Example X.25 Example DDR Example Example: configuration for RouterA: ip route 131.108.29.0 131.108.126.2 ip route 131.108.1.0 131.108.126.2 dialer-list 1 protocol ip permit dialer-list 1 protocol ipx deny! interface serial 0 ip address 131.108.126.1 255.255.255.0 dialer in-band dialer-group 1! dialer map ip 131.108.126.2 5551234! dialer idle-timeout 300 Dial Backup Example A) Synchronous V.25 BITS method Configuration for Routera: Interface Serial0: 0 Backup Delay 0 10 Backup Interface Serial10 IP Address 16.217.30.2 255.255.255.252! Interface Serial10 IP Address 16.30.16.8 1 255.255.255.0 encapsulation ppp dialer in-band dialer string 8292 dialer-group 1 pulse-time 1 dialer-list 1 protocol ip permit B) an auxiliary port for Dial Backup Configuration for RouterA:! Chat-script MYDIAL "" "atdt 8292" Timeout 60 "Connect"
! Interface Serial0 backup delay 0 0 backup interface Async1 ip address 16.3.1.1 255.255.255.0 encapsulation ppp! Interface Async1 ip address 16.3.2.1 255.255.255.0 encapsulation ppp keepalive 9 async default routing async dynamic address async dynamic routing async mode dedicated dialer in- !! band dialer string 8292 dialer-group 1 dialer-list 1 protocol ip permit line aux 0 script dialer MYDIAL modem InOut transport output none stopbits 1 flowcontrol hardware speed 9600 subinterface Example (Frame Relay) Configuration for RouterA: interface serial 0 encapsulation frame- relay interface s 0.1 multipoint ip address 11.10.11.1 255.255.255.0 frame-relay interface-dlci 41 frame-relay interface-dlci 42 Configuration for RouterC: interface serial 0 encapsulation frame-relay interface s 0.1 point-to-point ip address 11.10. 16.2 255.255.255.0 Frame-Relay Interface-DLCI 46 Configuration for Routerb: Interface Serial 0 Encapsulation Frame-Relay Interface S 0.1 MultiPoint IP Addres s 11.10.11.3 255.255.255.0 frame-relay interface-dlci 43 frame-relay interface-dlci 44! interface s 0.2 point-to-point ip address 11.10.13.1 255.255.255.0 frame-relay interface-dlci 48 Frame Relay Switching Example Configuration for RouterA:! frame-relay switching int s 0 no ip address frame-relay encapsulation frame-relay route 167 tun0 43 frame-relay intf-type dce int s 1 ip address 131.108.100.1 255.255.255.0 int tu 0 tunnel source!! serial 1 tunnel destination 131.108.13.2 Configuration for RouterB:!! frame-relay switching int s 0 no ip address frame-relay encapsulation frame-relay route 9 tun0 43 frame-relay intf-type dce int s 1 ip address 131.108.13.2 255.255 .255.0!
Int Tu 0 Tunnel Source Serial 1 Tunnel Destination 131.108.100.1 Channelized E1 Interface Example Hypothesis is a 7500 Series Router, an E1 Interface (MIP) on the slot 4. A Channel-Group can correspond to multiple time slots, this example is serial4 / 0: 1 There are 5 * 64kbps. Configuration for Router: Controller E1 0 FRMING NO-CRC4 CHANNEL-GROUP 0 TIMESLOTS 1 CHANNEL-GROUP 1 TIMESLOTS 2,7-9,20 Speed 64! Interface Serial4 / 0: 0 IP Address 16.217.30.2 255.255.255.252 ENCAPSULATION PPP! Interface Serial4 / 0: 1 IP Address 16.205.30.5 255.255.255.252 X.255.255.252 X.255.255.252 X.255.255.252 X.255.255.252 X.255.255.252 X.255.255.252 X.255.255.252 X.255.255.252 X.255.255.252 X.255.255.252 X.255.255.252 When configuring X.25, in order to reduce the call caused by routing exchange, usually use static routes. And under many circumstances, are not subinterface configured with a subnet configuration for Router:. interface serial 0 ip address 131.108.100.1 255.255.255.0 encapsulation x25 x25 address 041673226839 x25 htc 16 x25 map ip 131.108.100.2 041675222222 int s 0.1 ip address 131.108.101.1 255.255.255.0 x25 map ip 131.108.101.2 041674222222! ip route 131.108.100.0 255.255.255.0 131.108.100.2 ip route 131.108.101.0 255.255.255.0 131.108.101.2 set a routing protocol, RIP protocol RIP (routing information protocol) is Application is earlier, using a preferred internal gateway protocol (Interior Gateway Pro Tocol, referred to as IGP, suitable for small similar networks, is a typical distance vector (DHANCE-Vector) protocol. The documentation shows RFC1058, RFC1723. RIP switches routing information through broadcast UDP packets, and sends a routing information update every 30 seconds. RIP provides a hop count as a scale to measure routing distance, and the jump count is a number of routers that must be passed by a package to reach the target. If there is two routers that do not equally or different bandwidths, the jump count is the same, then the RIP believes that the two routes are equal. RIP supports up to 15, that is, the number of most routers to pass through the source and destination network is 15, and the number of hops is not reached. 1. The command task command specifies the use of RIP protocol Router RIP to specify the RIP version Version {1 | 2} 1 Specify network network network NetWork with the router: 1.Cisco's RIP version 2 supports verification, key management, routing, Insequirable Domain Routing (CIDR) and Various Subnet Mask (VLSMS) 2. Example Router1: Router Rip Version 2 Network 192.200.0 Network 192.20.10.0! Related debugging commands: Show IP Protocol Show IP Route IGRP Protocol IGRP (Interior Gateway Routing Protocol) is a dynamic distance vector routing protocol, which is designed by Cisco's 1980s. Use a combined user configuration scale, including delay, bandwidth, reliability, and load.
By default, IGRP sends a route update broadcast every 90 seconds, within 3 update cycles (ie 270 seconds), no route is not accessible from the first router from the routing. After 7 update cycles, 630 seconds, Cisco IOS software clears the route from the routing table. 1. The command task command specifies that the network network network network NETWORK connected to the router is specified using the RIP protocol Router IGRP AutoMous-System1 to specify the NEIGHBOR IP-Address Note: 1. Autonomous-System can be built freely, not actually AUTONOMOMOMOMSTEM, but the router running IGRP wants to swap routing update information It is the same as the autonomous-system. 2. Example Router1: Router IGRP 200 Network 192.200.10.0 Network 192.20.10.0! III, OSPF protocol OSPF (Open Shortest Path First) is an internal gateway protocol (IGP) for an internal gateway protocol (IGP) for an Internal Gateway Protocol, which is used in a single autonomous system (Autonomous System, AS) internal decision route. With RIP, OSPF is a link state routing protocol, and RIP is a distance vector routing protocol. The link is another statement of the router interface, so OSPF is also called an interface status routing protocol. OSPF creates a link status database through the status of the network interface between the router, generates the shortest path tree, and each OSPF router uses these shortest path to construct the routing table. 1. The Command Global Setup Task Command Specifies the NETWORK ADDRESS WILDCARD-MASK Area Area-Id2 that is connected to the router using the OSPF protocol Router OSPF Process-ID1 Specifies the NEIGHBOR IP-Address Node Address Node Address Note: 1, OSPF Routing The process process-id must specify the range 1-65535, multiple OSPF processes can be configured on the same router, but it is best not to do. Multiple OSPF processes require a copy of multiple OSPF databases that must run a copy of multiple shortest path algorithms. The Process-ID only works within the router, and the Process-ID of different routers can be different. 2, Wildcard-Mask is the counter code of the subnet mask, the decimal number of the network area ID area-ID in 0-4294967295, or X.x.x.x with IP address format. When the network area ID is 0 or 0.0.0.0, it is the main domain. The routers of different network areas are routing information through the main sanctuary.
2. Basic Configuration example: Router1:!! Interface ethernet 0 ip address 192.1.0.129 255.255.255.192 interface serial 0 ip address 192.200.10.5 255.255.255.252 router ospf 100 network 192.200.10.4 0.0.0.3 area 0 network 192.1.0.128 0.0.0.63 area ! 1 Router2:!! interface ethernet 0 ip address 192.1.0.65 255.255.255.192 interface serial 0 ip address 192.200.10.6 255.255.255.252 router ospf 200 network 192.200.10.4 0.0.0.3 area 0 network 192.1.0.64 0.0.0.63 area 2! router3:! interface ethernet 0 ip address 192.1.0.130 255.255.255.192 router ospf 300 network 192.1.0.128 0.0.0.63 area 1 Router4:!! interface ethernet 0 ip address 192.1.0.66 255.255.255.192 router ospf 400 network 192.1.0.64 0.0. 0.63 Area 1! Related debugging command: debug ip ospf Events debug ip ospf packet show ip ospf show ip ospf Database Show IP OSPF Interface Show IP OSPF Neighbor Show IP Route 3. Using Authentication For security reasons, we can be in the same OSPF area The function of authentication is enabled on the router, and only the router of the same area of authentication can be notified to each other. By default, OSPF does not use zone verification. Authentication feature, plain text authentication and message summary (MD5) authentication can be enabled by two ways. Plain text authentication The authentication password is plain text, which will be determined by the network detector, so it is not safe, not recommended. And Message Summary (MD5) Authentication To encrypt your password before transferring authentication password, so it is generally recommended to use this method for authentication. When using authentication, all router interfaces in the area must use the same authentication method. For the trial authentication, you must configure the password for each router interface for the area in the router interface configuration mode. Task Command Specify Authentication Area Area-ID Authentication [Message-Digest] Using plain text authentication IP OSPF Authentication-Key Password Using Message Summary (MD5) Authentication IP OSPF Message-Digest-Key Keyid MD5 Key The following verification settings The example, the example network distribution and address allocation environment are the same as those of the above basic configuration, just in the area 0 of Router1 and Router2, using authentication functions.
: 1. Using plaintext authentication Router1:!! Interface ethernet 0 ip address 192.1.0.129 255.255.255.192 interface serial 0 ip address 192.200.10.5 255.255.255.252 ip ospf authentication-key cisco router ospf 100 network 192.200.10.4 0.0.0.3 area 0 network 192.1.0.128 0.0.0.63 area 1 area 0 authentication Router2:!!! interface ethernet 0 ip address 192.1.0.65 255.255.255.192 interface serial 0 ip address 192.200.10.6 255.255.255.252 ip ospf authentication-key cisco router ospf 200 network 192.200.10.4 0.0.0.3 area 0 network 192.1.0.64 0.0.0.63 area 2 area 0 authentication Example 2. The message digest (MD5) authentication:! Router1:! interface ethernet 0 ip address 192.1.0.129 255.255.255.192 interface serial 0 ! ip address 192.200.10.5 255.255.255.252 ip ospf message-digest-key 1 md5 cisco router ospf 100 network 192.200.10.4 0.0.0.3 area 0 network 192.1.0.128 0.0.0.63 area 1 area 0 authentication message-digest Router2:! interface Ethernet 0 IP Address 192.1.0.65 255.255.255.192! Interface Serial 0 IP Address 192.200.10.6 255.2 55.255.252 ip ospf message-digest-key 1 md5 cisco router ospf 200 network 192.200.10.4 0.0.0.3 area 0 network 192.1.0.64 0.0.0.63 area 2 area 0 authentication message-digest-related debug commands:!! Debug ip ospf adj Debug IP OSPF Events 4, reassigned routing in actual work, we will encounter networks using multiple IP route protocols. In order to make the entire network work normally, a successful route must be reassigned between multiple routing protocols. The following is listed below to reassign the Route in OSPF and RIP: Router1's Serial 0 port and Router2's Serial 0 port runs OSPF, running RIP 2, Router3 running RIP2, Router2, is Router4, and Router2 is 192.168. 2.0 / 24 static routes of the network, Router4 uses the default static route. You need to redistribute OSPF and RIP routing between Router1 and Router3, reassign the static route and direct routes on Router2.
Command Task Command paradigm involved reallocating direct route redistribute connected redistribution of static routes redistribute static redistribution of ospf routing redistribute ospf process-id metric metric-value reallocate rip routing redistribute rip metric metric-value Router1: interface ethernet 0 ip address 192.168.1.1 255.255.255.0! interface serial 0 ip address 192.200.10.5 255.255.255.252! router ospf 100 redistribute rip metric 10 network 192.200.10.4 0.0.0.3 area 0! router rip version 2 redistribute ospf 100 metric 1 network 192.168.1.0 ! Router2:!!! interface loopback 1 ip address 192.168.3.2 255.255.255.0 interface ethernet 0 ip address 192.168.0.2 255.255.255.0 interface serial 0 ip address 192.200.10.6 255.255.255.252 router ospf 200 redistribute connected subnet redistribute static subnet network 192.200 .10.4 0.0.0.3 Area 0! IP Route 192.168.2.0 255.255.255.0 192.168.0.1! Router3: interface ethernet 0 ip address 192.168.1.2 255.255.255.0 router rip version 2 network 192.168.1.0 Router4:!!! Interface ethernet 0 ip address 192.168.0.1 255.255.255.0 interface ethernet 1 ip address 192.168.2.1 255.255.255.0 ip! Route 0.0.0.0 0.0.0 192.168.0.2! 5. IPX protocol Setting IPX protocol and IP protocols are two different network layer protocols, and their routing protocols are different. IPX's routing protocol is not like IP's routing protocol. Therefore, it is relatively simple. However, the IPX protocol must specify the package in the Ethernet.