1)排除IP,不進(jìn)行DHCP
ip dhcp excluded-address 10.0.0.1
2)先清除原有綁定,否則報(bào)錯(cuò)% A binding for this client already exists.
clear ip dhcp binding 10.0.0.1
3)重新綁定(缺省租期為1天)
ip dhcp pool test
host 10.0.0.1 255.255.255.0 ?(可填寫可不填寫掩碼)
client-identifier 0000.0000.0000
hardware-address 0000.0000.0000
default-router 10.0.0.254
dns-server 8.8.8.8
lease infinite
? ? ? ? 有的設(shè)備在請求DHCP的時(shí)候會發(fā)送client identifier,對于這類設(shè)備,一定要使用client-identifier指令;而對于那些不發(fā)生client identifier的設(shè)備,一定要使用hardware-address指令。注意,兩者不能同時(shí)指定,也不能混用,也不能顛倒過來!
4)綁定ARP(避免搶占)文章來源:http://www.zghlxwxcb.cn/news/detail-436078.html
arp 10.32.138.97 0c25.76f2.7d5d arpa文章來源地址http://www.zghlxwxcb.cn/news/detail-436078.html
到了這里,關(guān)于思科交換機(jī)配置DHCP固定IP地址的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!