You are on page 1of 6

һ �����ϸ ����ж �

AR29 ��loopback0�
�ַ �޷�����
AR28 ��loopback0� ĸ�ԭ������ΪAR29��AR28��� ‫��ڽ‬OSPF�‫ھ‬ӹ
�ַ �
�ϵ�Ľӿ‫ͬ���ڲ‬һ��㲥���У�
LSW6�����AR29��AR28�Ľӿ�VLAN���ִ���

�������Ϸ���

2.1 ���������� �֣����AR29��������loopback0�ӿ‫ڵ‬ĵ�ַΪԴ��ַ��ȥping


AR28��loopback0�ӿ‫ڵ‬ĵ�ַ�����Խ�����������ʾ��

<AR29>ping -a 10.5.1.29 10.5.1.28


PING 10.5.1.28: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out

--- 10.5.1.28 ping statistics ---


5 packet(s) transmitted
0 packet(s) received
100.00% packet loss

������������֪ȷʵ� � � ‫��˹ڴ‬ϣ�����AR29��AR28֮������OSPF·��Э�飬
������AR29�Ͻ�һ���鿴·�ɱ���ȷ���Ƿ����AR28��loopback0�ӿ ‫����·��ַ�ڵ‬Ϣ��

2.2 ��AR29�ϼ��·�ɱ����Ƿ���‫�ڵ‬AR28��loopback0�ӿ
‫�·��ַ�ڵ‬ɣ����������������ʾ��

<AR29>display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 11 Routes : 11

Destination/Mask Proto Pre Cost Flags NextHop Interface

10.5.1.29/32 Direct 0 0 D 127.0.0.1 LoopBack0


10.5.128.0/24 Direct 0 0 D 10.5.128.29 GigabitEthernet0
/0/0
10.5.128.29/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0
/0/0
10.5.128.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0
/0/0
10.5.233.0/24 Direct 0 0 D 10.5.233.29 GigabitEthernet0
/0/1
10.5.233.29/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0
/0/1
10.5.233.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0
/0/1
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0

����������֪AR29��û�е�AR28��loopback0�ӿ ‫�·��ַ�ڵ‬ɣ�������Ҫ���AR29��AR
28��OSPF�‫ھ‬ӹ�ϵ�Ƿ���

2.3 ��AR29�ϼ��OSPF�‫ھ‬ӹ�ϵ�Ƿ��������������ʾ��

<AR29>display ospf peer brief

OSPF Process 1 with Router ID 10.5.1.29


Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
----------------------------------------------------------------------------

��������֪AR29������0û����AR28 AR27���OSPF�
‫ھ‬ӹ�ϵ�����Գ��ж�OSPF���ô������һ����顣

2.4 ����AR27��AR28
AR29����ͬһ��OSPF���У����Կ���ͨ��AR27�IJ��Խ����ж�AR28�����Ƿ���ȷ���
��Լ���������£�

<AR27>display ospf peer b /*���AR27��OSPF�‫ھ‬ӹ�ϵ*/

OSPF Process 1 with Router ID 10.5.1.27


Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/0 10.5.1.28 Full
----------------------------------------------------------------------------

<AR27>display ip routing-table | in 10.5.1.28 /*�鿴


AR27�Ƿ���յ�AR28��loopback0·��*/
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 30 Routes : 30

Destination/Mask Proto Pre Cost Flags NextHop Interface

10.5.1.28/32 OSPF 10 1 D 10.5.128.28 GigabitEthernet0/0/0

����������֪AR27��AR28�����OSPF�‫ھ‬ӹ�ϵ������AR27�ܹ�ѧϰ��AR28��loopback
0��ַ��˵��AR28
ospf������ȷ����ʱ��Ҫ�Ա�AR27��AR29��OSPF�����Ƿ�һ����ж�AR29��OSPF�Ƿ
�������ȷ��

2.5 ��AR27/AR29�Ϸֱ���display ospf


brief��������Ա�AR29����ȷ������OSPF��

<AR27>display ospf brief /*�鿴 AR27 OSPF�������*/

OSPF Process 1 with Router ID 10.5.1.27


OSPF Protocol Information

RouterID: 10.5.1.27 Border Router:


......
Area: 0.0.0.0 (MPLS TE not enabled)
Authtype: MD5 Area flag: Normal
SPF scheduled Count: 8
ExChange/Loading Neighbors: 0
Router ID conflict state: Normal
Area interface up count: 3

Interface: 10.5.128.27 (GigabitEthernet0/0/0)


Cost: 1 State: DR Type: Broadcast MTU: 1500
Priority: 1
Designated Router: 10.5.128.27
Backup Designated Router: 10.5.128.28
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1

