华为配置实例
- 格式:docx
- 大小:18.49 KB
- 文档页数:17
华为交换机各种配置实例[网管必学之阿布丰王创作交换机配置(一)端口限速基本配置华为3Com 2000_EI、S2000-SI、S3000-SI、S3026E、S3526E、S3528、S3552、S3900、S3050、S5012、S5024、S5600系列:华为交换机端口限速2000_EI系列以上的交换机都可以限速!限速分歧的交换机限速的方式纷歧样!2000_EI直接在端口视图下面输入LINE-RATE (4 )参数可选!端口限速配置1功能需求及组网说明端口限速配置『配置环境参数』『组网需求』1. 在SwitchA上配置端口限速,将PC1的下载速率限制在3Mbps,同时将PC1的上传速率限制在1Mbps2数据配置步调『S2000EI系列交换机端口限速配置流程』使用以太网物理端口下面的line-rate命令,来对该端口的出、入报文进行流量限速。
【SwitchA相关配置】1. 进入端口E0/1的配置视图[SwitchA]interface Ethernet 0/12. 对端口E0/1的出方向报文进行流量限速,限制到3Mbps[SwitchA- Ethernet0/1]line-rate outbound 303. 对端口E0/1的入方向报文进行流量限速,限制到1Mbps[SwitchA- Ethernet0/1]line-rate inbound 16【弥补说明】报文速率限制级别取值为1~127。
如果速率限制级别取值在1~28范围内,则速率限制的粒度为64Kbps,这种情况下,当设置的级别为N,则端口上限制的速率大小为N*64K;如果速率限制级别取值在29~127范围内,则速率限制的粒度为1Mbps,这种情况下,当设置的级别为N,则端口上限制的速率大小为(N-27)*1Mbps。
此系列交换机的具体型号包含:S2008-EI、S2016-EI和S2403H-EI。
『S2000-SI和S3000-SI系列交换机端口限速配置流程』使用以太网物理端口下面的line-rate命令,来对该端口的出、入报文进行流量限速。
华为路由器单臂路由实例需求:在局域网中,通过交换机上配置VLAN可以减少主机通信广播域的范围,当VLAN之间有部分主机需要通信,但交换机不支持三层交换时,可以采用一台支持802.1Q的路由器实现VLAN的互通。
这需要在以太口上建立子接口,分配IP地址作为该VLAN的网关,同时启动802.1Q.组网:路由器E0端口与交换机的上行trunk端口(第24端口)相连,交换机下行口划分3个VLAN,带若干主机.拓扑图如下:1.路由器的配置[Router][Router]inter e0[Router-Ethernet0]ip add 10.0.0.1 255.255.255.0[Router-Ethernet0]inter e0.1 //定义子接口E0.1[Router-Ethernet0.1]ip add 172.16.1.1 255.255.255.0[Router-Ethernet0.1]vlan-type dot1q vid 1 //指定以太网子接口属于VLAN1,此命令应用在以太网子接口上。
只有配置了该命令之后,以太网子接口才会根据配置的VLAN ID 号在以太网帧头中嵌入VLAN 标签,与该网口相连的交换机接口才能正确处理接收到的帧。
[Router-Ethernet0.1]inter e0.2 //定义子接口E0.2[Router-Ethernet0.2]ip add 172.16.2.1 255.255.255.0[Router-Ethernet0.2]vlan-type dot1q vid 2 //指定以太网子接口属于VLAN2[Router-Ethernet0.2]inter e0.3 //定义子接口E0.3[Router-Ethernet0.3]ip add 172.16.3.1 255.255.255.0[Router-Ethernet0.3]vlan-type dot1q vid 3 //指定以太网子接口属于VLAN3[Router-Ethernet0.3]inter e0[Router-Ethernet0]undo shut% Interface Ethernet0 is up[Router-Ethernet0] //用网线将E0端口连到S3026第24端口%19:46:32: Interface Ethernet0 changed state to UP%19:46:32: Line protocol ip on interface Ethernet0, changed state to UP%19:46:32: Line protocol ip on interface Ethernet0.1, changed state to UP%19:46:32: Line protocol ip on interface Ethernet0.2, changed state to UP%19:46:32: Line protocol ip on interface Ethernet0.3, changed state to UP2.交换机的配置sysEnter system view , return user view with Ctrl+Z.[Quidway]vlan 1[Quidway-vlan1]vlan 2[Quidway-vlan2]port ethernet 0/17 to eth 0/19 eth 0/22 //将第17至19端口,和第22端口加入VLAN2 [Quidway-vlan2]vlan 3[Quidway-vlan3]port eth 0/21 //将第21端口加入VLAN2[Quidway-vlan3]inter e0/24[Quidway-Ethernet0/24]port link-type trunk //将第24端口设为trunk口[Quidway-Ethernet0/24]port trunk permit vlan all//允许所有VLAN流量通过Please wait........................................... Done. [Quidway-Ethernet0/24]dis port trunk //检验TRUNK口配置Now, the following trunking ports exist:Ethernet0/24[Quidway-Ethernet0/24]dis vlan 2 //检验VLAN2的配置VLAN ID: 2VLAN Type: staticRoute Interface: not configuredDescription: VLAN 0002Tagged Ports:Ethernet0/24Untagged Ports:Ethernet0/17 Ethernet0/18 Ethernet0/19 Ethernet0/22[Quidway-Ethernet0/24]dis vlan 3 //检验VLAN3的配置VLAN ID: 3VLAN Type: staticRoute Interface: not configuredDescription: VLAN 0003Tagged Ports:Ethernet0/24Untagged Ports:Ethernet0/213.在工作站上检查网络是否连通。
2综合配置案例关于本章2.1 中小型园区/分支出口综合配置举例2.2 大型园区出口配置示例(防火墙直连部署)2.3 大型园区出口配置示例(防火墙旁路部署)2.4 校园敏捷网络配置示例2.5 轨道交通承载网快速自愈保护技术配置举例2.6 配置交换机上同时部署ACU2和NGFW的示例2.1 中小型园区/分支出口综合配置举例园区网出口简介园区网出口一般位于企业网内部网络与外部网络的连接处,是内部网络与外部网络之间数据流的唯一出入口。
对于中小型企业来说,考虑到企业网络建设的初期投资与长期运维成本,一般希望将多种业务部署在同一设备上。
企业网络用户一般同时需要访问Internet和私网VPN,而对于中小型企业来说考虑到建设及维护成本问题,一般租用运营商Internet网络组建私网VPN。
对于部分可靠性要求较高的园区网络,一般考虑部署两台出口路由器做冗余备份实现设备级可靠性,同时应用链路聚合、VRRP、主备路由等技术保证园区出口的可靠性。
华为AR系列路由器配合华为S系列交换机是中小型园区网出口设备的理想解决方案。
l园区出口设备需要具备NAT Outbound及NAT Server的功能,实现私网地址和公网地址之间的转换,以满足用户访问Internet或者Internet用户访问内网服务器的需求。
l园区出口设备需要具备通过Internet构建私网VPN的功能,以满足企业用户各个机构之间私网VPN互通的需求。
l园区出口设备需要具备数据加密传输的功能,以保证数据的完整性和机密性,保障用户业务传输的安全。
l中小型园区出口需要具备可靠性、安全性、低成本、易维护等特点。
配置注意事项l本配置案例适用于中小型企业园区/分支出口解决方案。
l本配置案例仅涉及企业网络出口相关配置,涉及企业内网的相关配置请参见华为S 系列园区交换机快速配置中的“中小园区组网场景”。
组网需求某企业总部和分支分别位于不同的城市,地域跨度较远,总部存在A、B两个不同的部门,分支只有一个部门。
最新华为路由器配置实例最新华为路由器配置实例一:介绍华为路由器是一种网络设备,通过路由连接不同的网络,并且能够提供各种网络服务和功能。
本文将详细介绍华为路由器的配置步骤,以便能够帮助用户正确配置和操作华为路由器。
二:准备工作在开始配置华为路由器之前,需要准备以下材料和设备:1. 华为路由器设备2. 电脑或移动设备3. 电缆连接线4. 网络连接配置信息三:连接路由器1. 将华为路由器设备插入电源插座,并确保路由器的电源开关已打开。
2. 使用电缆连接线将路由器的LAN口连接到电脑或移动设备的网口。
四:登录路由器管理界面1. 打开电脑或移动设备上的浏览器,输入默认的路由器管理界面地址(例如:192.168.1.1)。
2. 在弹出的登录界面中,输入默认的用户名和密码,登录。
五:配置基本网络设置1. 在路由器管理界面中,找到“基本网络设置”或类似选项。
2. 输入网络连接配置信息,包括IP地址、子网掩码、网关等。
3. 保存并应用配置。
六:配置无线网络1. 在路由器管理界面中,找到“无线网络设置”或类似选项。
2. 设置无线网络的名称(SSID),选择加密方式并设置密码。
3. 保存并应用配置。
七:配置高级功能根据实际需求,可以配置路由器的各种高级功能,包括但不限于:1. DHCP服务设置2. 端口转发设置3. 安全设置4. VLAN配置5. ... (根据实际需求添加更多内容)八:保存配置并重启路由器1. 确认所有配置都已设置完成并保存。
2. 在路由器管理界面中找到“系统设置”或类似选项。
3. “保存配置并重启路由器”或类似按钮,等待路由器重启完成。
九:附件本文档所涉及的附件包括:1. 华为路由器配置示例截图2. 路由器连接线图片十:法律名词及注释1. 路由器:是一种网络设备,用于连接不同的网络。
2. 网络连接配置信息:包括IP地址、子网掩码、网关等,用于设置网络连接。
3. 默认用户名和密码:路由器的初始登录用户名和密码。
华为配置实例同网段内配置基于接口地址池的DHCP服务器示例组网需求如所示,某企业有两个处于同一网络内的办公室,为了节省资源,两个办公室内的主机由SwitchA 作为DHCP服务器统一分配IP地址。
办公室1所属的网段为,主机都加入VLAN10,办公室1使用DNS服务和NetBIOS服务,地址租期30天;办公室2所属的网段为,主机都加入VLAN11,办公室2不使用DNS服务和NetBIOS服务,地址租期20天。
配置思路基于VLANIF接口地址池的DHCP服务器的配置思路如下:1.在SwitchA上创建两个接口地址池并配置地址池相关属性,实现DHCP服务器可以根据不同需求,从不同的接口地址池中选择合适的IP地址及其配置参数分配给办公室主机。
2.在SwitchA上配置VLANIF接口基于接口地址池的地址分配方式,实现DHCP服务器从基于接口的地址池中选择IP地址分配给办公室主机。
操作步骤1.使能DHCP服务2. system-view3. [HUAWEI] sysname SwitchA[SwitchA] dhcp enable4.配置接口加入VLAN#配置GE0/0/1接口加入VLAN10。
[SwitchA] vlan batch 10 to 11[SwitchA] interface gigabitethernet 0/0/1[SwitchA-GigabitEthernet0/0/1] port hybrid pvid vlan 10[SwitchA-GigabitEthernet0/0/1] port hybrid untagged vlan10[SwitchA-GigabitEthernet0/0/1] quit#配置GE0/0/2加接口入VLAN11。
[SwitchA] interface gigabitethernet 0/0/2[SwitchA-GigabitEthernet0/0/2] port hybrid pvid vlan 11[SwitchA-GigabitEthernet0/0/2] port hybrid untagged vlan 11[SwitchA-GigabitEthernet0/0/2] quit5.配置VLANIF接口IP地址#配置VLANIF10接口地址。
华为路由器配置实例华为路由器配置实例1.硬件连接配置1.1 连接路由器①将电缆连接到路由器的WAN口②将另一端的电缆连接到互联网服务提供商(ISP)的调制解调器1.2 连接计算机①将计算机连接到路由器的LAN口②确保计算机网络设置为自动获得IP地质2.登录路由器管理界面2.1 打开网页浏览器2.2 在浏览器地质栏输入默认的路由器管理界面IP地质(例如.192.16①)2.3 输入用户名和密码登录路由器管理界面3.基本网络设置3.1 修改管理密码①在路由器管理界面中找到“系统管理”或类似选项②设置新的管理密码并确认保存3.2 更新路由器固件①在路由器管理界面中找到“系统升级”或类似选项②相应的固件文件并进行升级3.3 配置网络名称(SSID)①在路由器管理界面中找到“无线设置”或类似选项②输入新的网络名称(SSID)并确认保存3.4 配置密码①在路由器管理界面中找到“无线设置”或类似选项②设置新的无线密码并确认保存3.5 配置IP地质分配①在路由器管理界面中找到“局域网设置”或类似选项②设置IP地质分配方式为DHCP(自动获取)4.高级网络设置4.1 配置端口转发①在路由器管理界面中找到“虚拟服务器”或类似选项②添加需要转发的端口号和对应的内部IP地质4.2 配置端口触发①在路由器管理界面中找到“端口触发”或类似选项②添加需要触发的端口范围和对应的触发条件4.3 配置静态路由①在路由器管理界面中找到“静态路由”或类似选项②添加需要配置的网络地质和对应的出口或下一跳选项5.安全设置5.1 配置防火墙①在路由器管理界面中找到“防火墙”或类似选项②配置需要开放或关闭的端口5.2 启用MAC地质过滤①在路由器管理界面中找到“无线设置”或类似选项②添加允许或禁止连接的MAC地质5.3 启用网络地质转换(NAT)①在路由器管理界面中找到“NAT”或类似选项②启用NAT并确认保存6.附件本文档涉及附件:●路由器配置截图●路由器固件升级文件●其他相关配置文件7.法律名词及注释●IP地质:Internet Protocol Address,互联网协议地质,用于标识网络设备的唯一地质。
华为策略路由配置实例1、组网需求图1 策略路由组网示例图如上图1所示,公司用户通过Switch双归属到外部网络设备。
其中,一条是低速链路,网关为10.1.20.1/24;另外一条是高速链路,网关为10.1.30.1/24。
公司希望上送外部网络的报文中,IP优先级为4、5、6、7的报文通过高速链路传输,而IP优先级为0、1、2、3的报文则通过低速链路传输。
2、配置思路1、创建VLAN并配置各接口,实现公司和外部网络设备互连。
2、配置ACL规则,分别匹配IP优先级4、5、6、7,以及IP优先级0、1、2、3。
3、配置流分类,匹配规则为上述ACL规则,使设备可以对报文进行区分。
4、配置流行为,使满足不同规则的报文分别被重定向到10.1.20.1/24和10.1.30.1/24。
5、配置流策略,绑定上述流分类和流行为,并应用到接口GE2/0/1的入方向上,实现策略路由。
3、操作步骤3.1、创建VLAN并配置各接口# 在Switch上创建VLAN100和VLAN200。
<HUAWEI> system-view[HUAWEI] sysname Switch[Switch] vlan batch 100 200# 配置Switch上接口GE1/0/1、GE1/0/2和GE2/0/1的接口类型为Trunk,并加入VLAN100和VLAN200。
[Switch] interface gigabitethernet 1/0/1[Switch-GigabitEthernet1/0/1] port link-type trunk[Switch-GigabitEthernet1/0/1] port trunk allow-pass vlan 100 200 [Switch-GigabitEthernet1/0/1] quit[Switch] interface gigabitethernet 1/0/2[Switch-GigabitEthernet1/0/2] port link-type trunk[Switch-GigabitEthernet1/0/2] port trunk allow-pass vlan 100 200 [Switch-GigabitEthernet1/0/2] quit[Switch] interface gigabitethernet 2/0/1[Switch-GigabitEthernet2/0/1] port link-type trunk[Switch-GigabitEthernet2/0/1] port trunk allow-pass vlan 100 200 [Switch-GigabitEthernet2/0/1] quit配置LSW与Switch对接的接口为Trunk类型接口,并加入VLAN100和VLAN200。
华为路由器简单配置详解en 进入特权模式conf 进入全局配置模式in s0 进入 serial 0 端口配置ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 添加ip 地址和掩码,电信分配enca hdlc/ppp 捆绑链路协议 hdlc 或者 pppip unn e0exit 回到全局配置模式in e0 进入以太接口配置ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 添加ip 地址和掩码,电信分配exit 回到全局配置模式ip route 0.0.0.0 0.0.0.0 s 0 添加路由表ena password 口令writeexit以上根据中国电信 ddn 专线多数情况应用普通用户模式enable 转入特权用户模式exit 退出配置help 系统帮助简述language 语言模式切换ping 检查网络主机连接及主机是否可达show 显示系统运行信息telnet 远程登录功能tracert 跟踪到目的地经过了哪些路由器特权用户模式#?clear 清除各项统计信息clock 管理系统时钟configure 进入全局配置模式debug 开启调试开关disable 返回普通用户模式download 下载新版本软件和配置文件erase 擦除FLASH中的配置exec-timeout 打开EXEC超时退出开关exit 退出配置first-config 设置或清除初次配置标志help 系统帮助简述language 语言模式切换monitor 打开用户屏幕调试信息输出开关no 关闭调试开关ping 检查网络主机连接及主机是否可达reboot 路由器重启setup 配置路由器参数show 显示系统运行信息telnet 远程登录功能tracert 跟踪到目的地经过了哪些路由器unmonitor 关闭用户屏幕调试信息输出开关write 将当前配置参数保存至FLASH MEM中全局配置模式aaa-enable 使能配置AAA(认证,授权和计费) access-list 配置标准访问表arp 设置静态ARP人口chat-script 生成一个用在modem上的执行脚本custom-list 创建定制队列列表dialer-list 创建dialer-listdram-wait 设置DRAM等待状态enable 修改ENABLE口令exit 退出全局配置模式firewall 配置防火墙状态flow-interval 设置流量控制时间间隔frame-relay 帧中继全局配置命令集ftp-server FTP 服务器help 系统帮助命令简述host 添加主机名称和其IP地址hostname 修改主机名ifquelen 更改接口队列长度interface 选择配置接口ip 全局IP配置命令子集ipx 全局IPX配置命令子集loghost 设置日志主机IP地址logic-channel 配置逻辑通道login 启动EXEC登录验证modem-timeout 设置 modem 超时时间multilink 配置multilink 用户使用的接口multilink-user 配置multilink 用户使用的接口natserver 设置FTP,TELNET,WWW服务的IP地址no 关闭某些参数开关priority-list 创建优先级队列列表router 启动路由处理settr 设置时间范围snmp-server 修改SNMP参数tcp 配置全局TCP参数timerange 启动或关闭时间区域user 为PPP验证向系统中加入用户vpdn 设置VPDNvpdn-group 设置VPDN组x25 X.25协议分组层华为路由器交换机VLAN配置实例使用4台PC(pc多和少,原理是一样的,所以这里我只用了4台pc),华为路由器(R2621)、交换机(S3026e)各一台,组建一VLAN,实现虚拟网和物理网之间的连接。
华为路由器配置实例华为路由器(R2621)、交换机(S3026e)各一台,组建一VLAN,实现虚拟网和物理网之间的连接。
实现防火墙策略,和访问控制(ACL),我们这里用的是四台电脑。
方案说明:四台PC的IP地址、掩码如下列表:P1 192.168.1.1 255.255.255.0 网关IP 为192.168.1.5P2 192.168.1.2 255.255.255.0 网关IP 为192.168.1.5P3 192.168.1.3 255.255.255.0 网关IP 为192.168.1.6P4 192.168.1.4 255.255.255.0 网关IP 为192.168.1.6路由器上Ethernet0的IP 为192.168.1.5Ethernet1的IP 为192.168.1.6firewall 设置默认为deny实施命令列表:交换机上设置,划分VLAN:sys//切换到系统视图[Quidway]vlan enable[Quidway]vlan 2[Quidway-vlan2]port e0/1 to e0/8[Quidway-vlan2]quit//默认所有端口都属于VLAN1,指定交换机的e0/1 到e0/8八个端口属于VLAN2[Quidway]vlan 3[Quidway-vlan3]port e0/9 to e0/16[Quidway-vlan3]quit//指定交换机的e0/9 到e0/16八个端口属于VLAN3[Quidway]dis vlan all[Quidway]dis cu路由器上设置,实现访问控制:[Router]interface ethernet 0[Router-Ethernet0]ip address 192.168.1.5 255.255.255.0[Router-Ethernet0]quit//指定ethernet 0的ip[Router]interface ethernet 1[Router-Ethernet1]ip address 192.168.1.6 255.255.255.0[Router-Ethernet1]quit//开启firewall,并将默认设置为deny[Router]fire enable[Router]fire default deny//允许192.168.1.1访问192.168.1.3//firewall策略可根据需要再进行添加[Router]acl 101[Router-acl-101]rule permit ip source 192.168.1.1 255.255.255.0 destination 192.168.1.3 255.255.255.0[Router-acl-101]quit//启用101规则[Router-Ethernet0]fire pa 101[Router-Ethernet0]quit[Router-Ethernet1]fire pa 101[Router-Ethernet1]quit。
同网段内配置基于接口地址池的DHCP服务器示例组网需求如所示,某企业有两个处于同一网络内的办公室,为了节省资源,两个办公室内的主机由SwitchA 作为DHCP服务器统一分配IP地址。
办公室1所属的网段为,主机都加入VLAN10,办公室1使用DNS服务和NetBIOS服务,地址租期30天;办公室2所属的网段为,主机都加入VLAN11,办公室2不使用DNS服务和NetBIOS服务,地址租期20天。
配置思路基于VLANIF接口地址池的DHCP服务器的配置思路如下:1.在SwitchA上创建两个接口地址池并配置地址池相关属性,实现DHCP服务器可以根据不同需求,从不同的接口地址池中选择合适的IP地址及其配置参数分配给办公室主机。
2.在SwitchA上配置VLANIF接口基于接口地址池的地址分配方式,实现DHCP服务器从基于接口的地址池中选择IP地址分配给办公室主机。
操作步骤1.使能DHCP服务2. <HUAWEI> system-view3. [HUAWEI] sysname SwitchA[SwitchA] dhcp enable4.配置接口加入VLAN#配置GE0/0/1接口加入VLAN10。
[SwitchA] vlan batch 10 to 11[SwitchA] interface gigabitethernet 0/0/1[SwitchA-GigabitEthernet0/0/1] port hybrid pvid vlan 10[SwitchA-GigabitEthernet0/0/1] port hybrid untagged vlan 10[SwitchA-GigabitEthernet0/0/1] quit#配置GE0/0/2加接口入VLAN11。
[SwitchA] interface gigabitethernet 0/0/2[SwitchA-GigabitEthernet0/0/2] port hybrid pvid vlan 11[SwitchA-GigabitEthernet0/0/2] port hybrid untagged vlan 11[SwitchA-GigabitEthernet0/0/2] quit5.配置VLANIF接口IP地址#配置VLANIF10接口地址。
[SwitchA] interface vlanif 10[SwitchA-Vlanif10] ip address 24[SwitchA-Vlanif10] quit#配置VLANIF11接口地址。
[SwitchA] interface vlanif 11[SwitchA-Vlanif11] ip address 24[SwitchA-Vlanif11] quit6.使能VLANIF接口地址池#配置VLANIF10接口下的客户端从接口地址池中获取IP地址。
[SwitchA] interface vlanif 10[SwitchA-Vlanif10] dhcp select interface[SwitchA-Vlanif10] quit#配置VLANIF11接口下的客户端从接口地址池中获取IP地址。
[SwitchA] interface vlanif 11[SwitchA-Vlanif11] dhcp select interface[SwitchA-Vlanif11] quit7.配置接口地址池的DNS服务和NetBIOS服务#配置VLANIF10接口地址池下的DNS服务和NetBIOS服务。
[SwitchA] interface vlanif 10[SwitchA-Vlanif10] dhcp server domain-name[SwitchA-Vlanif10] dhcp server dns-list dhcp server nbns-list dhcp server excluded-ip-address dhcp server excluded-ip-address dhcp servernetbios-type b-node[SwitchA-Vlanif10] quit8.配置接口地址池中地址租用期限#配置VLANIF10接口地址租用期限为30天。
[SwitchA] interface vlanif 10[SwitchA-Vlanif10] dhcp server lease day 30[SwitchA-Vlanif10] quit#配置VLANIF11接口地址租用期限为20天。
[SwitchA] interface vlanif 11[SwitchA-Vlanif11] dhcp server lease day 20[SwitchA-Vlanif11] quit9.验证配置结果在SwitchA上使用display ip pool命令用来查看接口地址池配置情况。
[SwitchA] display ip pool interface vlanif10Pool-name : Vlanif10Pool-No : 0Lease : 30 Days 0 Hours 0 MinutesDomain-name :DNS-server0 : NBNS-server0 : Netbios-type : b-nodePosition : Interface Status : UnlockedGateway-0 : Mask : VPN instance : -------------------------------------------------------------------------------Start End Total Used Idle(Expired) Conflict Disable-----------------------------------------------------------------------------253 1 250(0) 0 2-----------------------------------------------------------------------------[SwitchA] display ip pool interface vlanif11Pool-name : Vlanif11Pool-No : 1Lease : 20 Days 0 Hours 0 MinutesDomain-name : -DNS-server0 : -NBNS-server0 : -Netbios-type : -Position : Interface Status : UnlockedGateway-0 : Mask : VPN instance : -------------------------------------------------------------------------------Start End Total Used Idle(Expired) Conflict Disable-----------------------------------------------------------------------------253 3 250(0) 0 0-----------------------------------------------------------------------------配置文件SwitchA的配置文件#sysname HUAWEI#vlan batch 10 to 11#dhcp enable#interface Vlanif10ip address dhcp select interfacedhcp server excluded-ip-address dhcp server lease day 30 hour 0 minute 0dhcp server dns-list dhcp server netbios-type b-nodedhcp server nbns-list dhcp server domain-name#interface Vlanif11ip address dhcp select interfacedhcp server lease day 20 hour 0 minute 0#interface GigabitEthernet0/0/1port hybrid pvid vlan 10port hybrid untagged vlan 10#interface GigabitEthernet0/0/2port hybrid pvid vlan 11port hybrid untagged vlan 11#returnheader Define the login bannerhttp HTTPhwtacacs Set the status of the HWTACACS(Huawei TerminalAccess Controller Access Control System) servicehwtacacs-server Set HWTACACS servericmp Specify ICMP configuration informationicmp-reply Enable ICMP reply fastigmp-snooping Specify parameters for IGMP-Snoopinginfo-center Specify information center configurationinformationinterface Specify the interface configuration viewip IP informationipv6 Enable IPv6 functionalityl2-topology Layer 2 topologyl2protocol-tunnel Layer 2 protocol tunnellacp Link aggregation control protocollldp Link Layer Discovery Protocolload-balance Specify load balance modeloopback-detect Loopback detect functionmac-address Mac-addressmac-authen MAC authenticate configure informationmac-forced-forwarding Mac-Forced Forwardingmac-learning MAC learningmac-limit MAC limitmac-spoofing-defend MAC spoofing defendmad Multi-active detectionmanagement-port Management portmatched Is Command can be matched by upper templatemld-snooping Specify parameters for MLD-Snoopingmonitor-link Monitor link configuration informationmulticast Multicast configuration informationnap NAP protocolnd Neighbor discoverynqa Network Quality Analysis(NQA)nqa-jitter Switch NQA jitter versionnqa-server Specify NQA echo serverntp-service Specify NTP (Network Time Protocol) configuration informationoam-mgr Oam-mgr viewobserve-port Configure observe port featureping Ping functionpoe Power over Ethernetport Portport-group Port-groupport-isolate Port isolatepppoe PPPOEqos QoS configurationradius-server Add or delete RADIUS server templatermon Specify RMON configurationroute-policy Route-policyroute-policy-change Specify route policy change parameterrouter Configure router informationrps Set RPS statusrrpp Rapid ring protection protocolrsa Specify RSA module configuration informationsavi Source Address Validation Improvementscp Set SCP serverscreen-width Set screen widthsep Smart ethernet protectionset Set the mode of power managementsflow SFlow modulesftp Set SFTP service attributeslave Backup switch from master to slavesleep Set device to sleep modesmart-link Smart link configuration informationsnmp-agent Specify SNMP(Simple Network Management Protocol) configuration informationssh Set the SSH (secure shell) configuration attribute ssl Security socket layerstack Stackstack-port Stack portstartup Startup configurationstelnet Set Stelnet service attributestp Specify Spanning Tree Protocol (STP) configuration informationsuppression Suppression, include broadcast-suppression,multicast-suppression and unicast-suppressionsys-netid System-netidsysname Specify the host nametcp Specify TCP(Transmission Control Protocol)configuration informationtelnet Set the status of the Telnet servicetemperature Device temperaturetftp Establish a TFTP connectiontftp-server TFTP servertime-range Specify time-range configuration informationtrace Trace route (switch) to host on Data Link Layertraffic Specify traffic configuration informationtraffic-filter Filter packets based on acltraffic-limit Limit the rate of the packets based on acltraffic-mirror Mirror packets based on acltraffic-policy Apply specific traffic policytraffic-redirect Redirect packets based on acltraffic-remark Remark packets based on acltraffic-secure Filter packets based on acltraffic-statistic Count packets based on acltransceiver Transceiveruser-bind User binduser-interface Configure the user terminal interfacevlan Virtual LANvoice-vlan Voice VLAN[xinhao]undo vl[xinhao]undo vlan 10[xinhao][xinhao][xinhao]qu[xinhao]quit<xinhao>Jan 14 2000 23:57:30 xinhao DS/4/DATASYNC_CFGCHANGE:OID configurations have been changed. The current change number is 23, the change loop count is 0, and the maximum number of records is<xinhao>di<xinhao>display vlanThe total number of vlans is : 2--------------------------------------------------------------------------------U: Up; D: Down; TG: Tagged; UT: Untagged;MP: Vlan-mapping; ST: Vlan-stacking;#: ProtocolTransparent-vlan; *: Management-vlan;--------------------------------------------------------------------------------VID Type Ports--------------------------------------------------------------------------------1 common UT:GE0/0/1(D) GE0/0/2(D) GE0/0/3(D) GE0/0/4(D)GE0/0/5(D) GE0/0/6(D) GE0/0/7(D) GE0/0/8(D)GE0/0/9(D) GE0/0/10(D) GE0/0/11(D) GE0/0/12(D)GE0/0/13(D) GE0/0/14(D) GE0/0/15(D) GE0/0/16(D)GE0/0/17(D) GE0/0/18(D) GE0/0/19(D) GE0/0/20(D)GE0/0/21(D) GE0/0/22(D) GE0/0/23(D) GE0/0/24(D)GE0/0/25(D) GE0/0/26(D) GE0/0/27(D) GE0/0/28(D)757 common UT:GE0/0/24(D)VID Status Property MAC-LRN Statistics Description--------------------------------------------------------------------------------1 enable default enable disable VLAN 0001757 enable default enable disable VLAN 0757<xinhao>save<xinhao>saveThe current configuration will be written to the device.Are you sure to continue[Y/N]yNow saving the current configuration to the slot 0.Jan 14 2000 23:57:55 xinhao %%01CFM/4/SAVE(l)[1]:The user chose Y when deciding whether to save the configuration to the device.Save the configuration successfully.<xinhao><xinhao><xinhao><xinhao>ssy<xinhao>sys<xinhao>system-viewEnter system view, return user view with Ctrl+Z.[xinhao]int[xinhao]interface g[xinhao]interface GigabitEthernet 0/0/1[xinhao-GigabitEthernet0/0/1]port[xinhao-GigabitEthernet0/0/1]port hy[xinhao-GigabitEthernet0/0/1]port hybrid pvid[xinhao-GigabitEthernet0/0/1]port hybrid pvid vl[xinhao-GigabitEthernet0/0/1]port hybrid pvid vlan 757[xinhao-GigabitEthernet0/0/1]Jan 15 2000 00:03:20 xinhao DS/4/DATASYNC_CFGCHANGE:OID configurations have been changed. The current change number is 24, the change loop count is 0, and the maximum number of records is 4095.[xinhao-GigabitEthernet0/0/1]port[xinhao-GigabitEthernet0/0/1]port hybrid pvid vlan 1[xinhao-GigabitEthernet0/0/1]Jan 15 2000 00:03:40 xinhao DS/4/DATASYNC_CFGCHANGE:OID configurations have been changed. The current change number is 25, the change loop count is 0, and the maximum number of records is 4095.[xinhao-GigabitEthernet0/0/1]qu[xinhao][xinhao][xinhao][xinhao][xinhao]qu<xinhao><xinhao><xinhao><xinhao>sys<xinhao>system-viewEnter system view, return user view with Ctrl+Z.[xinhao]vlan 10[xinhao-vlan10]Jan 15 2000 00:04:00 xinhao DS/4/DATASYNC_CFGCHANGE:OID configurations have been changed. The current change number is 26, the change loop count is 0, and the maximum number of records is 4095.[xinhao-vlan10]undo[xinhao-vlan10]undo sh[xinhao-vlan10]name 10[xinhao-vlan10]qu[xinhao-vlan10]quit[xinhao]int[xinhao]interface vlJan 15 2000 00:04:20 xinhao DS/4/DATASYNC_CFGCHANGE:OID configurations have been changed. The current change number is 27, the change loop count is 0, and the maximum number of records is 4095.[xinhao]interface vl[xinhao]interface Vlanif 10Error: Can not create this interface because the interface number of this type h as reached its maximum.[xinhao]undo[xinhao]undo su[xinhao]undo sh[xinhao]undoaaa AAAaaa-authen-bypass Set remote authentication bypassaaa-author-bypass Set remote authorization bypassaaa-author-cmd-bypass Set remote command authorization bypassaccess-user User accessacl Specify ACL configuration informationanti-attack Specify anti-attack configurationsapplication-apperceive Set application-apperceive informationarp ARP modulearp-suppress Specify arp suppress configuration information, default is disabledas-notation The AS notationassign Assginassistant Assistantauthentication Authentication easy-modeauthorization-info Authorization informationbpdu BPDU messagebtv Btv viewcfm Connectivity fault managementclock Specify the system clockcommand-privilege Specify the command levelconfiguration Configuration interlockconfiguration-occupied Configuration exclusive occupiedcpu-defend Configure CPU defend policycpu-defend-policy Configure CPU defend policycpu-usage Set cpu usage configurationdebugging Enable system debugging functionsdevice-sensor Device sensordhcp Dynamic host configure protocoldldp Device link detection protocoldns Specify domain name systemdomain Default domaindot1x configuration informationdrop Discard attributedsa Specify DSA module configurationseasy-operation Easy operationefm EFM moduleerps Ethernet ring protection switchingerror-down The interface was shut down because of an error eventethernet-loop-protection Ethernet loop protectionfib FIB status and configuration informationfile Specify file system configuration information ftp Set the FTP server attributesgarp Generic Attribute Registration Protocolgtsm The generalized TTL security mechanismgvrp Generic VLAN Registration Protocolheader Define the login bannerhttp HTTPhwtacacs Set the status of the HWTACACS(Huawei TerminalAccess Controller Access Control System) service hwtacacs-server Set HWTACACS servericmp Specify ICMP configuration informationicmp-reply Enable ICMP reply fastigmp-snooping Specify parameters for IGMP-Snoopinginfo-center Specify information center configurationinformationinterface Specify the interface configuration viewip IP informationipv6 Enable IPv6 functionalityl2-topology Layer 2 topologyl2protocol-tunnel Layer 2 protocol tunnellacp Link aggregation control protocollldp Link Layer Discovery Protocolload-balance Specify load balance modeloopback-detect Loopback detect functionmac-address Mac-addressmac-authen MAC authenticate configure informationmac-forced-forwarding Mac-Forced Forwardingmac-learning MAC learningmac-limit MAC limitmac-spoofing-defend MAC spoofing defendmad Multi-active detectionmanagement-port Management portmatched Is Command can be matched by upper templatemld-snooping Specify parameters for MLD-Snoopingmonitor-link Monitor link configuration informationmulticast Multicast configuration informationnap NAP protocolnd Neighbor discoverynqa Network Quality Analysis(NQA)nqa-jitter Switch NQA jitter versionnqa-server Specify NQA echo serverntp-service Specify NTP (Network Time Protocol) configuration informationoam-mgr Oam-mgr viewobserve-port Configure observe port featureping Ping functionpoe Power over Ethernetport Portport-group Port-groupport-isolate Port isolatepppoe PPPOEqos QoS configurationradius-server Add or delete RADIUS server templatermon Specify RMON configurationroute-policy Route-policyroute-policy-change Specify route policy change parameterrouter Configure router informationrps Set RPS statusrrpp Rapid ring protection protocolrsa Specify RSA module configuration informationsavi Source Address Validation Improvementscp Set SCP serverscreen-width Set screen widthsep Smart ethernet protectionset Set the mode of power managementsflow SFlow modulesftp Set SFTP service attributeslave Backup switch from master to slavesleep Set device to sleep modesmart-link Smart link configuration informationsnmp-agent Specify SNMP(Simple Network Management Protocol) configuration informationssh Set the SSH (secure shell) configuration attribute ssl Security socket layerstack Stackstack-port Stack portstartup Startup configurationstelnet Set Stelnet service attributestp Specify Spanning Tree Protocol (STP) configuration informationsuppression Suppression, include broadcast-suppression,multicast-suppression and unicast-suppressionsys-netid System-netidsysname Specify the host nametcp Specify TCP(Transmission Control Protocol)configuration informationtelnet Set the status of the Telnet servicetemperature Device temperaturetftp Establish a TFTP connectiontftp-server TFTP servertime-range Specify time-range configuration informationtrace Trace route (switch) to host on Data Link Layertraffic Specify traffic configuration informationtraffic-filter Filter packets based on acltraffic-limit Limit the rate of the packets based on acltraffic-mirror Mirror packets based on acltraffic-policy Apply specific traffic policytraffic-redirect Redirect packets based on acltraffic-remark Remark packets based on acltraffic-secure Filter packets based on acltraffic-statistic Count packets based on acltransceiver Transceiveruser-bind User binduser-interface Configure the user terminal interfacevlan Virtual LANvoice-vlan Voice VLAN[xinhao]undo ssavi scpscreen-width sepset sflowsftp slavesleep smart-linksnmp-agent sshssl stackstack-port startupstelnet stpsuppression sys-netidsysname[xinhao]sys[xinhao]int[xinhao]interface g[xinhao]interface GigabitEthernet 0/0/1[xinhao-GigabitEthernet0/0/1]port[xinhao-GigabitEthernet0/0/1]port hy[xinhao-GigabitEthernet0/0/1]port hybrid pv[xinhao-GigabitEthernet0/0/1]port hybrid pvid vlan[xinhao-GigabitEthernet0/0/1]port hybrid pvid vlan 10[xinhao-GigabitEthernet0/0/1]qu[xinhao]Jan 15 2000 00:05:50 xinhao DS/4/DATASYNC_CFGCHANGE:OID configurations have been changed. The current change number is 28, the change loop count is 0, and the maximum number of records is 4095.[xinhao]qu<xinhao><xinhao><xinhao>di<xinhao>display vlanThe total number of vlans is : 3--------------------------------------------------------------------------------U: Up; D: Down; TG: Tagged; UT: Untagged;MP: Vlan-mapping; ST: Vlan-stacking;#: ProtocolTransparent-vlan; *: Management-vlan;--------------------------------------------------------------------------------VID Type Ports--------------------------------------------------------------------------------1 common UT:GE0/0/1(D) GE0/0/2(D) GE0/0/3(D) GE0/0/4(D)GE0/0/5(D) GE0/0/6(D) GE0/0/7(D) GE0/0/8(D)GE0/0/9(D) GE0/0/10(D) GE0/0/11(D) GE0/0/12(D)GE0/0/13(D) GE0/0/14(D) GE0/0/15(D) GE0/0/16(D)GE0/0/17(D) GE0/0/18(D) GE0/0/19(D) GE0/0/20(D)GE0/0/21(D) GE0/0/22(D) GE0/0/23(D) GE0/0/24(D)GE0/0/25(D) GE0/0/26(D) GE0/0/27(D) GE0/0/28(D)10 common757 common UT:GE0/0/24(D)VID Status Property MAC-LRN Statistics Description--------------------------------------------------------------------------------1 enable default enable disable VLAN 000110 enable default enable disable VLAN 0010757 enable default enable disable VLAN 0757<xinhao>sys<xinhao>system-viewEnter system view, return user view with Ctrl+Z.[xinhao]int[xinhao]interface g[xinhao]interface GigabitEthernet 0/0/1[xinhao-GigabitEthernet0/0/1]port[xinhao-GigabitEthernet0/0/1]port hyb[xinhao-GigabitEthernet0/0/1]port hybrid pvid[xinhao-GigabitEthernet0/0/1]port hybrid pvid vlan[xinhao-GigabitEthernet0/0/1]port hybrid pvid vlan 575Error: The VLAN does not exist.[xinhao-GigabitEthernet0/0/1]port hybrid pvid vlan 757[xinhao-GigabitEthernet0/0/1]portJan 15 2000 00:07:40 xinhao DS/4/DATASYNC_CFGCHANGE:OID configurations have been changed. The current change number is 29, the change loop count is 0, and the maximum number of records is 4095.[xinhao-GigabitEthernet0/0/1]port hy[xinhao-GigabitEthernet0/0/1]port hybrid un[xinhao-GigabitEthernet0/0/1]port hybrid untagged vlan 757Info: This operation may take a few seconds. Please wait for a moment...done. [xinhao-GigabitEthernet0/0/1]Jan 15 2000 00:07:50 xinhao DS/4/DATASYNC_CFGCHANGE:OID configurations have been changed. The current change number is 30, the change loop count is 0, and the maximum number of records is 4095.[xinhao-GigabitEthernet0/0/1]qu[xinhao-GigabitEthernet0/0/1]int[xinhao-GigabitEthernet0/0/1]port[xinhao-GigabitEthernet0/0/1]port hybrid pvid vlan 10[xinhao-GigabitEthernet0/0/1]port hybrid untagged vlan 10Info: This operation may take a few seconds. Please wait for a moment...done. [xinhao-GigabitEthernet0/0/1][xinhao-GigabitEthernet0/0/1][xinhao-GigabitEthernet0/0/1][xinhao-GigabitEthernet0/0/1]qu[xinhao-GigabitEthernet0/0/1]quitJan 15 2000 00:08:20 xinhao DS/4/DATASYNC_CFGCHANGE:OID configurations have been changed. The current change number is 32, the change loop count is 0, and the maximum number of records is 4095.[xinhao-GigabitEthernet0/0/1][xinhao]qu<xinhao>di<xinhao>display vlanThe total number of vlans is : 3--------------------------------------------------------------------------------U: Up; D: Down; TG: Tagged; UT: Untagged;MP: Vlan-mapping; ST: Vlan-stacking;#: ProtocolTransparent-vlan; *: Management-vlan;--------------------------------------------------------------------------------VID Type Ports--------------------------------------------------------------------------------1 common UT:GE0/0/1(D) GE0/0/2(D) GE0/0/3(D) GE0/0/4(D)GE0/0/5(D) GE0/0/6(D) GE0/0/7(D) GE0/0/8(D)GE0/0/9(D) GE0/0/10(D) GE0/0/11(D) GE0/0/12(D)GE0/0/13(D) GE0/0/14(D) GE0/0/15(D) GE0/0/16(D)GE0/0/17(D) GE0/0/18(D) GE0/0/19(D) GE0/0/20(D)GE0/0/21(D) GE0/0/22(D) GE0/0/23(D) GE0/0/24(D)GE0/0/25(D) GE0/0/26(D) GE0/0/27(D) GE0/0/28(D)10 common UT:GE0/0/1(D)757 common UT:GE0/0/1(D) GE0/0/24(D)VID Status Property MAC-LRN Statistics Description--------------------------------------------------------------------------------1 enable default enable disable VLAN 000110 enable default enable disable VLAN 0010757 enable default enable disable VLAN 0757<xinhao>sys<xinhao>system-viewEnter system view, return user view with Ctrl+Z. [xinhao]。