You are on page 1of 18

·����Ļ�����

����
1 �� �� �� �� ��Ethernet�� �� �‫�ڣ‬
����# conf t
�������ն�����·����
����# int e0
����ָ��E0�‫�ڡ‬
����# ip addr ABCD XXXX
����ABCDΪ�����ַ ,XXXXΪ�������롣
����# ip addr ABCD XXXX secondary
����E0��ʱ ʱ
��֧��}��ַ� � � ��������һ��
����ΪA���ַ � � � � ‫ � � �ڶ‬ΪB��C���ַ � �
����# no shutdown
��������E0�‫�ڡ‬
����# exit
����
2��X.25������
����# conf t
����# int S0
����ָ��S0��.
����# ip addr ABCD XXXX
����ABCDΪ����S0��IP��ַ ,XXXXΪ��������.��
����# encap X25-ABC
������‫װ‬X.25Э�顣 ABCָ��X.25ΪDTC��DCE����ȱʡΪDTE��
����# x25 addr ABCD
����ABCDΪS0��X.25�˿‫ ַ�ڵ‬,���ʵ���ṩ��
����# x25 map ip ABCD XXXX br
����ӳ���X.25��ַ .ABCDΪ�Է�·����(��:S0)��
����IP��ַ ,XXXXΪ�Է�·����(��:S0)��X.25�˿‫� � ַ�ڵ‬
����# x25 htc X
�����������˫�� ���� �.X �� �ȡ ֵ��Χ1-4095,
����Ҫ����ʵ��ʵ���ṩ���������á�
����# x25 nvc X
�����������·��X���ɳ�����ʵ��ʵ��
�����ṩ����,����,��Ӱ����‫ � � � �ݵ‬䡣
����# exit
��
3 �� ‫ � � � � � � � ר‬ã�
����# conf t
����# int��S2
����ָ��S2�‫�ڡ‬
����# ip addr ABCD XXXX
����ABCDΪS2��IP��ַ ,XXXXΪ�������롣
����# exit
����
4��� � мм �����
����# conf t
����# int s0
����# ip addr ABCD XXXX
����ABCDΪS0��IP��ַ ,XXXXΪ�������롣
����# encap frante_relay
������‫װ‬frante_relayЭ�顣
����# no nrzi_encoding
����NRZI=NO
����# frame_relay lmi_type q933a
����LMIʹ��Q933A��ʱ� � LMI��Local management
Interface����3�֣ � ANSI��T1.617��CCITTY��Q933A�� CISCO���еı�ʱ� �
����# fram-relay intf-typ ABC
����ABCΪ��м��豸�������� Ƿֱ � � � DTE�豸��DCE�������NNI������ӵ�ӿ ‫�֧ ��ڣ‬

