Professional Documents
Culture Documents
OSPF路由过滤
OSPF路由过滤
���� �С �
һ� � � � � � I
�ַ P �
Router(config)#hostname R1
R1(config)#interface loopback 0
R1(config-if)#ip address 1.1.1.1 255.255.255.0
R1(config)#interface ethernet 0/0
R1(config-if)#ip address 12.1.1.1 255.255.255.0
R1(config-if)#no shutdown
Router(config)#hostname R2
R2(config)#interface loopback 0
R2(config-if)#ip address 2.2.2.2 255.255.255.0
R2(config)#interface ethernet 0/0
R2(config-if)#ip address 12.1.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#interface ethernet 0/1
R2(config-if)#ip address 23.1.1.2 255.255.255.0
R2(config-if)#no shutdown
Router(config)#hostname R3
R3(config)#interface loopback 0
R3(config-if)#ip address 3.3.3.3 255.255.255.0
R3(config)#interface ethernet 0/0
R3(config-if)#ip address 23.1.1.3 255.255.255.0
R3(config-if)#no shutdown
R3(config)#interface ethernet 0/1
R3(config-if)#ip address 34.1.1.3 255.255.255.0
R3(config-if)#no shutdown
Router(config)#hostname R4
R4(config)#interface loopback 0
R4(config-if)#ip address 4.4.4.4 255.255.255.0
R4(config)#interface loopback 1
R4(config-if)#ip address 4.4.5.4 255.255.255.0
R4(config)#interface loopback 2
R4(config-if)#ip address 4.4.6.4 255.255.255.0
R4(config)#interface ethernet 0/0
R4(config-if)#ip address 34.1.1.4 255.255.255.0
R4(config-if)#no shutdown
R4(config)#interface ethernet 0/1
R4(config-if)#ip address 45.1.1.4 255.255.255.0
R4(config-if)#no shutdown
Router(config)#hostname R5
R5(config)#interface loopback 0
R5(config-if)#ip address 5.5.5.5 255.255.255.0
R5(config)#interface loopback 1
R5(config-if)#ip address 5.5.6.5 255.255.255.0
R5(config)#interface loopback 2
R5(config-if)#ip address 5.5.7.5 255.255.255.0
R5(config)#interface ethernet 0/0
R5(config-if)#ip address 45.1.1.5 255.255.255.0
R5(config-if)#no shutdown
��� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �
��� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �
� � � � � � � � O S P F � � � � � � · � ɣ � � � � � � ⲿ · ֲ��طɣ���OSPF100
E I GRP100
� �� � �
R1(config)#router ospf 100
R1(config-router)#network 1.1.1.1 0.0.0.0 area 1
R1(config-router)#network 12.1.1.1 0.0.0.0 area 1
LS age: 134
Options: (No TOS-capability, DC)
LS Type: Router Links
Link State ID: 1.1.1.1
Advertising Router: 1.1.1.1
LS Seq Number: 80000005
Checksum: 0xE405
Length: 48
Number of Links: 2