一,DHCP基本配置
[aa]dhcp enable --- 开启DHCP服务
[aa]ip pool aa --- 创建一个IP地址池
Info: It's successful to create an IP address pool.
[aa-ip-pool-aa]
[aa-ip-pool-aa]network 192.168.1.0 mask 24 --- 配置可用的IP地址
[aa-ip-pool-aa]gateway-list 192.168.1.1--- 配置网关
[aa-ip-pool-aa]dns-list 114.114.114.114 8.8.8.8
[aa-GigabitEthernet0/0/0]dhcp select global
DHCP-release ---客户端主动释放IP地址
pc< ipconfig
二,开启路由器telnet服务
[aa]aaa --- 进入aaa[aa-aaa]
[aa-aaa]local-user xigongshang privilege level 15 password cipher 123456 Info: Add a new user. --- 创建用户,指定权限,设定密码
[aa-aaa]local-user xigongshang service-type telnet --- 定义用户服务
[aa]user-interface vty 04--- 开启虚拟的登录端口[aa-ui-vty0-4]
[aa-ui-vty0-4]authentication-mode aaa