����# frame_relay interface_dlci 110 br
��������DLCI(���t·l�ӱ�ʶ��)��
����# frame-relay map ip ABCD XXXX broadcast
������b��м�ӳ�䡣 ABCDΪ�Է�ip��ַ � � XXXXΪ����DLCI�ţ�broadcast��Ӧ�㲥� ǰ�‫�· � � � � � � �ת‬ɡ�
����# no shutdown
��������˿‫�ڣ‬
����# exit
����
5 ��� � � � � � � � � � � � � � � � ã�
����# conf����
����# int s0.1 point-to-point
������ӦS0���ӽӿ�1����Ե 㷽 ʽ��
����# ip addr ABCD XXXX
����ABCDΪ�ӿ�1��IP��ַ ,XXXXΪ�������롣
����# frame-relay intreface-dlci 100 br
����
6�����ò��ű���
����(1)���������
����# conf t
����# int s0
����S0Ϊ��‫�ڣ‬
����# backup int asy 1
����A1��Ϊ���‫�ݿڣ‬
����# backup delay 0 1
������ʱ1�룮
����(2)����������ӿ�
����# conf t
����# ip addr ABCD XXXX
����ABCDΪ����ӿ�IP��ַ ,XXXXΪ�������롣
����# encap ppp
������‫װ‬pppЭ�飮
����# dialer in-band
������������沦���‫�ܣ‬
����# dialer idle-timeout 7200
����# dialer map ip ABCD modem-script call broadcast 6225481 br ӳ���Ӧ�IJ��ſ ‫�ڣ‬
����ABCDΪ�Է����ſ ‫ �ڵ‬ip��ַ � � 6225481Ϊ��Ӧ�ĵ 绰���롣
����# dialer_group 1 ���㲥� ���� Ա��
����(3)�����÷;�ǽ
����# dialer_list 1 pro ip permit
� ��
������ӦipЭ�� ��
ʱʱ
����(4)������l�ӿ���
����# user name ABCD pass XXXX
����ABCDΪ�Է������,XXXXΪl�ӿ��
����(5)�����ò����ַ �
����# conf t
����# chat-script call ABORT BUSY ABORT ERROR"" atdt 6335481 TIMEOUT 45 "CONNECT"
����6335481Ϊ�Է��绰���롣
����
��6��������l������
����# conf t
����# username ROU1 pass XXXX
����ROU1Ϊ�Է�·������XXXXΪl�����롣
�� (7)��������·
����# conf����
����# line aux 0
����# modem inout
����MODEM˫���䡣
����# modem autoconfigure discovery
����# transport input all
����# rxspeed 51200
����MODEM���շ�����Ϊ51200 ��
����# exit
����
7�������� �/ʱ �첽�� ��������2522��
���
����# conf t
����# int s2
����# ph asyn
��������S2Ϊ�첽�‫�ڣ‬
����# ph sync��
��������S2Ϊ� Ϊ���‫�ڣ‬
����
8������ɵ�����
·
����# conf t
����# router eigrp 20
����ʹ��EIGRP·��Э�㲥� �� õ�·��Э����RIP��IGRP��IS-IS�ȡ�
����# passive-interface serial0
������S0��X.25��l�������뱾��ָ�
����# passive-interface serial1
������S1��X.25��l�������뱾��ָ�
����# network ABCD
����ABCDΪ����������ַ��
����# network XXXX
����XXXXΪS0��ip��ַ��
����# no auto-summary
����# exit
����
9������ɵ�����
·
����# ip router ABCD XXXX YYYY 90
����ABCDΪ�Է�·����������ַ�� XXXXΪ��������.��YYYYΪ�Է���Ӧ�Ĺ�����˿‫��ַ�ڵ‬
����# dialer-list 1 protocol ip permail
����
10�����������ļ���Ӳ��
����# copy run tFTP
������Ӳ���Ͻ�bһ����ļ����ж�дȨ��,���ܱ��‫ݳ‬ɹ���
����
11��� ָ ����������ļ���·����
����# copy tftp run
����
12����·�����Ͻ�һ���
����# copy run start
����·��������ò���϶࣬ �ɸ��ʵ����Ҫ���
��������ƪ���Ľ�����һ��ij������á�
����
�� ��
������---- 1. �� �� �� · �� �� ��Ethernet �� �� �� �� Ҫ ʹ �� �� �� �� �� �� � ��
�� �� �� �� �� �‫ �� ִ �ڣ‬No Shutdown��
������---- 2. �� �� · �� �� �� l �� �� �� �� �� ȱ ʡ · �ɣ� �� �� · �� �� ��Ethernet
�� ַ ���� �� �� �� �� UNIX ϵ ͳ �� �� �� �� �� �� ִ �У�router add defaule
XXXX 1��XXXX Ϊ · �� �� ��E0 �� �� ַ ���� ÿ �� �� �� Ҫ �� ȱ ʡ· �ɣ� �� �� �� �� ��
������---- 3. Ping �� �� �� · �� ��Ethernet �� �1���� �� �� � ‫��ڣ‬Ethetnet �� ��
û �� �� �2�� �� �� һ �� �� � � ��� ϣ� �� �� � ‫�� �� �� �ڣ‬û �� �� ȱ ʡ· �ɣ��� ��
�� �� �� �� �‫��� �� �ڣ‬ � ��· �� �� �� �� ��� � ·
� Ethernet �� �‫�� �� �ڣ‬
� �� ��
�� · �� �� �� �� �� ʱʱ� �
�� �� ��Ethernet �� � ‫�� �� �� �� �� �� �� �ڣ‬û
�� �� ȱ ʡ · �ɣ���
������---- 4. �� ‫(�� �� ר‬X.25) �� �� �� �� �� �‫� · �� �أ‬ɣ��� �� �� �� �� UNIX ϵ
ͳ �� �� �� �� �� �� ִ �У�router add X.X.X.X Y.Y.Y.Y 1�� X.X.X.X Ϊ ��
��Ethernet �� �� ַ��Y.Y.Y.Y Ϊ �� �� �� �� �� �� ַ��
������---- 5. ʹ ��Tracert �� · �� �� �� �� �٣� �� ȷ �� �� Ρ �
�� �
����
WAN������
����1�� ����DDR
����Dial-on-demand routing(DDR)���ù����绰���ṩ������l��. ���� , ������������
‫��ר‬l�ӵ�,·����l�ӵ�����modem��ISDN TAs������ն�DCE�豸��,���� �֧
����V.25bisЭ��,�������scripts��dialer����� 㲥� �
�Ŵ�.DDR�Ƚ��������û�������Ҫ� ʱ ʱ�,ż���� ‫ݴݴ� ���ֻ�����ض‬
Ȼ ‫� ݴ‬ʱ�������,��������ÿ���ͱ���ȵ���
���.��һ��а��õİ��·����ʱ,����һ��DDR����.·�����ͺ�н�b�� Ϣ � �ָ���Ĵ��‫�ڵ‬DCE�豸.����оͰѱ��
‫�غ‬Զ����豸 l����4.һ��û����ʱ���,����ʱ�俪 ʼ��ʱ,�������õĿ���ʱ��,��һ��l����ֹ.DDR���
‫��ڶ‬þ����
· 4������‫�ݰ‬,����·�ɽ��������DDR����.AppleTalk,Banyan VINES, CLNS, DECnet,
IP, IPX, ��XNS���� �� �� �Ѱ �.
�DDR· ַ .������,� 첽���‫�ں‬ISDN�˿
‫������ڿ‬óɵ �һ � � � � � Ŀ � ĵ � D D Rl � � . � � � � � � D D R � � � � � , � � � ǿ � � ʱ �
ʱһʱ�
ʱ�ʱʱ �
ʱ�ʱ�
ʱ
��ӿ����ó�һ���ʱ�����Žӿ �,��������� 첽 chat
�V.25
� �ʽ,���DTR
� ���
script ��ʽ.Ż�‫ڶ‬
��˿�����ģʽ��: ,�

