一、拓扑图及需求
需求:
1、通过DHCP服务,给PC4和PC5分配IP地址、网关、掩码、DNS服务器1P地址
2、C1ient-1要求手工配置IP地址,为192.168;1:1,可以通过该设备使用域名成功访问HTTP服务器
3、te1net膏户端可以远程登录telnet服务器进行设备管理,并成功修改telnet服务器的名称为123
telnet设备登录的账导密码为admin/admin
4、要求DHCP服旁器需要排除被手工配置的IP地址;并修改租期时间为1小时;
5、最终实现每台终端都可以相互通讯(ping成功)
6、整个拓扑图使用192.168.1.0/24网段进行分配
二、需求分析
1.基于192.168.1.0/24划分两个网段
2.配所有手工配置的IP地址
3.配DHCP:IP、网关、掩码、DNS、排除 修改租期
4.通过域名访问HTTP服务器
5.配tenlnet
6.测试
三、配置过程
1.划分网段
192.168.1.0/24
192.168.1.0 0000000—192.168.1.0/25
192.168.1.0 0000000—192.168.1.0/25
192.168.1.1 1111111—192.168.1.127/25
192.168.1.1 0000000—192.168.1.128/25
192.168.1.1 0000000—192.168.1.128/25
192.168.1.1 1111111—192.168.1.255/25
255.255.255.1 0000000—255.255.255.128
2.配IP
[DHCP Server-GigabitEthernet0/0/0]ip address 192.168.1.100 25
[DHCP Server-GigabitEthernet0/0/1]ip address 192.168.1.200 25
[Telnet Client-GigabitEthernet0/0/0]ip address 192.168.1.2 25
[123-GigabitEthernet0/0/0]ip address 192.168.1.131 25
3.配GHCP
// An highlighted block
[DHCP Server]dhcp enable
[DHCP Server]ip pool aa
[DHCP Server-ip-pool-aa]netbios-type
[DHCP Server-ip-pool-aa]network 192.168.1.0 mask 25
[DHCP Server-ip-pool-aa]gateway-list 192.168.1.100
[DHCP Server-ip-pool-aa]dns-list 192.168.1.129
[DHCP Server-ip-pool-aa]excluded-ip-address 192.168.1.1 192.168.1.2
[DHCP Server-ip-pool-aa]lease day 0 hour 1 minute 0
[DHCP Server-ip-pool-aa]q
[DHCP Server]info-center
[DHCP Server]interface GigabitEthernet 0/0/0
[DHCP Server-GigabitEthernet0/0/0]dhcp select global
[DHCP Server]ip pool bb
[DHCP Server-ip-pool-bb]netbios-type
[DHCP Server-ip-pool-bb]network 192.168.1.128 mask 25
[DHCP Server-ip-pool-bb]gateway-list 192.168.1.129
[DHCP Server-ip-pool-bb]dns-list 192.168.1.129
[DHCP Server-ip-pool-bb]excluded-ip-address 192.168.1.129 192.168.1.131
[DHCP Server-ip-pool-bb]lease day 0 hour 1 minute 0
[DHCP Server-GigabitEthernet0/0/1]dhcp select global
4.通过域名访问HTTP服务器
5.配置Telnet
// An highlighted block
[Telnet Client]ip route-static 0.0.0.0 0 192.168.1.100
[123]ip route-static 0.0.0.0 0 192.168.1.200
// An highlighted block
[123]ip route-static 0.0.0.0 0 192.168.1.200
[123]telnet server enable
Error: TELNET server has been enabled
[123]user-interface vty 0 4
[123-ui-vty0-4]authentication-mode aaa
[123-ui-vty0-4]q
[123]aaa
[123-aaa]local-user admin password cipher admin ?
access-limit Set access limit of user(s)
ftp-directory Set user(s) FTP directory permitted
idle-timeout Set the timeout period for terminal user(s)
opt Set the MD5 format is password or challenge first,default
format is password first
privilege Set admin user(s) level
state Activate/Block the user(s)
user-group User group
<cr> Please press ENTER to execute command
[123-aaa]local-user admin password cipher admin privilege level 15
[123-aaa]local-user admin service-type telnet
客户端登陆
<Telnet Client>telnet 192.168.1.131
Press CTRL_] to quit telnet mode
Trying 192.168.1.131 ...
Connected to 192.168.1.131 ...
Login authentication
Username:admin
Password:.
[123]
6.测试