<AR29>display ospf brief /*�鿴 AR29 OSPF�������*/

OSPF Process 1 with Router ID 10.5.1.29


OSPF Protocol Information

RouterID: 10.5.1.29 Border Router: AREA AS NSSA


......
Area: 0.0.0.0 (MPLS TE not enabled)
Authtype: MD5 Area flag: Normal
SPF scheduled Count: 6
ExChange/Loading Neighbors: 0
Router ID conflict state: Normal
Area interface up count: 2

Interface: 10.5.128.29 (GigabitEthernet0/0/0)


Cost: 1 State: DR Type: Broadcast MTU: 1500
Priority: 1
Designated Router: 10.5.128.29
Backup Designated Router: 0.0.0.0
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1

Interface: 10.5.1.29 (LoopBack0)


Cost: 0 State: P-2-P Type: P2P MTU: 1500
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1

ͨ�����������Կ���AR29��OSPF������ȷ���Ұ�loopback0Ҳ����������0�У
�������Ҫ��һ�����OSPF�‫ھ‬ӽ���Ƿ�������������

2.6 ��AR29��ʹ��display ospf error interface�������Ƿ����OSPF�


‫ھ‬ӽ���Ĵ����ģ����Լ���������£�

<AR29>display ospf error interface g0/0/0

OSPF Process 1 with Router ID 10.5.1.29


OSPF error statistics

Interface: GigabitEthernet0/0/0 (10.5.128.29)


General packet errors:
0 : Bad version 0 : Bad checksum
0 : Bad area id 0 : Bad authentication type
0 : Bad authentication key 0 : Unknown neighbor
0 : Bad net segment 0 : Extern option mismatch
0 : Router id confusion

HELLO packet errors:


0 : Netmask mismatch 0 : Hello timer mismatch
0 : Dead timer mismatch 0 : Invalid Source Address

......

����������֪OSPF��û�н��յ��κδ�������Ϣ����Ϊֻ�����������ɴ�����һ
��OSPF�‫ھ‬ӹ�ϵ���������OSPF��ȫû�н��յ��κα��ġ�����OSPF�‫�ھ‬û��������
��Կ����ж�
OSPFû������յ��κα��ģ����ж�ΪAR29��AR28�û����OSPF������ַ��ͨ�����һ�
��жϡ�

2.7 ��AR29��������ping -a 10.5.128.29 10.5.128.28


���������ַ�Ƿ�ɴ��������
�£� Խ

<AR29>ping -a 10.5.128.29 10.5.128.28


PING 10.5.128.28: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out

--- 10.5.128.28 ping statistics ---


5 packet(s) transmitted
0 packet(s) received
100.00% packet loss

������������֪AR29��AR28֮����� ‫��ڽ‬OSPF�‫ھ‬ӹ�ϵ�����IP��ַ���ɴ��һ���ж϶
����Ƿ�ͨ��

2.8 ��AR29�ϼ��ARP�����Ƿ���AR28��IP-MAC��ӳ���ϵ�������������ʾ��

<AR29>display arp
IP ADDRESS MAC ADDRESS EXPIRE(M) TYPE INTERFACE VPN-INSTANCE
VLAN/CEVLAN PVC
------------------------------------------------------------------------------
10.5.128.29 00e0-fcc1-1b22 I - GE0/0/0
10.5.233.29 00e0-fcc1-1b23 I - GE0/0/1
------------------------------------------------------------------------------
Total:2 Dynamic:0 Static:0 Interface:2

����������֪AR29��ARP���в�û��AR28 10.5.128.28��ַ��IP-
MACӳ���ϵ�����Գ��ж�AR29���LSW6�Ľӿ�DOWN�����һ����顣

2.9 ��AR29�ϲ������display interface GigabitEthernet 0/0/0


����AR29���LSW6�Ľӿ��Ƿ�����Լ������������ʾ��

��һ��
<AR29>display interface GigabitEthernet 0/0/0
GigabitEthernet0/0/0 current state : UP
Line protocol current state : UP
......
Input: 790 packets, 94010 bytes
Unicast: 0, Multicast: 790
......

�‫���ڶ‬
<AR29>display interface GigabitEthernet 0/0/0
GigabitEthernet0/0/0 current state : UP
Line protocol current state : UP
......
Input: 804 packets, 95676 bytes
Unicast: 0, Multicast: 804
......

�������������Կ���AR29���LSW6�Ľӿ������Э��������ܹ����������е
��鲥������������Կ����ж϶˿���

���ۣ�����ϲ��Խ����Է��֣�� AR29��ospf������AR29��LSW6ֱ��Ľӿ���AR28
OSPF���������AR29��AR28��� ‫��ڽ‬OSPF�‫ھ‬ӹ�ϵ����㼰�����ַ���ɴ���Կ����жϹ��ϵ�
��ԭ��ΪAR29��AR28��� ‫��ڽ‬OSPF�‫ھ‬ӹ�ϵ��IP��ַ����ͬһ��㲥�
�LSW6���������AR29��AR28�Ľӿ�VLAN���ִ���

����ϴ���

3.1 LSW6 vlan���ִ���Ĺ��ϴ�������LSW6��ִ���������


display port vlan /*ȷ�����AR27 28
29�Ľӿ�vlan��һ�µ����*/
system-view /*����ϵͳ��ͼ*/
interface {���AR29�Ľӿ�ID} /*����ӿ���ͼ*/
port link-type access /*���ýӿ�Ϊaccessģʽ*/
port default vlan {��AR27 AR28һ�µ�vlanID}
/*�������AR29�Ľӿ�vlan��AR27 AR28һ��*/

ִ����������������AR29�ϲ�������������в��ԣ�
ping -a 10.5.128.29 10.5.128.28 /*AR29��AR28���
‫��ڽ‬OSPF�‫ھ‬ӹ�ϵ��IPV4��ַ���Ӧ�ÿɴ�*/
display ospf peer brief /*AR29��AR28��ospf�
‫ھ‬ӹ�ϵӦ�����*/
display ip routing-table | include 10.5.1.28
/*AR29�ܹ���ѧϰ��AR28��loopback0 IPV4��ַ*/
ping -a 10.5.1.29 10.5.1.28 /*AR29��loopback0
IPV4��ַ�ܹ���AR28��loopback0 IPV4��ַ��ͨ�����Ͻ��*/

3.2 ����߿����Թ���--LSW6��������MuxVlan������LSW6��ִ���������
display mux-vlan /*ȷ��������Muxvlan�Ľӿ�*/
system-view /*����ϵͳ��ͼ*/
interface {������muxvlan�Ľӿ�ID} /*����ӿ���ͼ*/
undo port mux-vlan enable /*����muxvlan����*/

ִ����������������AR29�ϲ�������������в��ԣ�
ping -a 10.5.128.29 10.5.128.28 /*AR29��AR28���
‫��ڽ‬OSPF�‫ھ‬ӹ�ϵ��IPV4��ַ���Ӧ�ÿɴ�*/
display ospf peer brief /*AR29��AR28��ospf�
‫ھ‬ӹ�ϵӦ�����*/
display ip routing-table | include 10.5.1.28
/*AR29�ܹ���ѧϰ��AR28��loopback0 IPV4��ַ*/
ping -a 10.5.1.29 10.5.1.28 /*AR29��loopback0
IPV4��ַ�ܹ���AR28��loopback0 IPV4��ַ��ͨ�����Ͻ��*/

3.3����߿����Թ���--LSW6��AR28�������˹��˲���������AR28 LSW6�豸��ִ���������
display traffic-filter applied-record
/*��������ACL�Ľӿ�*/
display traffic-policy applied-record /*��������traffic-
policy�Ľӿ�*/
system-view /*����ϵͳ��ͼ*/
interface {������‫ؽ‬ӿ�} /*������‫ؽ‬ӿ‫ڵ‬Ľӿ���ͼ*/
undo traffic-filter inbound/outbound /*ɾ�����*/
undo traffic-filter inbound/outbound /*ɾ�����*/

ִ����������������AR29�ϲ�������������в��ԣ�
ping -a 10.5.128.29 10.5.128.28 /*AR29��AR28���
‫��ڽ‬OSPF�‫ھ‬ӹ�ϵ��IPV4��ַ���Ӧ�ÿɴ�*/
display ospf peer brief /*AR29��AR28��ospf�
‫ھ‬ӹ�ϵӦ�����*/
display ip routing-table | include 10.5.1.28
/*AR29�ܹ���ѧϰ��AR28��loopback0 IPV4��ַ*/
ping -a 10.5.1.29 10.5.1.28 /*AR29��loopback0
IPV4��ַ�ܹ���AR28��loopback0 IPV4��ַ��ͨ�����Ͻ��*/

3.4 ���ִ����������޷�������
� ⣬����Ҫ�û��ṩ������豸�����
�Ϣ������Dzһ�߹
���ʦ�����û��ֳ������ֳ����ϣ�ͬʱ����Ϊ400������������Ϊ‫�ר‬ҵ�Э��лл��

You might also like