����
������������
������һ��˿��ϼ��� Dial-on-demand routing dialer in-band
����ָ��һ � � ˿ � Ϊ � � � ŷ � � � � � dialer-group group-number
����ָ��һ � � һ � 绰���� dialer string dial-string
��������ǰ���еȴ�ʱ�� dialer idle-time seconds
��������һ�����Ŀ�ĵ 绰����� dialer map protocol net-hop-address dialer-string
�����ʱ������Access-list����‫�ض‬Э�� dialer-list dialer-group list access-list-
number
������ dialer-list dialer-group protocol protocol-name {permitdenylist acce ss-
list-number}
��������dialer string��dialer map}��������ѡһ,dialer string����ֻ��һ � � 绰���
�ʱ��,��dialer map��һ��绰�����.
������������˵�����������"DDR Example"��ʵ��.
����
�������ò��ű���
�������ű����ṩ��һ�ֱ���,ʹ�õ�������������߳� ��ֹ���ʱ,��һ�����·,ʹʹ ������‫ת‬.

�������}�����:
��������߶ϵ�
��������������� ������ �
ʱʱʱʱʱʱ˶ �
��������Ķ�������:
�����������·�˿���������ı��‫ �˿ݶ‬backup interface interface-name
�������㲥�‫ ���ݸ‬backup load {enable-threshold never} {disable-load never}
�������������up��down����Ӧʱ�� backup delay {enable-delay never) {disable-delay
never}
��������: enable-threshold --- ��ʾ����߳� ����ܴ����İ ֱ‫�ٷ‬,�������·
����disable-load --- ��ʾ���������‫ٷ�֮���پ‬ͶϿ�������· .
����enable-delay --- ��ʾ����߶Ͽ��ʱʱ���,�������·.
����disable-delay --- ��ʾ����������»ָ��ʱʱ���,�Ͽ�������·.
����2�� ����� � м�
������м���һ����ANSI��CCITT��ʱ����Э��,����Ϊ�ֽ�ͻ ����ҵ ���� ( ��L A N ��l ��S N A ҵ
��)�ṩ��������ܼ۸ �����.��м��ǿͻ����豸(CPE),����·�����ǰ�˴�����,��һ����Զ��CPE������
‫ݵ‬Ĺ���������һ�ֽӿ�Э��.�������¼����‫�ص‬:��ʱ�ӣ�ʱ����ָһ � � � � � ���������� 㲥� Զ���� û��
豸��
�õ�ʱ��.������ʱ�����ʱ,���ܻ��½�;����������Э��(��SNA��DECnet),����������� ͺ� � � � ȴ �
Ӧ���Э��(��Novell IPX),�Լ����öö���ʽ��Ӧ��.�ɿ��ԣ��
‫�ڸ‬ʱ������,������������Ŀɿ��Ա 仯��仯,�ɿ��Ժ�,��ʱ�ȴ��
�� Խ��, ���� �ͻ ������. ��͵ �j ����ɲ ² ����������� 绷����,��SNA
‫�ط‬
CICS,����Ҫ��ʱ�ӵ�,������Ҫ�ɲ²���.��ƽ�ԡ�Ciscos Frame RelayĿǰ֧��IP,DECnet,AppleTalk,
Xerox Network Service(XNS), Novell IPX, International Organization for Standards
(ISO) Connectionless Network Service (CLNS), Banyan VINES, �� transparent
bridging����� ���.
����������мм Ĺ����:
������һ��˿�������� мм ��
�������嶯�� ��� ĵ �ַӳ��
��������LMI
����������мм ��� � � � ·
������мм
���
���������м�l��
������һ��˿�������� мм ��
����ijһ�˿���������� мм ������� м�Э��,��global����ģʽ��:
������ �� �� ��
����ָ���� ���Ķ ʱ мм˿‫�����˿�����ڲ‬ģʽ interface serial number
����ָ�� ��� ��ʽ encapsulation frame-relay [ietf]
ʱ мм
����Cisco����� ��RFC
1490�Ĵ��ʽһ��,��Ӧ�� ���
�� ҵʹ��IJƷ���� ��
�� �.���������� ·����l��ʱ,����IETF���.
�������嶯�� ��� ĵ �ַӳ��
���������ַ ӳ��
��������� ַ ӳ������� мм�‫ת‬ARPЭ�㲥�
ķ �������
һ � � ϣ � � � ĵ �ַ(next hopprotocol address)
(������� DLCI),����Ӧ��‫ת‬ARPЭ������ʱ,������address-to-
DLCIӳ�����,���ű����4�ṩ��һ��ϣ���ĵ�ַ���ȥ��DLCI��ַ��‫ת‬ARPЭ Ǵ � �ַӳ�㲥�
��Ĭ���Ǵ �Ǵ,ʶ��
�Ҫ���κ�����.
��������� ַ ӳ��
����һ�����ַӳ������Ϊ��ָ����һ � � ϣ � � � ĵ �ַ(next hop protocol
address)��DLCI�Ķ�Ӧ��ϵ.��ָ���˾� � ַ ӳ��ʱ,��‫ת‬ARPЭ���Զ��‫�ر‬.

������b��� ��ַӳ��������:
������ �� �� ��
��������һ��˿‫��ڻ‬Ӷ˿‫�ڵ‬DLCI��ַ frame-relay interface-dlci dlci
����ָ��һ � � next hop protocol address � � D LCI ʱ� �� Ӧ frame-relay map protocol
protocol-address dlci [broadcast] [ietf] [cisco]��Ӧ��,Ҫ����protocolֵ֧ ��Э��:
����IP---ip
����DECnet---decnet
����
����AppleTalk---appletalk
����XNS---xns
����Novell IPX---ipx
����VINES---vines
����ISO CLNS---clns
����������һ���һ��,����interface-dlci����,����һ��Զ�����趨 frame-relay map
һϵ�е�dlci��ip address �� Ӧ��.
��������LMII
������Cisco IOS Release 11.2�汾����,ֱ֧ ��������ӿ�LMI(Local
managementInterface)�Զ�ʶ��,���ɽ�����˿‫�ھ‬LMI������.��Ȼ,����Ҳ������ȷ����
����LMI����.
������ �� �� ��
������b·�����keepaliveʱ�� frame-relay keepalive number
��������N391�ļ��ʱ�� frame-relay lmi-n391-dte keep-exchanges
����������мм ��� � � � ·
����Ŀǰ,������� м�����56K��45M����,��м�����}��‫�ڵ‬佨 b����l�ӵ�,������·.
������һ������˿�������SVCs
�������Ӷ˿�������SVCs
������һ����� мм ˿�������SVC����
������
������ �� �� ��
����ָ������˿� interface serial number
����������Ҫ,����IP��ַ ip address ip-address mask
���������˿�������� � мм �� encapsulation frame-relay
���������˿��ϼ������ м�SVC frame-relay svc
������
�������Ӷ˿�������SVCs
������
������ �� �� ��
��������˿��� ָ ��һ � � � Ӷ ˿ � interface serial number.subinterface-number {multipoint
point-to-point}
����������Ҫ,����IP��ַ ip address ip-address mask
������������"Configure subinterface Example"������.
������
������мм
���
������
������һ����� м���Ҫ�� �IPҪ� �����һ� ���� м���l,��Ҫ�õ���� мм �� � . � � IP � �
����������мм ʹ.������ ȥ
����ʵ����� мм�� � , � � � � � � � � :
������ �� �� ��
������·������Ϊ��мм �� � � � frame-relay switching
������·���������þ���� · frame-relay route in-dlci out-interface out-dlci
�����������㲥� �frame-relay intf-type {dte dce nni}
���������"Frame Relay Switching Example"����ʵ��.
���������м�l��
������EXECģʽ��:
������ �� �� ��
������ʾ��м�DLCI��LMI��Ϣ show interface serial number
������ʾLMI‫ ״״‬show frame-relay lmi [type number]
������ʾPVC‫ ״״‬show frame-relay pvc [type number [dlci]]
������ʾ���þ����· show frame-relay route
������ʾ��мм���‫ ״״‬show frame-relay traffic
����3������DDN
����DDN(Digital Data
Network)��һ���� Ե�� �
ʹ ��
����� ����
ʱʱt·.ʱ �֧��� PPP,SLIP,HDLC��SDLC��t·�� �� �Э���. ��ӦIP,
Novell IPX, Bridging,CLNS,AppleTalk,DECnet�ȶ����ϲ�Э������������.
������
����������
���� ѹ����
����E1�˿�����
����������
������
������ �� �� ��
��������ָ���˿� interface serial number
��������ö˿�IP��ַ ip address ip-address mask
����ָ���ö˿‫��ڴ‬ʽ encapsulation {PPP HDLC }
������
���� ѹ����
������
ʱʱʱ ‫����ڴ‬д��������Dz�ѹ���,���Ӧ��‫�ݰ‬ͷ��ÿ �δ ���ʱ ���, ��ÿ �ν ��˷ Ѵ��. Ŀ ǰ ֵ֧ ��
���� �����
ѹ����P P P,Frame Relay, X.25, TCP �ȵ�.
������
����Cisco��ѹ���� � ������ɵ�
, ���Ӱ��ϵ ����
�. �ͳʽ��� ·����CPUռ�ó���65%,�Ͳ�Ҫʹ��ѹ��.(show
process cpu EXEC����鿴��ǰCPUʹ�����)
������
������ �� �� ��
����TCP����ͷѹ�� ip tcp head-compression [passive]
����X.25ѹ�� X25 compress
����PPPѹ�� ppp compress [predictirstac]
������
����‫ע‬: "passive"��ʾֻ���������ѹ��ʱ,�����ѹ��.
������
����E1�˿�����
������
������Cisco 4500,4700,7000��7500ϵ�������֧��� E1(2.048Mbps)���ʵĽӿ�.ÿһ��E1�˿
‫��ڿ‬ʱ� ʱ϶ �ֳ�30·64K�����·��2·�ź���·.��30��64K�����·ÿһ·����Ե���һ��64K��‫��ר‬.
������
������ �� �� ��
����������ģʽ��,����Controller E1 controller e1 slot/port
��������line code linecode {ami hdb3}
���������� ַ�framing {crc4 no-crc4}
��������E1�� channel-group number timeslots range [speed {48 56 64}]
����ָ������������һ � � channel-group � � interface serial slot/port:channel-
����‫ע‬:slot/port----�����7000��7500ϵ�е�,����ֲ‫ۿں‬źͶ˿‫�ں‬.
����linecode----Ĭ����HDB3.
����framing----Ĭ����crc4,Ҫ����žֲ���ƥ��.
����channel-group----ÿ��E1���Էֳ�30��channel-group,��channel-
group��ʱ��۶�Ӧ��4.channel-group��0-30,timeslots��1-31.
����interface serial----�‫�����ڶ‬E1 channel-group��,���ǰ�group�����һ�����ʱʱʱ. ��
��������������"Channelized E1 Interface Example"ʵ��.
����4������X.25
������
����X.25����������¹���:
������ �� �� ��
��������X.25ģʽ encapsulation x25 [dtedce]
��������������·�� x25 htc max-vc-number
��������X.121��ַ x25 address x121-address
������bIP��ַ��X.121��ַ��Ӧ x25 map ip ip-address x121-addres [broadcast]
����htc----htc���������·��,��Ϊ���X.25�������ǴӸ ߵ��ͽ �b ���· ��, m ax- vc-
number���ܳ������������.
���������"X.25 Example"������ʵ��.
����5������HDLC:
����HDLC��CISCO·����ʹ�õ�ȱʡЭ�飬 һһ � � · � � � � � � δ ָ����‫װ‬Э��ʱĬ��ʹ��HDLC��‫��װ‬
����A.�����
�����˿�����:
�������� ����
��������HDLC��‫ װ‬encapsulation hdlc
��������DCE����·�‫ �ٶ‬clockrate speed
������λһ��Ӳ���ӿ� clear interface serial unit
������ʾ�ӿ�‫ ״״‬show interfaces serial
[unit] 1
����1:‫ע‬.���¸��һ����ʾCisco� o������‫������ ״״‬.
����
����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. ����:
�����������£�
����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. ����ʹ��E1��·ʵ�ֶ��64K ‫��ר‬l��.
�����������:
�������� ����
��������controller����ģʽ controller {t1 e1} number
����ѡ�������� framing {crc4 no-crc4}
����ѡ��line-code���� linecode {ami b8zs hdb3}
�� ������ʱ϶��ӳ��
������b� ʱ
� ʱʱʱʱʱʱʱʱʱʱʱʱʱ channel-group number timeslots range1
������ʾcontrollers�ӿ�‫ ״״‬show controllers e1 [slot/port]2
����1 :‫ע‬. ��t·ΪT1ʱ,channel-group���Ϊ0-23, Timeslot��Χ1-24; ��t·ΪE1ʱ, channel-
group���Ϊ0-30, Timeslot��Χ1-31.
����2.ʹ��show controllers e1�۲�controller‫״‬,‫���� ״‬Ϊ�����Ϊcrc4ʱcontrollers���‫״‬.
‫״‬
����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 Errored 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, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins,
����0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
������������ΪE1l��3��64K ‫��ר‬, ����ΪNO-CRC4,��ƽ��t·,·���������������:
����
����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������PPP:
����PPP(Point-to-Point Protocol)��SLIP(Serial Line IP protocol)�ļ����
ߣ����ṩ�˿�������� 첽��·ʵ��·����·����(router-to-router)���������(host-to-
network)��l�ӡ�
����
����CHAP(Challenge Handshake Authentication Protocol)��PAP(Password Authentication
Protocol) (PAP) � � � � � � � � � �P P P � �
‫�װ‬Ĵ�����·���ṩ��ȫ����֤��� ʹ��CHAP��PAP�� �֤ ,ÿ��·���� ʶ
������
4 ��� ���Է�ֹδ����Ȩ�ķ��ʡ�
����
����CHAP��PAP��RFC 1334���о����˵��
����
����A. �����
�����˿�����
�������� ����
��������PPP��‫ װ‬encapsulation ppp1
����������֤���� ppp authentication {chap chap pap pap chap pap} [if-needed] [list-
name default] [callin]
����ָ������ username name password secret
��������DCE����·�‫ �ٶ‬clockrate speed
����1��‫��ע‬Ҫʹ��CHAP/PAP����ʹ��PPP��‫�������װ‬Cisco·����l��ʱ��һ�����PPP��‫�����װ‬
��·����һ�㲻֧��Cisco��HDLC��‫װ‬Э�顣
����2. ����
����·����Router1��Router2��S0�‫ھ��װ‬PPPЭ�㲥� ��
�CHAP����֤����� Router1��Ӧ��bһ���û����ԶԶ�·�����������Ϊ�û����û���ӦΪrouter2�� ʱ�� �� �
ʱʱʱRout
er2��Ӧ��bһ���û����ԶԶ�·�����������Ϊ�û����û���ӦΪrouter1�������}�û���password������ �� ���
ʱʱ

