欢迎来到天天文库
浏览记录
ID:41147305
大小:134.22 KB
页数:7页
时间:2019-08-17
《华为s5700交换机配置全局地址池dhcp》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、SW1配置如下:sysystem-view(进入全局模式)Entersystemview,returnuserviewwithCtrl+Z.[Huawei]sy[Huawei]sysnameSW1(设备命名)[SW1][SW1]d[SW1]dhcpen[SW1]dhcpenable(使用DHCP功能)Info:Theoperationmaytakeafewseconds.Pleasewaitforamoment.done.[SW1][SW1]ippool10(创建全局地址池,同时进入全局地址池视图)In
2、fo:It'ssuccessfultocreateanIPaddresspool.[SW1-ip-pool-10]netw[SW1-ip-pool-10]network192.168.10.0m[SW1-ip-pool-10]network192.168.10.0mask24(配置全局地址池可动态分配的IP地址范围)[SW1-ip-pool-10][SW1-ip-pool-10]dns-list8.8.8.8(配置DNS)[SW1-ip-pool-10][SW1-ip-pool-10]gateway-list192.168.10.1(配置网关)[SW
3、1-ip-pool-10]ex[SW1-ip-pool-10]excluded-ip-address192.168.10.201192.168.10.254(保留不被分配的地址)[SW1-ip-pool-10][SW1-ip-pool-10]leased[SW1-ip-pool-10]leaseday7(IP租约期限)[SW1-ip-pool-10][SW1-ip-pool-10]disthis(查询当前模式的配置)#ippool10gateway-list192.168.10.1(网关)network192.168.10.0mask255.255.
4、255.0(IP地址范围)excluded-ip-address192.168.10.201192.168.10.254(保留IP地址范围)leaseday7hour0minute0(IP租约周期)dns-list8.8.8.8#return[SW1-ip-pool-10][SW1-ip-pool-10][SW1-ip-pool-10]quit(退出)[SW1][SW1][SW1][SW1]ippool20Info:It'ssuccessfultocreateanIPaddresspool.[SW1-ip-pool-20][SW1-ip-pool-2
5、0][SW1-ip-pool-20]netw[SW1-ip-pool-20]network192.168.20.0m[SW1-ip-pool-20]network192.168.20.0mask24[SW1-ip-pool-20][SW1-ip-pool-20][SW1-ip-pool-20]d[SW1-ip-pool-20]dns-list8.8.8.8[SW1-ip-pool-20][SW1-ip-pool-20]g[SW1-ip-pool-20]gateway-list192.168.20.1[SW1-ip-pool-20][SW1-ip-po
6、ol-20][SW1-ip-pool-20]ex[SW1-ip-pool-20]excluded-ip-address192.168.20.201192.168.20.254[SW1-ip-pool-20][SW1-ip-pool-20][SW1-ip-pool-20]l[SW1-ip-pool-20]leased[SW1-ip-pool-20]leaseday7[SW1-ip-pool-20][SW1-ip-pool-20][SW1-ip-pool-20][SW1-ip-pool-20][SW1-ip-pool-20]disthis#ippool2
7、0gateway-list192.168.20.1network192.168.20.0mask255.255.255.0excluded-ip-address192.168.20.201192.168.20.254leaseday7hour0minute0dns-list8.8.8.8#return[SW1-ip-pool-20][SW1-ip-pool-20][SW1-ip-pool-20]q[SW1][SW1][SW1]v[SW1]vlanb[SW1]vlanbatch1020(批量创建vlan)Info:Thisoperationmaytak
8、eafewseconds.Pleasewaitforamoment...done.[SW1][SW1][SW
此文档下载收益归作者所有