1.拓扑图2.要求
2.1分析
1.192.168.1.0/24网段分配问题
192.168.1.0/24网段分配俩个广播
11000000 10101000 00000001 00000000
11000000 10101000 00000000 0 0000000--->192.168.1.0/25 1/25--->126/25
11000000 10101000 00000000 1 0000000-->192.168.1.128/25 129/25---->254/25
DHCP的ip的分配过程
[luoheping]ip pool xinxin
[luoheping-ip-pool-xinxin]netbios-type
[luoheping-ip-pool-xinxin]network 192.168.1.0 mask 25
[luoheping-ip-pool-xinxin]gateway-list 192.168.1.100
[luoheping-ip-pool-xinxin]excluded-ip-address 192.168.1.1 192.168.1.2---排除已有ip地址
[luoheping-ip-pool-xinxin]lease day 0 hour 1 minute 0----修改租期
[luoheping-ip-pool-xinxin]quit
[luoheping]interface GigabitEthernet 0/0/0
[luoheping-GigabitEthernet0/0/0]dhcp select global
3配图和文字描述
成功示意图
能用域名访问到http服务器
补充俩台路由表
[pc]ip route-static 0.0.0.0 0 192.168.1.100
[Huawei]ip route-static 0.0.0.0 0 192.168.1.200
启动telnet协议 -->[Huawei]telnet server enable
[Huawei-aaa]local-user admin service-type telnet--设置账号的使用协议
设置密码和用户名为admin
远程登录并且将其名称改为123
dhcp enable----启动DHCP服务