�����������£�
����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������������ʵ��
������
����DDR Example
����Dial Backup Example
����Configure subinterface Example
����Frame Relay Switching Example
����Channelized E1 Interface Example
����X.25 Example
����DDR 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)�
)��
V.25 bits��ʽ
������
����Configuration for Router

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.81 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)�������ű���
������
����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 address 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
������
����������7500ϵ��·����,E1�ӿ�(MIP��)�4��‫����ڲ‬.һ��channel-
group�ɶ�Ӧ���ʱ���,������serial4/0:1��5*64Kbps������.��
����Configuration for Router:
������
����controller E1 0
����framing 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.25 Example
������
����������X.25ʱ,Ϊ����·�ɽ�������ĺ��,��� �þ ,ʹ �·��.��һ�Զ������,
��������һ����������subinterface����.
������
����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
����·��Э������
����һ��RIPЭ��
����RIP(Routing information Protocol)��Ӧ�ý��硢 ʹ�ý��ձ���‫����ڲ‬Э��(Interior Gateway
Protocol,���IGP)��������С������� ʱʱʱʱʱ
��
� 磬�ǵ��͵ľ����� (distance-vector)Э�顣

�ĵ���RFC1058��RFC1723��
����RIPʹ P��㲥 UDP����4����·���� Ϣ ��ÿ30� 뷢�
�һ � � · � � � � Ϣ � � � ¡ � R I P � ṩ � � Ծ � � � � ( h o p count) � � Ϊ � ߶�4��·�ɾ��룬�
�Ծ������һ����Ŀ������뾭���·�������Ŀ�����㲥��Ŀ��������� ж
‫��ٻ‬
� ����·�������Ծ���������� �RIP� �֧�
�Ϊ} ��·���ǵȾ���
� �����
� Ϊ15������Դ��
ġ�RIP�� Ŀ������
�Ҫ��������·�������ĿΪ15������16��ʾ���ɴ
����1. �����
�������� ����
����ָ��ʹ��RIPЭ�� router rip
����ָ��RIP�汾 version {12}1
����ָ�����·������l������ network network
����1��‫ע‬.Cisco��RIP�汾 2֧���֤ �����Կ����·�ɻ��‫(��·��������ܡ‬CIDR)�ͱ 㲥� ������
�(VLSMs)
����2. ����
����Router1:
����
����router rip
����version 2
����network 192.200.10.0
����network 192.20.10.0
������
������‫������ص‬
����show ip protocol
����show ip route
����
��������IGRP��
����IGRP (Interior Gateway Routing Protocol)��һ�ֶ�������·��Э�㲥� ��
�Cisco��˾��ʮ���������ơ�ʹ������û����ó߶ȣ���(�ӳ ١�����ɿ��Ժʱʱʱ ��‫�ء‬
����ȱʡ����£�IGRPÿ90�뷢��һ � � · � ɸ � � ¹ 㲥���
�3�����������(��270��)��û�д�·���еĵ�һ��·������յ����£�� ʱ ʱ�·ɲ��ɷ��ʡ��� 7�������� 630 � ‫ڼ‬
���Cisco IOS ����·�ɱ������·�ɡ�
����1. �����
�������� ����
����ָ��ʹ��RIPЭ�� router igrp autonomous-system1
����ָ�����·������l������ network network
����ָ�����·�������‫ڵ‬Ľ ‫ ַ��ڵ‬neighbor ip-address
����1��‫��ע‬autonomous-system�������⽨b������ʵ�������ϵ�autonomous-
system,������IGRP��·����Ҫ�뽻��·�ɸ�����Ϣ��autonomous-
����2������
����
����Router1:
����router igrp 200
����network 192.200.10.0
����network 192.20.10.0
����!
����
������OSPF��
����OSPF(Open Shortest Path First)��һ���‫����ڲ‬Э��(Interior Gateway
Protocol,���IGP)�������‫�ڵ‬һ � � � � ϵ ͳ (autonomous system,AS) �
‫�·��ھ‬ɡ���RIP��ԣ�OSPF��t·‫��·״״‬Э�㲥� RIP � �Ǿ�����·��Э�顣
����t·��·����ӿ ‫���ڵ‬һ � � ˵ � � � � � � � O S P F Ҳ � � Ϊ � ӿ � ‫��·״״‬Э�顣 OSPF��·������� � ������ӿ
4‫��ڵ�״״‬bt·‫״״��ݿ‬⣬������· ����ÿ ��O S P F· ����ʹ ����Щ ���· ������· �ɱ�
����1�������
����ȫ������ ���� ����
����ָ��ʹ��OSPFЭ�� router ospf process-id1
����ָ�����·������l������ network address wildcard-mask area area-id2
����ָ�����·�������‫ڵ‬Ľ ‫ ַ��ڵ‬neighbor ip-address
����1��‫��ע‬OSPF·�ɽ��process-id����ָ����Χ��1-
65535�����OSPF���
� ���� � � · ��������� ã�����ò���������OSPF�����Ҫ���OSPF�� ‫�ݿ‬ĸ��������
һ��
����ж�����·���㲥�ĸ�����process-idֻ��·�����‫������ڲ‬ã���· ������process-id���Բ���
ʱʱ
��
��
����2��wildcard-mask ����������ķ���, ��������ID area-id��0-4294967295�
‫�ڵ‬ʮ������Ҳ�����Ǵ���IP��ַ��ʽ��x.x.x.x������������IDΪ0��0.0.0.0

ʱ Ϊ���� �� �� ���������
�· ���� �������
��
ʹ �� ·��� Ϣ��
����2�������þ���:
����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
����!
������‫������ص‬
����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. ʹ������� ֤�
����Ϊ�˰ �ȫ���ԭ����ǿ������ � ͬ � �����·��������������
OSPF �֤�� Ĺ��‫�ֻ�ܣ‬о��������֤�� ��һ�����·�
�����ܻ��� � ��·����Ϣ��
������Ĭ�������OSPF��ʹ��������֤�� � � ��} �
ַ �������������� ��� � ����ı������֤��
ʱ ʱ ʱ ֤‫ܣ‬
���ϢժҪ(md5) ���� �֤������ ı������֤���� ͵������֤����� Ϊ���ı�����ʱ� �� �����ȷ�����
��Բ���ȫ��������ʹ�á�����ϢժҪ(md5)�����֤�� ‫ �����֤��������ڴ‬ǰ��Ҫ�Կ�����м��‫�����ܣ‬
һ � 㲥� ʹ�� ô��ַ������������ �� ʱ ʱ ֤�
����ʹ������� ֤ � ʱ�����������е�·����ӿ ‫������ ����ʹ���ڱ‬ʱʱʱʱʱʱ
��
� � �֤������� Ϊ������
���֤��������� ·����ӿ�����ģʽ�£�Ϊ�����ÿ��·����ӿ����ÿ��
�������� ����
����ָ������� ֤ �area area-id authentication [message-digest]
����ʹ�ô��ı������ �֤ ip ospf authentication-key password
����ʹ����ϢժҪ(md5)����� �֤ ip ospf message-digest-key keyid md5 key
���������о�}����֤���� õ�ʾ��ʾ�������ֲ����� ַ ���价������
�ϻ����þ ������ � �ֻ����Router1��Router2������0��ʹ���������֤�� Ĺ��‫�ܡ‬:
����1.ʹ�ô��ı������ �֤
����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
����!
������2.��ϢժҪ(md5)�����֤���
����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.255.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
����!
������‫������ص‬
����debug ip ospf adj
����debug ip ospf events
����
�����ġ����·���·��
������ʵ�ʹ����У����ǻ���ʹ�ö��IP·��Э������硣 Ϊ��ʹ���������
‫��·��ع�������ڶ‬Э�������гɹ���·���‫��ٷ‬䡣
���������о���OSPF��RIPʱ� ���� ·���·�ɵ����÷���
����Router1��Serial 0�˿‫�ں‬Router2��Serial 0�˿�����OSPF����Router1��Ethernet
0�˿�����RIP
2��Router3����RIP2��Router2��ָ��Router4��192.168.2.0/24��ľ���ɣ�
· Router4ʹ��Ĭ�Ͼ���ɡ��
·
�Ҫ��Router1��Router3ʱ� ���� ·���OSPF��RIP·�ɣ���Router2�����·��侲·� �ɺ �ֱl��·�ɡ�
�����������㲥� �����
�������� ����
�������·���
ֱ l��·�� redistribute connected
�������·��侲·�� � redistribute static
�������·���ospf·�� redistribute ospf process-id metric metric-value
�������·���rip·�� 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.0 192.168.0.2
����!
����
�����塢 IPXЭ������
����IPXЭ����IPЭ����}�ֲ��������Э� 㲥� ��ǵ�·��Э��Ҳ��һ��IPX��·��Э�鲻�
�IP
ϼ ��·��Э������ḻ������������4�Ƚϼ���

