Huawei交换S5700下的DHCP服务添加以及端口群组port-group

一、添加基于dhcp服务器地址的方式

 1.开启dhcp服务

 2.建立dhcp的group组

 3.指定dhcp服务器地址

 4.在其他vlan下开启dhcp中继并指定选择上面建立的group组

[S5700]dhcp enable

[S5700]dhcp server group 1

[S5700-dhcp-server-group-1]dhcp-server 192.168.100.240

[S5700-dhcp-server-group-1]dhcp-server 192.168.100.250

[S5700]vlan batch 10 100

[S5700]interface vlan 10   

[S5700-Vlanif100]ip address 192.168.10.1 24

vlan10下开启中继那么接入vlan10的主机就可以通过DHCP获取地址

[S5700-Vlanif100]dhcp select relay

[S5700-Vlanif100]dhcp relay server-select 1

[S5700]interface vlan 100  

[S5700-Vlanif100]ip address 192.168.100.1 24

[S5700]interface GigabitEthernet 0/0/24

[S5700-GigabitEthernet0/0/24]port link-type access

[S5700-GigabitEthernet0/0/24]port default vlan 10  

[S5700]interface GigabitEthernet 0/0/23

[S5700-GigabitEthernet0/0/23]port link-type access

[S5700-GigabitEthernet0/0/23]port default vlan 100

二、添加基于本地vlan为dhcp分发的服务

 1.建立vlan并制定地址并指定为全局globa1组

 2.开启dhcp服务

 3.给建立的vlan创建地址池并指定网关以及DNS]

[S5700]vlan 20

[S5700]interface vlan 20   

[S5700-Vlanif20]ip address192.168.20.1 24

[S5700-Vlanif20]dhcp selectglobal开启vlan20下的dhcp全局配置

[S5700]interface GigabitEthernet 0/0/21

[S5700-GigabitEthernet0/0/21]port link-type access

[S5700-GigabitEthernet0/0/21]port default vlan 20

[S5700]ip pool vlan20    建立对应vlan20的地址池以及dns

[S5700-ip-pool-vlan20]gateway-list192.168.20.1

[S5700-ip-pool-vlan20]network192.168.20.0 mask 24

[S5700-ip-pool-vlan20]dns-list202.96.209.5

[S5700-ip-pool-vlan20]dns-list202.96.209.6


三、端口组

如果端口多的情况下,为了方便操作会把端口都加入一个群组,然后进行群体操作,比如加入一个vlan:

port-group 1

group-member Ethernet0/0/1 Ethernet0/0/2 ethernet0/0/3

或者group-member ethernet0/0/1 to ethernet 0/0/3

都可以。

四、开启远程控制telnet服务

开启远程telnet的方法:
(条件:两边都得有同一vlan,比如vlan200,同时配置同一网段得两个不同IP)
[Hds3700]aaa
[Hds3700-aaa]local-user handeson password cipher ******
[Hds3700-aaa]local-user handeson privilege level 15
[Hds3700-aaa]local-user handeson service-type telnet
[Hds3700-aaa]quit
[Hds3700]user-interface vty 0 4
[Hds3700-ui-vty0-4]authentication-mode aaa
[Hds3700-ui-vty0-4]protocol inbound telnet  #这一条一定要加
[Hds3700-ui-vty0-4]quit
[Hds3700]quit
<Hds3700>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0 .
Info: Save the configuration successfully.

  • 2
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值