沈阳电脑维修上门服务13889116605: 一、拓扑图如下二、配置思路1、启动DHCP服务;2、创建VLANIF接口,并配置VLANIF接口的IP地址;3、使能VLANIF接口地址池;4、配置地址池的相关属性三、操作步骤1、启动DH...一、拓扑图如下
二、配置思路
1、启动DHCP服务;
2、创建VLANIF接口,并配置VLANIF接口的IP地址;
3、使能VLANIF接口地址池;
4、配置地址池的相关属性
三、操作步骤
1、启动DHCP服务
[DHCPServer]dhcpenable
2、创建VLAN
[DHCPServer]vlanbatch1020
3、配置接口并加入vlan
#配置GE0/0/1接口加入vlan10
[DHCPServer]interfacegigabitethernet0/0/1
[DHCPServer-GigabitEthernet0/0/1]porthybridpvidvlan10
[DHCPServer-GigabitEthernet0/0/1]porthybriduntaggedvlan10
[DHCPServer-GigabitEthernet0/0/1]quit
#配置GE0/0/2接口加入vlan20
[DHCPServer]interfacegigabitethernet0/0/2
[DHCPServer-GigabitEthernet0/0/2]porthybridpvidvlan20
[DHCPServer-GigabitEthernet0/0/2]porthybriduntaggedvlan20
[DHCPServer-GigabitEthernet0/0/2]quit
4、配置VLANIF接口IP地址
#配置VLANIF10接口地址。
[DHCPServer]interfacevlanif10
[DHCPServer-Vlanif10]ipaddress192.168.10.124
[DHCPServer-Vlanif10]quit
#配置VLANIF11接口地址。
[DHCPServer]interfacevlanif20
[DHCPServer-Vlanif20]ipaddress192.168.20.124
[DHCPServer-Vlanif20]quit
5、使能VLANIF接口地址池
#配置VLANIF10接口下的客户端从接口地址池中获取IP地址。
[DHCPServer]interfacevlanif10
[DHCPServer-Vlanif10]dhcpselectinterface
[DHCPServer-Vlanif10]quit
#配置VLANIF20接口下的客户端从接口地址池中获取IP地址。
[DHCPServer]interfacevlanif20
[DHCPServer-Vlanif11]dhcpselectinterface
[DHCPServer-Vlanif11]quit
www.it165.net
6、配置接口地址池地址租用期限
#配置VLANIF10接口地址租用期限为30天。
[DHCPServer]interfacevlanif10
[DHCPServer-Vlanif10]dhcpserverleaseday30
[DHCPServer-Vlanif10]quit
#配置VLANIF20接口地址租用期限为20天。
[DHCPServer]interfacevlanif20
[DHCPServer-Vlanif11]dhcpserverleaseday20
[DHCPServer-Vlanif11]quit
7、验证配置结果。
在DHCPServer上使用displayippoolinterface命令用来查看接口地址池配置情况
配置完成,你学会了吗,请继续关注
上一篇:使用xmodem恢复cisco3550交换机的ios