ʱʱIPXЭ �������������ʱ��� �ָ����‫��װ‬ʽ��
����1�� �����
������IPX·�� ipx routing
��������IPX���缰�����‫��װ‬ʽ ipx network network [encapsulation encapsulation-type]1
����ָ��·��Э�飬 Ĭ��ΪRIP ipx router {eigrp autonomous-system-number nlsp [tag] rip}
����1��‫ע‬.network ��Χ��1 ��FFFFFFFD.
����IPX��‫�����װ‬б�
�����ӿ����� ��‫ ����װ‬IPX�����
����Ethernet novell-ether (Ĭ��) arpa sap snap Ethernet_802.3 Ethernet_II
Ethernet_802.2 Ethernet_Snap
����Token Ring sap (Ĭ��) snap Token-Ring Token-Ring_Snap
����FDDI snap (Ĭ��) sap novell-fddi Fddi_Snap Fddi_802.2 Fddi_Raw
�����‫����ڴ‬У�WAN��IPX����Ϊ3a00,Router1��l�ӵľ�����IPX�����Ϊ2a00,�‫�������˾ڴ‬һNovell �
�����IPX�����Ҳ��2a00, ·����ӿ
‫�ڵ‬IPX
ʹ ����ű������� �
� һ����� ��
Novell ���������� õ�IPX������� �
��·����� �����
�SAP4�� �b � ���� ķ
����Լ��������ַ����ÿ60�뷢��һ � � � Լ � � � S A P � �
����Router1:
����
����ipx routing
����interface ethernet 0
����ipx network 2a00 encapsulation sap
����!
����interface serial 0
����ipx network 3a00
����!
����ipx router eigrp 10
����network 3a00
����network 2a00
����!
����Router2:
����
����ipx routing
����interface ethernet 0
����ipx network 2b00 encapsulation sap
����!
����interface serial 0
����ipx network 3a00
����!
����ipx router eigrp 10
����network 2b00
����network 3a00
����!
������‫������ص‬
����debug ipx packet
����debug ipx routing
����debug ipx sap
����debug ipx spoof
����debug ipx spx
����show ipx eigrp interfaces
����show ipx eigrp neighbors
����show ipx eigrp topology
����show ipx interface
����show ipx route
����show ipx servers
����show ipx spx-spoof

You might also like