要求:
1、R6为ISP,接口IP地址均为公有地址,该设备只能配置IP地址,之后不能再对其进行任何配置;
2、R1-R5为局域网,私有IP地址192.168.1.0/24,请合理分配;
3、R1、R2、R4,各有两个环回IP地址;R5,R6各有一个环回地址;所有路由器上环回均代表连接用户的接口;
4、R3下面的两台PC通过DHCP自动获取IP地址;
5、选路最佳,路由表尽量小,避免环路;
6、R1-R5均可以访问R6的环回;
7、R6 telnet R5的公有地址时,实际登录到R1上;
8、R4与R5正常通过1000M链路,故障时通过100m链路;
实验思路:
1.根据网段数并且简化路由再划分IP
如图中划分出:路由器对应接口的网段
2.给R3的路由器配置DHCP服务,给旗下网段
3.R1-R5给R6的环回的配置路由表
4.在R5上做NAT
5.修改R5和R4的接口线路的优先级
6.R6的Telnet
实验步骤:
1.给每个路由起命名并且配置IP
3.配置环回接口
余下的路由同理配置,并使用display ip interface brief 指令查看接口IP的地址信息
4.配置静态路由
余下同理
5.缺省路由
余下同理
6.查看是否可以ping通
7.百兆口配IP
R5
8.访问R6环回
R5配置easy IP:
[R5]acl 2000
[R5-acl-basic-2000]rule 10 permit source 192.168.1.0 0.0.255.255
[R5-acl-basic-2000]int g 0/0/1
[R5-GigabitEthernet0/0/1]nat outbound 2000
pingR6环回
9.配置DHCP服务器
[R3]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[R3]ip pool aa
Info:It's successful to create an IP address pool.
[R3-ip-pool-aa]network 192.168.1.96 mask 27
[R3-ip-pool-aa]gateway-list 192.168.1.97
[R3-ip-pool-aa]dns-list 114.114.114.114
[R3-ip-pool-aa]int g 0/0/2
[R3-GigabitEthernet0/0/2]dhcp select global
10.配置telnet
R1配置:
[R1]aaa
[R1-aaa]local-user admin privilege level 15 password cipher 123456
[R1-aaa]local-user admin service-type telnet
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode aaa
R5:
[R5-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23 inside 192.168.1.1 23
Warning:The port 23 is well-known port. If you continue it may cause function failure.
Are you sure to continue?[Y/N]:y
R6验证:
<R6>telnet 12.0.0.2
Trying 12.0.0.2 ...
Press CTRL+K to abort
Connected to 12.0.0.2 ...
Login authentication
Username:admin
Password:
Info: The max number of VTY users is 10, and the number of current VTY users on line is 1.
The current login time is 2024-03-18 22:16:39.
<R1>
<R1>q
<R6>