Telnet 服务配置H3C交换机

1、配置VALN并配置接口地址(略)
2.开启telnet,创建用户密码和认证策略。
[H3c]telnet server enable
[H3c]local-user ukihk
[H3c-luser-manage-ukihk]password simple admin@123
[H3c-luser-manage-ukihk]authorization-attribute user-role network-admin
[H3c-luser-manage-ukihk]service-type telnet

3、配置Telnet 服务
[H3c]user-interface vty 0 4
[H3c-line-vty0-4]authentication-mode scheme
[H3c-line-vty0-4]protocol inbound telnet
[H3c-line-vty0-4]quit
<H3C>save

DHCP服务配置H3C交换机

1、启用DHCP服务。
[H3C]dhcp enable

2、配置IP地址
[H3C]interface Vlan-interface 11
[H3C-Vlan-interface11]ip add 11.11.11.254

[H3C]dhcp server forbidden-ip 11.11.11.254

3、配置DHCP地址池

[H3C]dhcp server ip-pool 11
[H3C-dhcp-pool-11]network 11.11.11.0 mask 255.255.255.0
[H3C-dhcp-pool-11]dns-list 11.11.11.254
[H3C-dhcp-pool-11]gateway-list 11.11.11.254
[H3C-dhcp-pool-11]dhcp server forbidden-ip 11.11.11.1 <保留地址>
[H3C-dhcp-pool-11]quit
<H3C>save

DHCP服务配置华为交换机

1、交换机开启dhcp服务
[Huawei] dhcp enable
2、配置用户网关,并在接口下开启dhcp全局模式
[Huawei] interface vlanif 11
[Huawei-Vlanif11] ip address 111.11.11.254 255.255.255.0
[Huawei-Vlanif11] dhcp select global
[Huawei-Vlanif11] quit
<Huawei>save

3、创建地址池
[Huawei] ip pool vlan11
[Huawei-ip-pool-pool1] network 11.11.11.0 mask 255.255.255.0
[Huawei-ip-pool-pool1] dns-list 202.101.224.68  211.141.90.68
[Huawei-ip-pool-pool1] gateway-list 11.11.11.254
[Huawei-ip-pool-pool1] excluded-ip-address 11.11.11.1 11.11.11.10 <保留地址>
[Huawei-ip-pool-pool1] quit
<Huawei>save

———————————————————————————
4、配置后的效果

interface Vlanif11
description xingzhen bangong quyu
ip address 11.11.11.254 255.255.255.0
dhcp select interface
dhcp server lease day 100 hour 0 minute 0
dhcp server dns-list  202.101.224.68  211.141.90.68