拓扑图:
1.两个区域:area0和area1
2.route ID规划
(1)R1:1.1.1.1
(2)R2:2.2.2.2
(3)R3:3.3.3.3
(4)R4:4.4.4.4
3.目的:验证最终两台客户机之间能否互通
具体操作:
一、给路由器不同端口配置相应IP地址
1.路由器R1
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int f1/0
R1(config-if)#ip add 192.168.10.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#
*Mar 1 00:08:25.447: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up
*Mar 1 00:08:26.447: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
R1(config-if)#int f0/0
R1(config-if)#ip add 192.168.20.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#
*Mar 1 00:09:07.287: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 00:09:08.287: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1(config-if)#int f0/1
R1(config-if)#ip add 192.168.50.2 255.255.255.0
R1(config-if)#no shut
R1(config-if)#
*Mar 1 00:09:33.911: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up
*Mar 1 00:09:34.911: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R1(config-if)#do show ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.20.1 YES manual up up
FastEthernet0/1 192.168.50.2 YES manual up up
FastEthernet1/0 192.168.10.1 YES manual up up
R1(config-if)#
2.路由器R2
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int f0/0
R2(config-if)#ip add 192.168.20.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#
*Mar 1 00:10:40.915: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 00:10:41.915: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R2(config-if)#int f0/1
R2(config-if)#ip add 192.168.30.1 255.255.255.0
R2(config-if)#no shut
R2(config-if)#
*Mar 1 00:11:04.627: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up
*Mar 1 00:11:05.627: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R2(config-if)#do show ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.20.2 YES manual up up
FastEthernet0/1 192.168.30.1 YES manual up up
R2(config-if)#
3..路由器R3
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#int f0/0
R3(config-if)#ip add 192.168.30.2 255.255.255.0
R3(config-if)#no shut
R3(config-if)#
*Mar 1 00:12:01.899: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar