且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

DHCP分配IP地址[神州数码设备]

更新时间:2022-10-02 11:37:44

实验线路连接图:

DHCP分配IP地址[神州数码设备] 

DCRS-5526S配置:                                                                              

假设DHCP地址池的名字为shenzhi,租期为5

switch#config

switch(Config)#service dhcp

switch(Config)#hostname SwitchA

SwitchA(Config)#vlan 10

SwitchA(Config-Vlan10)#switchport interface ethernet 0/0/1-8

SwitchA(Config)#ip dhcp excluded-address 192.168.10.1 192.168.10.50

SwitchA(Config)#ip dhcp pool shenzhi

SwitchA(dhcp-shenzhi-config)#network-address 192.168.10.0

SwitchA(dhcp-shenzhi-config)#default-router 192.168.10.10

SwitchA(dhcp-shenzhi-config)#dns-server 192.168.10.1

SwitchA(dhcp-shenzhi-config)#netbios-name-server 192.168.10.2

SwitchA(dhcp-shenzhi-config)#lease 5


本文转自tiancong 51CTO博客,原文链接:http://blog.51cto.com/tiancong/656944