实验拓扑
201.1/24
|
202.1 R1 203.1
202.2 / \ 203.2
R2 R3
| |
192.167.1.1 192.167.1.2 VR=192.167.1.100 Client=192.168.1.3
R1上的配置:
Router(config)#hostname R1
R1(config)#no ip domain-lookup
R1(config)#ip classless
R1(config)#ip sub
R1(config)#ip subnet-zero
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface s2/0
R1(config-if)#ip address 201.0.0.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#
R1(config-if)#no shut
R1(config-if)#end
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface f0/0
R1(config-if)#ip address 202.0.0.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
R1(config-if)#end
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int f0/1
%Invalid interface type and number
R1(config)#int f0/1
%Invalid interface type and number
R1(config)#interface f1/0
R1(config-if)#ip address 203.0.0.1 255.255.255.0
R1(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
R1(config-if)#
R1#sh ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 202.0.0.1 YES manual up down
FastEthernet1/0 203.0.0.1 YES manual up down
Serial2/0 201.0.0.1 YES manual down down
Serial3/0 unassigned YES unset administratively down down
FastEthernet4/0 unassigned YES unset administratively down down
FastEthernet5/0 unassigned YES unset administratively down down
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#route ospf 100
R1(config-router)#network 201.0.0.1 0.0.0.0 area 0
R1(config-router)#network 202.0.0.0 0.0.0.255 area 0
R1(config-router)#network 203.0.0.0 0.0.0.255 area 0
R2的配置:
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no ip domain-lookup
Router(config)#ip classless
^
% Invalid input detected at '^' marker.
Router(config)#ip subnet-zero
^
% Invalid input detected at '^' marker.
Router(config)#int f0/0
Router(config-if)#ip address 202.0.0.2 255.255.255.0
Router(config-if)#no sh
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/1
Router(config-if)#ip address 192.16.1.1 255.255.255.0
Router(config-if)#no shutdown
Router#
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#route ospf 100
Router(config-router)#network 202.0.0.0 0.0.0.255 area 0
Router(config-router)#network 192.
00:17:47: %OSPF-5-ADJCHG: Process 100, Nbr 203.0.0.1 on FastEthernet0/0 from LOADING to FULL, Loading Done
^
% Invalid input detected at '^' marker.
Router(config-router)#network 192.167.1.0 0.0.0.255 area 0
Router(config-router)#end
Router#
R3的配置:
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R3
R3(config)#
R3(config)#no ip domain-lookup
R3(config)#ip classless
^
% Invalid input detected at '^' marker.
R3(config)#ip subnet-zero
^
% Invalid input detected at '^' marker.
R3(config)#int f0/0
R3(config-if)#ip address 203.0.0.2 255.255.255.0
R3(config-if)#no shut
R3(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R3(config-if)#
R3(config-if)#end
R3#
%SYS-5-CONFIG_I: Configured from console by console
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#int f0/1
R3(config-if)#ip address 192.167.1.2 255.255.255.0
R3(config-if)#no shut
R3(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R3(config-if)#end
R3#
%SYS-5-CONFIG_I: Configured from console by console
R3#
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#route ospf 100
R3(config-router)#network 203.0.0.0 0.0.0.255 area 0
R3(config-router)#network 192.167.0.0 0.0.0.255 area 0
00:22:18: %OSPF-5-ADJCHG: Process 100, Nbr 203.0.0.1 on FastEthernet0/0 from LOADING to FULL, Loading Done
R3(config-router)#network 192.167.1.0 0.0.0.255 area 0
R3(config-router)#
HSRP组1的配置:
R2上的配置:
本文出自 “技术成就梦想” 博客,谢绝转载!