實驗線路連接圖:
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
作者“天匆雲匯”