华为s5700交换机配置全局地址池dhcp.docx_第1页
华为s5700交换机配置全局地址池dhcp.docx_第2页
华为s5700交换机配置全局地址池dhcp.docx_第3页
免费预览已结束,剩余4页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

华为s5700交换机配置全局地址池dhcp服务器_TonySW1配置如下:HuaweiHuaweisyHuaweisystem-view (进入全局模式)Enter system view, return user view with Ctrl+Z.HuaweisyHuaweisysname SW1 ( 设备命名)SW1SW1dSW1dhcp enSW1dhcp enable (使用DHCP功能)Info: The operation may take a few seconds. Please wait for a moment.done.SW1SW1ip pool 10 (创建全局地址池,同时进入全局地址池视图)Info:Its successful to create an IP address pool.SW1-ip-pool-10netwSW1-ip-pool-10network 192.168.10.0 mSW1-ip-pool-10network 192.168.10.0 mask 24(配置全局地址池可动态分配的IP地址范围)SW1-ip-pool-10SW1-ip-pool-10dns-list 8.8.8.8 (配置DNS )SW1-ip-pool-10SW1-ip-pool-10gateway-list 192.168.10.1 (配置网关)SW1-ip-pool-10exSW1-ip-pool-10excluded-ip-address 192.168.10.201 192.168.10.254 (保留不被分配的地址)SW1-ip-pool-10SW1-ip-pool-10lease dSW1-ip-pool-10lease day 7 (IP租约期限)SW1-ip-pool-10SW1-ip-pool-10dis this (查询当前模式的配置)#ip pool 10 gateway-list 192.168.10.1 (网关) network 192.168.10.0 mask 255.255.255.0 (IP地址范围) excluded-ip-address 192.168.10.201 192.168.10.254 (保留IP地址范围) lease day 7 hour 0 minute 0 (IP租约周期) dns-list 8.8.8.8#returnSW1-ip-pool-10SW1-ip-pool-10SW1-ip-pool-10quit (退出)SW1SW1SW1SW1ip pool 20Info:Its successful to create an IP address pool.SW1-ip-pool-20SW1-ip-pool-20SW1-ip-pool-20netwSW1-ip-pool-20network 192.168.20.0 mSW1-ip-pool-20network 192.168.20.0 mask 24SW1-ip-pool-20SW1-ip-pool-20SW1-ip-pool-20dSW1-ip-pool-20dns-list 8.8.8.8SW1-ip-pool-20SW1-ip-pool-20gSW1-ip-pool-20gateway-list 192.168.20.1SW1-ip-pool-20SW1-ip-pool-20SW1-ip-pool-20exSW1-ip-pool-20excluded-ip-address 192.168.20.201 192.168.20.254SW1-ip-pool-20SW1-ip-pool-20SW1-ip-pool-20lSW1-ip-pool-20lease dSW1-ip-pool-20lease day 7SW1-ip-pool-20SW1-ip-pool-20SW1-ip-pool-20SW1-ip-pool-20SW1-ip-pool-20dis this#ip pool 20 gateway-list 192.168.20.1 network 192.168.20.0 mask 255.255.255.0 excluded-ip-address 192.168.20.201 192.168.20.254 lease day 7 hour 0 minute 0 dns-list 8.8.8.8#returnSW1-ip-pool-20SW1-ip-pool-20SW1-ip-pool-20qSW1SW1SW1vSW1vlan bSW1vlan batch 10 20 (批量创建vlan)Info: This operation may take a few seconds. Please wait for a moment.done.SW1SW1SW1intSW1interface gSW1interface GigabitEthernet 0/0/1 (进入port 1)SW1-GigabitEthernet0/0/1porSW1-GigabitEthernet0/0/1port lSW1-GigabitEthernet0/0/1port link-tSW1-GigabitEthernet0/0/1port link-type aSW1-GigabitEthernet0/0/1port link-type access (配置port 1 类型)SW1-GigabitEthernet0/0/1SW1-GigabitEthernet0/0/1SW1-GigabitEthernet0/0/1portSW1-GigabitEthernet0/0/1port defSW1-GigabitEthernet0/0/1port default vSW1-GigabitEthernet0/0/1port default vlan 10 (配置port 1 vlan)SW1-GigabitEthernet0/0/1SW1-GigabitEthernet0/0/1quit (退出)SW1SW1intSW1interface gSW1interface GigabitEthernet 0/0/2SW1-GigabitEthernet0/0/2SW1-GigabitEthernet0/0/2SW1-GigabitEthernet0/0/2SW1-GigabitEthernet0/0/2porSW1-GigabitEthernet0/0/2port lSW1-GigabitEthernet0/0/2port link-tSW1-GigabitEthernet0/0/2port link-type aSW1-GigabitEthernet0/0/2port link-type access SW1-GigabitEthernet0/0/2SW1-GigabitEthernet0/0/2porSW1-GigabitEthernet0/0/2port defSW1-GigabitEthernet0/0/2port default vSW1-GigabitEthernet0/0/2port default vlan 20SW1-GigabitEthernet0/0/2SW1-GigabitEthernet0/0/2quitSW1SW1SW1SW1intSW1interface v( 配置VLANIF10接口下的客户端从全局地址池中获取IP地址)SW1interface Vlanif 10 (创建vlanif 10)SW1-Vlanif10SW1-Vlanif10SW1-Vlanif10ip addSW1-Vlanif10ip address 192.168.10.1 24 (配置IP地址)SW1-Vlanif10SW1-Vlanif10dhcp selSW1-Vlanif10dhcp select gSW1-Vlanif10dhcp select global (在vlanif 10模式下调用全局地址池)SW1-Vlanif10SW1-Vlanif10SW1-Vlanif10disSW1-Vlanif10display this (查询当前配置参数)#interface Vlanif10 ip address 192.168.10.1 255.255.255.0 dhcp select global#returnSW1-Vlanif10SW1-Vlanif10SW1-Vlanif10quitSW1SW1SW1intSW1interface vSW1interface Vlanif 20SW1-Vlanif20SW1-Vlanif20SW1-Vlanif20ip addSW1-Vlanif20ip address 192.168.20.1 24SW1-Vlanif20SW1-Vlanif20dhcpSW1-Vlanif20dhcp selSW1-Vlanif20dhcp select gSW1-Vlanif20dhcp select global SW1-Vlanif20SW1-Vlanif20dis this#interface Vlanif20 ip address 192.168.20.1 255.255.255.0 dhcp select global#returnSW1-Vlanif20SW1-Vlanif20SW1-Vlanif20quitSW1SW1disSW1display ip pool (查看IP地址池配置情况) - Pool-name : 10 Pool-No : 0 Position : Local Status : Unlocked Gateway-0 : 192.168.10.1 Mask : 255.255.255.0 VPN instance : - - Pool-name : 20 Pool-No : 1 Position : Local Status : Unlocked Gateway-0 : 192.168.20.1 Mask : 255.255.255.0 VPN instance : - IP address Statistic Total :506 Used :0 Idle :398 Expired :0 Conflict :0 Disable :108 SW1SW1SW1quitSW1SW1SW1save (保存配置,写入设备)The current configuration will be written to the device.Are you sure to cont

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论