根据需求2、3,对IP地址192.168.1.0/24进行子网划分 ,同时为r1-r6配置IP
根据需求4,为r3配置DHCP
[r3]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[r3]ip pool ch
Info: It's successful to create an IP address pool.
[r3-ip-pool-ch]network 192.168.1.96 mask 27
[r3-ip-pool-ch]gateway-list 192.168.1.97
[r3-ip-pool-ch]dns-list 8.8.8.8
[r3]interface g0/0/2
[r3-GigabitEthernet0/0/2]dhcp select global
为全网可达进行静态配置,为了减少路由条目优先进行缺省路由配置,在r1-r4上配置黑洞路由防止成环
根据需求6、7配置
[r5]acl 2000
[r5-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r5]int g0/0/1
[r5-GigabitEthernet0/0/1]nat outbound 2000
[r1]aaa
[r1-aaa]local-user chen privilege level 15 password cipher 123456
Info: Add a new user.
[r1-aaa]local-user chen service-type telnet
[r1]user-interface vty 0 4
[r1-ui-vty0-4]authentication-mode aaa
[r5]int g0/0/1
[r5-GigabitEthernet0/0/1]nat server protocol tcp global current-interface telne
t inside 192.168.1.1 23
Warning:The port 23 is well-known port. If you continue it may cause function fa
ilure.
Are you sure to continue?[Y/N]:y