H3C_S7500E_BGP基础配置举例

合集下载

华三交换机配置方法及操作案例

华三交换机配置方法及操作案例

华三交换机配置方法及操作案例一、系统IP配置:[H3C]vlan20[H3C]management-vlan20[H3C]interfacevlan-interface 20 创建并进入管理VLAN[H3C]undointerface vlan-interface 20 删除管理VLAN接口[H3C-Vlan-interface20]ipaddress 192.168.1.2 255.255.255.0 配置管理VLAN接口静态IP地址(缺省为192.168.0.234)[H3C-Vlan-interface20]undoip address 删除IP 地址[H3C-Vlan-interface20]ipgateway192.168.1.1 指定缺省网关(默认无网关地址) [H3C-Vlan-interface20]undoip gateway[H3C-Vlan-interface20]shutdown 关闭接口[H3C-Vlan-interface20]undoshutdown 开启[H3C]displayip 显示管理VLAN接口IP的相关信息[H3C]displayinterface vlan-interface 20 查看管理VLAN的接口信息<H3C>debuggingip 开启IP调试功能<H3C>undodebugging ip二、DHCP客户端配置:[H3C-Vlan-interface20]ipaddress dhcp-alloc 管理VLAN接口通过DHCP方式获取IP地址[H3C-Vlan-interface20]undoip address dhcp-alloc 取消[H3C]displaydhcp 显示DHCP客户信息<H3C>debuggingdhcp-alloc 开启DHCP调试功能<H3C>undodebugging dhcp-alloc三、端口配置:[H3C]interfaceEthernet0/3[H3C-Ethernet0/3]shutdown[H3C-Ethernet0/3]speed100 速率,可为10,100,1000和auto(缺省)[H3C-Ethernet0/3]duplexfull 双工,可为half,full 和auto(缺省) 光口和汇聚后不能配置[H3C-Ethernet0/3]flow-control 开启流控,默认为关闭[H3C-Ethernet0/3]broadcast-suppression20 设置抑制广播百分比为20%,可取5,10,20,100,缺省为100,同时组播和未知单播也受此影响[H3C-Ethernet0/3]loopbackinternal 内环测试[H3C-Ethernet0/3]loopbackexternal 外环测试,需插接自环头,必须为全双工或者自协商模式[H3C-Ethernet0/3]portlink-type trunk 设置链路的类型为trunk,可为access(缺省),trunk[H3C-Ethernet0/3]porttrunk pvid vlan 20 设置20为该trunk的缺省VLAN,默认为1(trunk线路两端的PVID必须一致)[H3C-Ethernet0/3]portaccess vlan 20 将当前access端口加入指定的VLAN[H3C-Ethernet0/3]porttrunk permit vlan all 允许所有的VLAN通过当前的trunk端口,可多次使用该命令[H3C-Ethernet0/3]mdiauto 设置以太端口为自动监测,normal(缺省)为直通线,across为交叉线[H3C]link-aggregationEthernet 0/1 to Ethernet 0/4 将1-4口加入汇聚组,1为主端口,两端需要同时配置,设置了端口镜像以及端口隔离的端口无法汇聚[H3C]undolink-aggregation Ethernet 0/1 删除该汇聚组[H3C]link-aggregationmode egress 配置端口汇聚模式为根据目的MAC地址进行负荷分担,可选为 ingress,egress和both,缺省为both[H3C]monitor-portEthernet 0/2 将该端口设置为镜像端口,必须先设置镜像端口,删除时必须先删除被镜像端口,而且它们不能同在一个端口,该端口不能在汇聚组中,设置新镜像端口时,新取代旧,被镜像不变[H3C]mirroring-portEthernet 0/3 to Ethernet 0/4 both 将端口3和4设置为被镜像端口,both为同时监控接收和发送的报文,inbound表示仅监控接收的报文,outbound表示仅监控发送的报文[H3C]displaymirror[H3C]displayinterface Ethernet 0/3<H3C>resetcounters 清除所有端口的统计信息[H3C]displaylink-aggregation Ethernet 0/3 显示端口汇聚信息[H3C-Ethernet0/3]virtual-cable-test 诊断该端口的电路状况四、VLAN配置:[H3C]vlan2[H3C]undovlan all 删除除缺省VLAN外的所有VLAN,缺省VLAN不能被删除[H3C-vlan2]portEthernet 0/4 to Ethernet 0/7 将4到7号端口加入到VLAN2中,此命令只能用来加access端口,不能用来增加trunk或者hybrid端口[H3C-vlan2]port-isolateenable 打开VLAN内端口隔离特性,不能二层转发,默认不启用该功能[H3C-Ethernet0/4]port-isolateuplink-port vlan 2 设置4为VLAN2的隔离上行端口,用于转发二层数据,只能配置一个上行端口,若为trunk,则建议允许所有VLAN通过,隔离不能与汇聚同时配置[H3C]displayvlan all 显示所有VLAN的详细信息S1550E支持基于端口的VLAN,通过创建不同的user-group来实现,一个端口可以属于多个user-group,不属于同一个user-group的端口不能互相通信,最多支持50个user-group[H3C]user-group20 创建user-group 20,默认只存在user-group 1[H3C-UserGroup20]portEthernet 0/4 to Ethernet 0/7 将4到7号端口加入到VLAN20中,初始时都属于user-group1中[H3C]displayuser-group 20 显示user-group 20的相关信息五、系统管理:[H3C]mac-addressblackhole H-H-H vlan 1 在VLAN1中添加黑洞MAC[H3C]mac-addressstatic H-H-H interface Ethernet 0/1 vlan 1 在VLAN1中添加端口一的一个mac [H3C]mac-addresstimer aging 500 设置MAC地址表的老化时间为500s[H3C]displaymac-address[H3C]displayarp[H3C]mac-addressport-binding H-H-H interface Ethernet 0/1 vlan 1 配置端口邦定[H3C]displaymac-address port-binding[H3C]displaysaved-configuration[H3C]displaycurrent-configuration<H3C>save[H3C]restoredefault 恢复交换机出厂默认配置,恢复后需重启才能生效[H3C]displayversion<H3C>reboot[H3C]displaydevice[H3C]sysnamebigheap[H3C]info-centerenable 启用系统日志功能,缺省情况下启用[H3C]info-centerloghost ip 192.168.0.3 向指定日志主机(只能为UNIX或LINUX,不能为Windows)输出信息,需先开启日志功能,缺省关闭[H3C]info-centerloghost level 8 设置系统日志级别为8,默认为 5.级别说明:1.emergencies2.alerts 3.critical 4.errors 5.warnings 6.notifications rmational8.debugging<H3C>terminaldebugging 启用控制台对调试信息的显示,缺省控制台为禁用<H3C>terminallogging 启用控制台对日志信息的显示,缺省控制台为启用<H3C>terminaltrapping 启用控制台对告警信息的显示,缺省控制台为启用[H3C]displayinfo-center 显示系统日志的配置和缓冲区记录的信息[H3C]displaylogbuffer 显示日志缓冲区最近记录的指定数目的日志信息[H3C]displaytrapbuffer 显示告警缓冲区最近记录的指定数目的日志信息<H3C>resetlogbuffer 清除日志缓冲区的信息<H3C>resettrapbuffer 清除告警缓冲区的信息六、案例:某公司有一台三层交换机、两台二层交换机,给每个部门划分不用VLAN,但是VLAN要互联,三层到二层交换机为了防止单线故障使用链路聚合,vlan2为销售部,vlan3为财务部。

H3C交换机配置命令详解

H3C交换机配置命令详解

H3C交换机配置命令详解H3C交换机配置命令详解2016在中国交换机市场,H3C自2003年公司成立以来,已累计出货上百万台,以太网交换机端口数占全球的市场份额23.4%,在交换机领域内综合技术实力和市场份额排名均达到业界第一。

在h3c交换机的命令中,从园区到数据中心、盒式到箱式、从FE、GE到10G和100G,从L2到L4/7,从IPv4到IPv6,从接入到核心,用户都有最丰富的选择和灵活的组合。

下面是最新的2016年H3C交换机配置命令大全,希望对同学们学习交换机有所帮助!1、配置文件相关命令[Quidway]display current-configuration ;显示当前生效的配置[Quidway]display saved-configuration ;显示flash中配置文件,即下次上电启动时所用的配置文件reset saved-configuration ;檫除旧的配置文件reboot ;交换机重启display version ;显示系统版本信息2、基本配置[Quidway]super password ;修改特权用户密码[Quidway]sysname ;交换机命名[Quidway]interface ethernet 0/1 ;进入接口视图[Quidway]interface vlan x ;进入接口视图[Quidway-Vlan-interfacex]ip address 10.65.1.1 255.255.0.0 ;配置VLAN的IP地址[Quidway]ip route-static 0.0.0.0 0.0.0.0 10.65.1.2 ;静态路由=网关3、telnet配置[Quidway]user-interface vty 0 4 ;进入虚拟终端[S3026-ui-vty0-4]authentication-mode password ;设置口令模式[S3026-ui-vty0-4]set authentication-mode password simple 222 ;设置口令[S3026-ui-vty0-4]user privilege level 3 ;用户级别4、端口配置[Quidway-Ethernet0/1]duplex {half|full|auto} ;配置端口工作状态[Quidway-Ethernet0/1]speed {10|100|auto} ;配置端口工作速率[Quidway-Ethernet0/1]flow-control ;配置端口流控[Quidway-Ethernet0/1]mdi {across|auto|normal} ;配置端口平接扭接[Quidway-Ethernet0/1]port link-type {trunk|access|hybrid} ;设置端口工作模式[Quidway-Ethernet0/1]undo shutdown ;激活端口[Quidway-Ethernet0/2]quit ;退出系统视图5、链路聚合配置[DeviceA] link-aggregation group 1 mode manual ;创建手工聚合组1[DeviceA] interface ethernet 1/0/1 ;将以太网端口Ethernet1/0/1加入聚合组1[DeviceA-Ethernet1/0/1] port link-aggregation group 1[DeviceA-Ethernet1/0/1] interface ethernet 1/0/2 ;将以太网端口Ethernet1/0/1加入聚合组1[DeviceA-Ethernet1/0/2] port link-aggregation group 1[DeviceA] link-aggregation group 1 service-type tunnel # 在手工聚合组的基础上创建Tunnel业务环回组。

H3C核心交换机配置

H3C核心交换机配置

H3C核心交换机配置H3C核心交换机配置H3C每年将销售额的15%以上用于研发投入,在中国的'北京、杭州和深圳设有研发机构,在北京和杭州设有可靠性试验室以及产品鉴定测试中心。

以下是店铺整理的关于H3C核心交换机配置,希望大家认真阅读!1、核心交换机新建用户admin密码admin@h3c,并关联远程登录服务,如telnet web网页登录、ssh远程登录。

并开启telnet、web登录服务、ftp服务#local-user adminpassword cipher admin@h3cauthorization-attribute level 3service-type telnetservice-type ftpservice-type web#telnet server enable#ip http enable#user-interface vty 0 15authentication-mode scheme2、如需新增vlan网段,先新建对应vlan,新建网关、把网线口加入到此vlan,这里例举新增vlan11,网关172.30.162.1/24,把0/0/27-0/0/28口添加到vlan162#vlan 162port GigabitEthernet 0/0/27 to GigabitEthernet 0/0/28#interface Vlan-interface162ip address 172.30.162.1 255.255.255.03、开启DHCP自动获取功能,此功能一般只需要在核心交换机上开启,比如这里开启vlan162网段的DHCP功能,并禁止分配172.30.162.1-100#dhcp server ip-pool 162network 172.30.162.0 mask 255.255.255.0gateway-list 172.30.162.1dns-list 88.0.0.216 88.0.0.218#dhcp enable#dhcp server forbidden-ip 172.30.162.1 172.30.162.100关闭192.168.11.0网段的DHCP自动获取功能#undo dhcp server ip-pool 114、下联交换机口必须配置成trunk口,并允许所有vlan通过,比如2槽位板卡,开启trunk配置,这里例举2/0/1和2/0/2口要下接接入交换机#interface GigabitEthernet2/0/1port link-type trunkport trunk permit vlan 10 20 30 40 50 80 162 500 1000#interface GigabitEthernet2/0/2port link-type trunkport trunk permit vlan 10 20 30 40 50 80 162 500 10005、查看交换机端口使用情况,可查看端口激活状态up或者DOWN,端口工作速率,端口模式,端口对应的vlan号dis interface briefThe brief information of interface(s) under route mode: Link: ADM - administratively down; Stby - standbyProtocol: (s) - spoofingInterface Link Protocol Main IP DescriptionM-E0/0/0 DOWN DOWN --NULL0 UP UP(s) --Vlan1 UP UP --Vlan10 UP UP 192.168.10.1 POSVlan20 UP UP 192.168.20.1 KELIUVlan30 UP UP 192.168.30.1 MENJINVlan40 UP UP 192.168.40.1 TINGCHECHANGVlan50 UP UP 172.15.0.1 KEYONG-WIFI-IPVlan80 UP UP 192.168.80.1 OFFICE-WIFI-IPVlan162 UP UP 172.30.162.1 OFFICEVlan500 UP UP 192.168.60.1 AP-IPVlan1000 UP UP 172.16.100.1 MANGENT&TO-F100-E-G Vlan1101 UP UP 11.1.1.2 TO-CISCO-11.1.1.1Vlan1102 UP UP 11.1.1.6 TO-CISCO-11.1.1.5The brief information of interface(s) under bridge mode: Link: ADM - administratively down; Stby - standbySpeed or Duplex: (a)/A - auto; H - half; F - fullType: A - access; T - trunk; H - hybridInterface Link Speed Duplex Type PVID DescriptionBAGG1 UP 2G(a) F(a) A 1000 TO-F100-E-GBAGG2 UP 2G(a) F(a) T 1 WLAN-COTROLGE0/0/1 DOWN auto A T 1GE0/0/2 DOWN auto A T 1GE0/0/3 DOWN auto A T 16、查看各个vlan所有在线电脑ip,可通过命令查看在线ip地址-mac地址-学习来源(所接端口),下面列举查看管理vlan 1000网段交换机在线情况,可以看到下列ip的交换机都在正常工作,都在线dis arp vlan 1000Type: S-Static D-Dynamic M-MultiportIP Address MAC Address VLAN ID Interface Aging Type172.16.100.36 5cdd-703f-6e50 1000 GE0/0/13 18 D172.16.100.14 7425-8aef-811a 1000 GE0/0/13 13 D172.16.100.37 e468-a38e-ee5b 1000 GE0/0/14 3 D172.16.100.2 70ba-ef69-4adf 1000 BAGG1 3 D172.16.100.3 70f9-6d0d-e4d6 1000 BAGG2 15 D【H3C核心交换机配置】。

H3C S7500E系列以太网交换机操作手册

H3C S7500E系列以太网交换机操作手册

1.7 VLAN显示和维护
.............................................................................................................. 1-13
1.8 VLAN典型配置举例
3.2 配置Voice VLAN ................................................................................................................ 3-3
3.2.1 配置准备
........................................................................................... 2-3

3章 Voice VLAN配置
.........................................................................................................3-1
2.3 Isolate-user-vlan显示和维护
.............................................................................................. 2-2
2.4 Isolate-user-vlan典型配置举例
1.1 VLAN简介
.......................................................................................................................... 1-1

H3C S7500E

H3C S7500E

H3C S7500E(X)系列高端多业务路由交换机H3C S7500E(X)系列产品是杭州华三通信技术有限公司(以下简称H3C公司)面向融合业务网络的高端多业务路由交换机,该产品基于H3C自主知识产权的Comware V5/V7操作系统,以IRF2(Intelligent Resilient Framework 2,第二代智能弹性架构)、IRF3(Intelligent Resilient Framework3,第三代智能弹性架构)技术为系统基石的虚拟化软件系统,支持云数据中心化所需的TRILL、EVB、FCoE和MDC(一虚多)技术,完全兼容40GE和100GE以太网标准,进一步融合MPLS VPN、IPv6、网络安全、无线、无源光网络等多种网络业务,提供不间断转发、不间断升级、优雅重启、环网保护等多种高可靠技术,在提高用户生产效率的同时,保证了网络最大正常运行时间,从而降低了客户的总拥有成本(TCO)。

H3C S7500E(X)基于40G,100G平台设计,符合“限制电子设备有害物质标准(RoHS)”,是绿色环保的路由交换机。

H3C S7500E(X)系列包括S7510E(12槽)、S7508E-X(14槽,CLOS架构)、S7506E(8槽)、S7506E-V(垂直8槽)、H3C S7506E-S(8槽)、H3C S7006(8槽)、S7503E(5槽)、S7503E-S(3槽)、S7003(3槽)和S7502E(4槽)10款产品,除了7503E-S所有产品均支持冗余主控。

H3C S7500E(X)可广泛应用于城域网、数据中心、园区网核心和汇聚等多种网络环境,为用户提供了安全交换一体化、有线无线一体化、有源无源一体化的行业解决方案。

丰富的业务,适应融合业务网络发展趋势IRF2(第二代智能弹性架构—横向虚拟化)H3C S7500E(X)面向数据中心技术的演进,推出了IRF2为代表的软件虚拟化技术,提供2-4台主机的协同工作、统一管理和不间断维护功能;IRF2不仅成为数据中心交换设备高性能、虚拟化的关键技术,而且对于传统企业网应用,IRF2所提供的高可靠性和无缝升级、扩展能力,也成为H3C用户增值服务的重要组成部分;另外H3C 的IRF2虚拟化技术还可根据组网的要求支持长距离(80KM)的普通以太网万兆光纤堆叠。

h3c BGP路由策略应用本地优先级、团体属性功能的配置

h3c BGP路由策略应用本地优先级、团体属性功能的配置
bgp 1
//引入静态路由
import-route static
undo synchronization
//建立BGP邻居,这里是EBGP,用IBGP也是可以的
peer1.1.1.2 as-number 2
#
//设计好的3条静态黑洞路由
ip route-static1.2.0.0 255.255.0.0 NULL0
ip route-static1.2.3.0 255.255.255.0 NULL0
ip route-static2.0.0.0 255.255.0.0 NULL0
#
RTB配置
#
interface GigabitEthernet0/0
port link-mode route
ip address1.1.1.2 255.255.255.252
//对RTA应用入方向的路由策略com
peer1.1.1.1 route-policy com import
#
//路由策略com允许节点10配置
route-policy com permit node 10
//匹配ACL 2000
if-match acl 2000
//修改本地优先级为168
apply local-preference 168
二、组网图:
三、配置步骤:
适用设备和版本:MSR系列、Version 5.20, Release 1206后所有版本。
RTA配置
#
interface GigabitEthernet0/0
port link-mode route
ip address1.1.1.1 255.255.255.252
#

H3COSPF配置1-基本功能引入外部静态路由StubNSSA配置举例

H3COSPF配置1-基本功能引入外部静态路由StubNSSA配置举例

H3COSPF配置1-基本功能引⼊外部静态路由StubNSSA配置举例1.组⽹需求· 所有的交换机都运⾏OSPF,并将整个⾃治系统划分为3个区域。

· 其中Switch A和Switch B作为ABR来转发区域之间的路由。

· 配置完成后,每台交换机都应学到AS内的到所有⽹段的路由。

2.配置步骤1)switch A[SwitchA] router id10.2.1.1[SwitchA] ospf[SwitchA-ospf-1] area 0[SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.00.0.0.255[SwitchA-ospf-1-area-0.0.0.0] quit[SwitchA-ospf-1] area 1[SwitchA-ospf-1-area-0.0.0.1] network 10.2.1.00.0.0.2552)switch B[SwitchB] router id10.3.1.1[SwitchB] ospf[SwitchB-ospf-1] area 0[SwitchB-ospf-1-area-0.0.0.0] network 10.1.1.00.0.0.255[SwitchB-ospf-1-area-0.0.0.0] quit[SwitchB-ospf-1] area 2[SwitchB-ospf-1-area-0.0.0.2] network 10.3.1.00.0.0.2553)switch C[SwitchC] router id10.4.1.1[SwitchC] ospf[SwitchC-ospf-1] area 1[SwitchC-ospf-1-area-0.0.0.1] network 10.2.1.00.0.0.255[SwitchC-ospf-1-area-0.0.0.1] network 10.4.1.00.0.0.2554)switch D[SwitchD] router id10.5.1.1[SwitchD] ospf[SwitchD-ospf-1] area 2[SwitchD-ospf-1-area-0.0.0.2] network 10.3.1.00.0.0.255[SwitchD-ospf-1-area-0.0.0.2] network 10.5.1.00.0.0.2553.配置switch C为ASBR引⼊外部路由(静态路由),且路由信息可正确的在AS内传播。

H3C配置命令09-端口基本配置命令

H3C配置命令09-端口基本配置命令

H3C S7500系列以太网交换机命令手册端口基本配置目录目录第1章端口基本配置命令.......................................................................................................1-11.1 端口基本配置命令..............................................................................................................1-11.1.1 broadcast-suppression(以太网端口视图)...........................................................1-11.1.2 broadcast-suppression(VLAN视图)....................................................................1-21.1.3 copy configuration...................................................................................................1-31.1.4 description...............................................................................................................1-41.1.5 display brief interface..............................................................................................1-51.1.6 display interface......................................................................................................1-61.1.7 display loopback-detection......................................................................................1-91.1.8 display port............................................................................................................1-101.1.9 display transceiver-information interface..............................................................1-101.1.10 duplex..................................................................................................................1-111.1.11 flow-control..........................................................................................................1-121.1.12 flow-control enable..............................................................................................1-131.1.13 flow-interval.........................................................................................................1-131.1.14 hardspeedup.......................................................................................................1-141.1.15 interface...............................................................................................................1-151.1.16 jumboframe enable.............................................................................................1-161.1.17 loopback-detection enable..................................................................................1-161.1.18 loopback-detection interval-time.........................................................................1-171.1.19 mdi.......................................................................................................................1-181.1.20 multicast-suppression.........................................................................................1-181.1.21 port access vlan..................................................................................................1-201.1.22 port hybrid pvid vlan............................................................................................1-201.1.23 port hybrid vlan....................................................................................................1-211.1.24 port link-type........................................................................................................1-221.1.25 port trunk permit vlan..........................................................................................1-231.1.26 port trunk pvid vlan..............................................................................................1-241.1.27 reset counters interface.......................................................................................1-241.1.28 shutdown.............................................................................................................1-251.1.29 speed...................................................................................................................1-251.1.30 speedup...............................................................................................................1-261.1.31 virtual-cable-test..................................................................................................1-27第1章端口基本配置命令1.1 端口基本配置命令1.1.1 broadcast-suppression(以太网端口视图)【命令】broadcast-suppression{ ratio | bandwidth bandwidth| pps pps }undo broadcast-suppression【视图】以太网端口视图【参数】ratio:指定以太网端口允许接收的最大广播流量的百分比,取值范围为1~100,缺省值为100。

H3CEPON常用配置命令-S7503E

H3CEPON常用配置命令-S7503E

H3CEPON常⽤配置命令-S7503E1. 配置OLT接⼝vlan[H3C]interface Olt 2/0/1[H3C -Olt2/0/1] port hybrid vlan 1 to 4094 tagged (或untagged)2. 创建ONU逻辑接⼝[H3C]interface Olt 2/0/1[H3C -Olt2/0/1]using onu 1 to 32 (假设此OLT接⼝使⽤了1分32的分光器,)Please wait...Done.[H3C -Olt2/0/1]3. 配置ONU设备MAC地址和ONU逻辑接⼝绑定[H3C] interface onu 2/0/1:1[H3C-Onu2/0/1:1] bind onuid 00e0-fc70-2d6d4. 配置ONU逻辑接⼝为trunk模式[H3C] interface onu 2/0/1:1[H3C-Onu2/0/1:1] port link-type trunk5. 配置ONU逻辑接⼝PVID (ONU上⾏PON⼝打vlan标签)[H3C] interface onu 2/0/1:1[H3C-Onu2/0/1:1] port trunk pvid vlan 26. 配置ONU PON接⼝的上⾏带宽[H3C] interface onu 2/0/1:1[H3C-Onu2/0/1:1] upstream-sla maximum-bandwidth 16007. 配置ONU PON接⼝的下⾏带宽[H3C] interface onu 2/0/1:1[H3C-Onu2/0/1:1] bandwidth downstream max-bandwidth 20008. 配置ONU以太⽹uni接⼝的上⾏带宽[H3C] interface onu 2/0/1:1[H3C-Onu2/0/1:1] uni 1 port-policy inbound cir 10249. 配置ONU以太⽹uni接⼝的上⾏带宽[H3C] interface onu 2/0/1:1[H3C-Onu2/0/1:1] uni 1 port-policy inbound cir 102410. 配置ONU以太⽹uni接⼝端⼝隔离[H3C] interface onu 2/0/1:1[H3C-Onu2/0/1:1] uni 1 port-isolate11. 配置ONU以太⽹uni接⼝打vlan标签[H3C] interface onu 2/0/1:1[H3C-Onu2/0/1:1] uni 1 vlan-mode tag pvid 10112. 配置上⾏GE接⼝协商模式[H3C] interface G 2/1/1[H3C-Gigabit 2/1/1] speed 1000[H3C-Gigabit 2/1/1] duplex full13. ONU注册信息显⽰[H3C] display onuinfo slot 214. 查询ONU注册、注销命令[H3C] display onu-event interface onu 2/0/8:1 Date Time ONU Event ONU Status2006/06/28 13:57:03 Registration Up2006/06/28 13:57:06 Deregistration Down15. 重启ONU[H3C] interface onu 2/0/8:1[H3C-Onu2/0/8:1] reboot onu16. 配置设备名称[H3C]sysname HTSM[HTSM]17. 配置管理接⼝,管理vlan[H3C]vlan 4 (假设vlan 4 为管理vlan)[H3C-vlan3]quit[H3C] interface GigabitEthernet 1/1/1[H3C –Giga1/1/1]port link-type trunk[H3C –Giga1/1/1]port trunk permit vlan 4[H3C –Giga1/1/1]quit[H3C]上⾏接⼝如果直接接电脑,需要配置上⾏接⼝为access模式[H3C] interface GigabitEthernet 1/1/1 [H3C –Giga1/1/1]port link-type access[H3C –Giga1/1/1]port access vlan 4[H3C –Giga1/1/1]quit18. 配置设备管理IP地址,⽹关[H3C] interface Vlan-interface 4[H3C -Vlan-interface4]%Oct 14 14:18:59:276 2009 H3C IFNET/4/LINK UPDOWN: Vlan-interface4001: link status is UP [H3C -Vlan-interface4] ip address 10.164.0.2 24%Oct 14 14:19:08:283 2009 H3C IFNET/4/UPDOWN:Line protocol on the interface Vlan-interface4 is UP[H3C -Vlan-interface4] quit[H3C] ip route-static 0.0.0.0 0.0.0.0 10.164.0.119. 配置DHCP[H3C] dhcp enable[H3C] dhcp server ip-pool 1[Abiao-dhcp-pool-1] network 192.168.1.0 24[Abiao-dhcp-pool-1] gateway-list 192.168.1.1[Abiao-dhcp-pool-1] dns 202.99.96.68[Abiao-dhcp-pool-1] quit[H3C] interface Vlan-interface 1[H3C -Vlan-interface4] ip address 192.168.1.120. 配置OSPF[H3C] ospf[Abiao-ospf-1] area 0.0.0.0[Abiao-ospf-1-area-0.0.0.0] network 192.168.1.1 0.0.0.255 [Abiao-ospf-1-area-0.0.0.0] area 0.0.0.1 [Abiao-ospf-1-area-0.0.0.0] network 192.168.1.2 0.0.0.255 [Abiao-ospf-1-area-0.0.0.0] quit[Abiao-ospf-1] quit21. 配置telnet登陆账号及telnet服务[H3C_OLT_LCGY] telnet server enable% Start Telnet server[H3C_OLT_LCGY][H3C_OLT_LCGY] local-user admin (管理员账户)New local user added.[H3C_OLT_LCGY-luser-admin] password simple h3c[H3C_OLT_LCGY-luser-admin] service-type telnet[H3C_OLT_LCGY-luser-admin] authorization-attribute level 3 [H3C_OLT_LCGY-luser-admin] quit [H3C_OLT_LCGY][H3C_OLT_LCGY] user-interface vty 0 4[H3C_OLT_LCGY_vty_0_4] authentication mode scheme[H3C_OLT_LCGY_vty_0_4] quit[H3C_OLT_LCGY]22. 配置ACL访问控制列表举例:禁⽌通过ONU1 设备接⼊的客户端访问Server (IP 地址为192.168.4.1)[H3C] acl number 3000 [H3C-acl-standard-3000] rule 10 deny ip source any destination192.168.4.1 0.0.0.0[H3C-acl-standard-3000] quit[H3C] traffic classifier c_1[H3C-classifier-c_1] if-match acl 3000[H3C-classifier-c_1] quit[H3C] traffic behavior b_1[H3C-behavior-b_1] filter deny[H3C-behavior-b_1] quit[H3C] qos policy p_1[H3C-qospolicy-p_1] classifier c_1 behavior b_1[H3C-qospolicy-p_1] quit[H3C] interface Onu 1/0/1:1[H3C-Onu1/0/1:1] qos apply policy p_1 inbound23. 配置⽹管snmp参数[H3C_OLT_LCGY]snmp-agent[H3C_OLT_LCGY]snmp-agent community read noc-911 acl 2000[H3C_OLT_LCGY]snmp-agent community write noc-007 acl 2000[H3C_OLT_LCGY]snmp-agent sys-info version all[H3C_OLT_LCGY]snmp-agent trap enable[H3C_OLT_LCGY]snmp-agent target-host trap address udp-domain 221.129.231.22 params securityname security v1 [H3C_OLT_LCGY]24. 创建vlan[H3C_OLT_LCGY]vlan allPlease wait.................................................................... ................ Done.[H3C_OLT_LCGY]25. 配置在OLT接⼝上打外层标签功能(QinQ)举例:对于内层标签10,打上外层标签1000[ProviderA] interface olt 1/0/1[ProviderA-Olt1/0/1] port link-type hybrid[ProviderA-Olt1/0/1] port hybrid vlan 10 1000 tagged[ProviderA-Olt1/0/1] qinq vid 1000[ProviderA-Olt1/0/1-vid-1000] raw-vlan-id inbound 10[ProviderA-Olt1/0/1-vid-1000] quit[ProviderA] interface gigabitethernet 1/1/1[ProviderA-GigabitEthernet1/1/1] port link-type trunk[ProviderA-GigabitEthernet1/1/1] port trunk permit vlan 100026. 保存配置[H3C_OLT_LCGY]quitsaveThe current configuration will be written to the device. Are you sure? [Y/N]:yPlease input the file name(*.cfg)[flash:/startup.cfg](To leave the existing filename unchanged, press the enter key): Validating file. Please wait...............Saved the current configuration to mainboard device successfully. Configuration is saved to device successfully.27. ONU 4 端⼝对上⾏报⽂打上同样vlan标签,且进⾏vlan隔离配置#interface Onu2/0/1:1bind onuid 0023-8971-edf3uni 1 port-isolateuni 2 port-isolateuni 3 port-isolateuni 4 port-isolateport link-type trunkport trunk pvid vlan 2#28. ONU升级命令[ProviderA] interface olt 1/0/1[ProviderA-Olt1/0/1] update onu filename file.app。

H3C路由器配置命令表

H3C路由器配置命令表

H3C路由器配置命令表H3C路由器配置命令表1·路由器基本配置命令1·1 接口配置命令●interface <interface_name>: 进入接口配置模式●ip address <ip_address> <subnet_mask>: 设置接口IP地质和子网掩码●description <description>: 给接口添加描述信息1·2 路由配置命令●ip route <destination_network> <subnet_mask> <next_hop>: 配置路由●ip default-gateway <default-gateway_address>: 配置默认网关●ip routing: 开启路由功能1·3 主机名与域名配置命令●hostname <hostname>: 设置路由器主机名●domn-name <domn_name>: 设置路由器域名●enable password <password>: 设置访问特权模式的密码●line vty 0 4、进入VTY线路配置模式●login: 启用登录验证●password <password>: 设置VTP登录密码●exit: 退出线路配置模式2·协议配置命令2·1 静态路由配置命令●ip route-static <destination_network><subnet_mask> <next_hop>: 配置静态路由2·2 动态路由配置命令●router rip: 进入RIP路由配置模式●network <network_address>: 配置本地网络●router ospf <process_id>: 进入OSPF路由配置模式●network <network_address> <subnet_mask> area <area_id>: 配置本地网络●router bgp <AS_number>: 进入BGP路由配置模式●network <network_address> mask<subnet_mask>: 配置本地网络●neighbor <neighbor_address> remote-as<AS_number>: 配置BGP邻居3·安全配置命令3·1 访问控制列表(ACL)配置命令●access-list <acl_number> {permit ---●deny} <protocol> <source_ip> <destination_ip>: 配置ACL规则●interface <interface_name>●inbound----outbound ip access-group<acl_number>: 将ACL应用于接口的进或出方向3·2 密码和认证配置命令●enable secret <password>: 设置特权模式密码●username <username> password <password>: 创建本地用户名和密码4·网络地质转换(NAT)配置命令4·1 静态NAT配置命令●interface <inside_interface>●nat static <inside_local_ip><outside_global_ip>4·2 动态NAT配置命令●interface <inside_interface>●nat dynamic <outside_interface>5·本地管理配置命令5·1 SSH配置命令●rsa local-key-pr create: RSA密钥对●ssh server enable: 启用SSH服务器●ssh user <username> authentication-type password: 设置SSH用户身份验证方式为密码●user-interface vty 0 4、进入VTY用户界面配置模式●authentication-mode aaa: 设置认证模式为AAA●protocol inbound ssh: 允许SSH访问5·2 SNMP配置命令●snmp-agent sys-info version <version>: 设置SNMP版本●snmp-agent community read <community_name>: 配置SNMP读社区字符串附件:本文档不涉及附件。

H3C-s7503e-s的配置实例

H3C-s7503e-s的配置实例

H3C-s7503e-s的配置实例sysname Spzx-H3C-s7503e-s //对交换机进行命名super password level 3 cipher xxxx //配置超级用户的密码(CIPHER:表示改密码不以明文形式出现在交换机配置文件中)user-interface vty 0 4 //配置远程登录的接口(如:远程TELNET管理)set authentication password cipher XXXX //配置远程登录接口验证密码telnet server enable //允许远程终端通过telnet方式管理该交换机gvrp //配置交换机可以相互学习VLAN vlan 1 //进入VLAN1name guanli-vlan //命名VLAN1vlan 2name jisuanjijiaoshi-1vlan 3name jisuanjijiaoshi-2vlan 4name jisuanjijiaoshi-3vlan 5name jisuanjijiaoshi-4vlan 6name jisuanjijiaoshi-5vlan 7name shitanguanlizhujivlan 8name jiaoyujuchengyuwangvlan 9name guangboxitongvlan 10name jiaoshijistp enableinterface Vlan-interface 1 //到VLAN 1接口下ip add 192.168.100.1 255.255.255.0 //配置VLAN1接口的地址interface Vlan-interface2ip address 192.168.101.1 255.255.255.0interface Vlan-interface3ip address 192.168.102.1 255.255.255.0interface Vlan-interface4ip address 192.168.103.1 255.255.255.0interface Vlan-interface5ip address 192.168.104.1 255.255.255.0interface Vlan-interface6ip address 192.168.105.1 255.255.255.0interface Vlan-interface7ip address 192.168.200.1 255.255.255.0interface Vlan-interface8ip address 172.16.20.3 255.255.255.192interface Vlan-interface9ip address 192.168.1.1 255.255.255.0interface Vlan-interface10ip address 192.168.10.1 255.255.255.0interface g2/0/1 //进入接口g2/0/1下对该接口进行配置port link-type trunk //配置该接口为TRUNK模式port trunk permit vlan all //配置接口在TRUNK模式下允许所有VLAN 通过gvrp registration fixed //配置下面连接到该接口的交换机从该接口学习VLAN,下面连接到该接口的交换机在连接接口下需要配置为gvrp registration normalgvrp //启用学习VLAN模式interface GigabitEthernet2/0/2port link-type trunkport trunk permit vlan allgvrp registration fixedgvrpinterface GigabitEthernet2/0/3 port link-type trunkport trunk permit vlan all gvrp registration fixedgvrpinterface GigabitEthernet2/0/4 port link-type trunkport trunk permit vlan all gvrp registration fixedgvrpinterface GigabitEthernet2/0/5 port link-type trunkport trunk permit vlan all gvrp registration fixedgvrpinterface GigabitEthernet2/0/6 port link-type trunkport trunk permit vlan all gvrp registration fixedgvrpinterface GigabitEthernet2/0/7 port link-type trunkport trunk permit vlan all gvrp registration fixedgvrpinterface GigabitEthernet2/0/8 port link-type trunkport trunk permit vlan all gvrp registration fixedgvrpip route-static 0.0.0.0 0.0.0.0 192.168.100.2 //建立静态路由,即上外网路由,下一跳地址为防火墙的地址ip route-static 172.16.0.0 255.255.0.0 172.16.20.1 //建立城域网的路由。

H3C交换机基础配置命令详解

H3C交换机基础配置命令详解

H3C交换机基础配置命令详解交换机的配置华为与H3C比较类似,这里面我们今天就来了解下,基础的配置命令,大家可以重点看下vlan的划分,这个在项目应用中较多。

一、基本配置<H3C> //用户直行模式提示符,用户视图<H3C>system-view //进入配置视图[H3C] sysname xxx //设置主机名成为xxx这里使用修改特权用户密码一、用户配置<H3C>system-view[H3C]super passwordH3C //设置用户分级密码[H3C]undo superpassword //删除用户分级密码[H3C]localuser bigheap 1234561 //Web网管用户设置,1(缺省)为管理级用户,缺省admin,admin[H3C]undo localuserbigheap //删除Web网管用户[H3C]user-interface aux0 //只支持0[H3C-Aux]idle-timeout 250 //设置超时为2分50秒,若为0则表示不超时,默认为5分钟[H3C-Aux]undoidle-timeout //恢复默认值[H3C]user-interface vty0 //只支持0和1[H3C-vty]idle-timeout 250 //设置超时为2分50秒,若为0则表示不超时,默认为5分钟[H3C-vty]undoidle-timeout //恢复默认值[H3C-vty]set authentication password123456 //设置telnet密码,必须设置[H3C-vty]undo set authenticationpassword //取消密码[H3C]displayusers //显示用户[H3C]displayuser-interface //用户界面状态三、VLAN配置[H3C]vlan 2 //创建VLAN2[H3C]undo vlanall //删除除缺省VLAN外的所有VLAN,缺省VLAN不能被删除[H3C-vlan2]port Ethernet 0/4 to Ethernet0/7 //将4到7号端口加入到VLAN2中,此命令只能用来加access端口,不能用来增加trunk或者hybrid端口[H3C-vlan2]port-isolateenable //打开VLAN内端口隔离特性,不能二层转发,默认不启用该功能[H3C-Ethernet0/4]port-isolate uplink-portvlan 2 //设置4为VLAN2的隔离上行端口,用于转发二层数据,只能配置一个上行端口,若为trunk,则建议允许所有VLAN通过,隔离不能与汇聚同时配置[H3C]display vlanall //显示所有VLAN的详细信息S1550E支持基于端口的VLAN,通过创建不同的user-group来实现,一个端口可以属于多个user-group,不属于同一个user-group的端口不能互相通信[H3C]user-group20 //创建user-group 20,默认只存在user-group 1[H3C-UserGroup20]port Ethernet 0/4 toEthernet 0/7 //将4到7号端口加入到VLAN20中,初始时都属于user-group 1中[H3C]display user-group20 //显示user-group 20的相关信息四、交换机IP配置[H3C]vlan 20 //创建vlan[H3C]management-vlan 20 //管理vlan[H3C]interface vlan-interface20 //进入并管理vlan20[H3C]undo interface vlan-interface20 //删除管理VLAN接口[H3C-Vlan-interface20]ip address192.168.1.2 255.255.255.0 //配置管理VLAN接口静态IP地址(缺省为192.168.0.234) [H3C-Vlan-interface20]undo ipaddress //删除IP地址[H3C-Vlan-interface20]ip gateway192.168.1.1 //指定缺省网关(默认无网关地址)[H3C-Vlan-interface20]undo ip gateway[H3C-Vlan-interface20]shutdown //关闭接口[H3C-Vlan-interface20]undoshutdown //开启[H3C]display ip //显示管理VLAN接口IP的相关信息[H3C]display interface vlan-interface20 //查看管理VLAN的接口信息<H3C>debuggingip //开启IP调试功能<H3C>undo debugging ip五、DHCP客户端配置[H3C-Vlan-interface20]ip addressdhcp-alloc // 管理VLAN接口通过DHCP方式获取IP地址[H3C-Vlan-interface20]undo ip addressdhcp-alloc // 取消[H3C]display dhcp //显示DHCP客户信息<H3C>debuggingdhcp-alloc //开启DHCP调试功能<H3C>undo debugging dhcp-alloc六、端口配置[H3C]interface Ethernet0/3 //进入端口[H3C-Ethernet0/3]shutdown //关闭端口[H3C-Ethernet0/3]speed100 //速率可为10,100,1000和auto(缺省)[H3C-Ethernet0/3]duplexfull //双工,可为half,full和auto(缺省) 光口和汇聚后不能配置[H3C-Ethernet0/3]flow-control //开启流控,默认为关闭[H3C-Ethernet0/3]broadcast-suppression20 //设置抑制广播百分比为20%,可取5,10,20,100,缺省为100,同时组播和未知单播也受此影响[H3C-Ethernet0/3]loopbackinternal //内环测试[H3C-Ethernet0/3]loopbackexternal //外环测试,需插接自环头,必须为全双工或者自协商模式[H3C-Ethernet0/3]port link-typetrunk //设置链路的类型为trunk,可为access(缺省),trunk[H3C-Ethernet0/3]port trunk pvid vlan20 //设置20为该trunk 的缺省VLAN,默认为1(trunk线路两端的PVID必须一致) [H3C-Ethernet0/3]port access vlan20 //将当前access端口加入指定的VLAN[H3C-Ethernet0/3]port trunk permit vlanall //允许所有的VLAN通过当前的trunk端口,可多次使用该命令[H3C-Ethernet0/3]mdiauto //设置以太端口为自动监测,normal(缺省)为直通线,across为交叉线[H3C]link-aggregation Ethernet 0/1 toEthernet 0/4 //将1-4口加入汇聚组,1为主端口,两端需要同时配置,设置了端口镜像以及端口隔离的端口无法汇聚[H3C]undo link-aggregation Ethernet0/1 //删除该汇聚组[H3C]link-aggregation modeegress //配置端口汇聚模式为根据目的MAC地址进行负荷分担,可选为ingress,egress和both,缺省为both[H3C]monitor-port Ethernet0/2 //将该端口设置为镜像端口,必须先设置镜像端口,删除时必须先删除被镜像端口,而且它们不能同在一个端口,该端口不能在汇聚组中,设置新镜像端口时,新取代旧,被镜像不变[H3C]mirroring-port Ethernet 0/3 toEthernet 0/4 both //将端口3和4设置为被镜像端口,both为同时监控接收和发送的报文,inbound表示仅监控接收的报文,outbound表示仅监控发送的报文[H3C]display mirror[H3C]display interface Ethernet 0/3<H3C>resetcounters //清除所有端口的统计信息[H3C]display link-aggregation Ethernet0/3 //显示端口汇聚信息[H3C-Ethernet0/3]virtual-cable-test //诊断该端口的电路状况七、集群配置S2100只能作为成员交换机加入集群中,加入后系统名改为'集群名_成员编号.原系统名'的格式.即插即用功能通过两个功能实现: 集群管理协议MAC组播地址协商和管理VLAN协商[H3C]cluster enable //启用群集功能,缺省为启用[H3C]cluster //进入群集视图[H3C-cluster]administrator-address H-H-Hname switch H-H-H为命令交换机的MAC,加入switch集群[switch_1.H3C-cluster]undoadministrator-address //退出集群[H3C]displaycluster //显示集群信息[H3C]management-vlan2 //集群报文只能在管理VLAN中转发,同一集群需在同一个管理VLAN中,需在建立集群之前指定管理VLAN八、QOS优先级配置QoS配置步骤:设置端口的优先级,设置交换机信任报文的优先级方式,队列调度,端口限速[H3C-Ethernet0/3]priority7 //设置端口优先级为7,默认为0[H3C]priority-trustcos //设置交换机信任报文的优先级方式为cos(802.1p优先级,缺省值),还可以设为dscp方式(dscp优先级方式) [H3C]queue-scheduler hq-wrr 2 4 68 //设置队列调度算法为HQ-WRR(默认为WRR),权重为2,4,6,8[H3C-Ethernet0/3]line-rate inbound29 //将端口进口速率限制为2Mbps,取1-28时,速率为rate*8*1024/125,即64,128,192...1.792M;29-127时,速率为(rate-27)*1024,即2M,3M,4M...100M,千兆时可继续往下取,128-240时,速率为(rate-115)*8*1024,即104M,112M,120M...1000M[H3C]displayqueue-scheduler //显示队列调度模式及参数[H3C]displaypriority-trust //显示优先级信任模式九、系统管理[H3C]mac-address blackhole H-H-H vlan1 //在VLAN1中添加黑洞MAC[H3C]mac-address static H-H-H interfaceEthernet 0/1 vlan 1 //在VLAN1中添加端口一的一个mac[H3C]mac-address timer aging500 //设置MAC地址表的老化时间为500s[H3C]display mac-address[H3C]display arp[H3C]mac-address port-binding H-H-Hinterface Ethernet 0/1 vlan 1 配置端口邦定[H3C]display mac-address port-binding[H3C]display saved-configuration[H3C]display current-configuration<H3C>save[H3C]restoredefault //恢复交换机出厂默认配置,恢复后需重启才能生效[H3C]display version<H3C>reboot[H3C]display device[H3C]sysname bigheap[H3C]info-centerenable //启用系统日志功能,缺省情况下启用[H3C]info-center loghost ip192.168.0.3 //向指定日志主机(只能为UNIX或LINUX,不能为Windows)输出信息,需先开启日志功能,缺省关闭[H3C]info-center loghost level8 //设置系统日志级别为8,默认为5.级别说明:1.emergencies 2.alerts 3.critical4.errors 5.warnings 6.notifications rmational 8.debugging<H3C>terminaldebugging //启用控制台对调试信息的显示,缺省控制台为禁用<H3C>terminallogging //启用控制台对日志信息的显示,缺省控制台为启用<H3C>terminaltrapping //启用控制台对告警信息的显示,缺省控制台为启用[H3C]displayinfo-center //显示系统日志的配置和缓冲区记录的信息[H3C]displaylogbuffer //显示日志缓冲区最近记录的指定数目的日志信息[H3C]displaytrapbuffer //显示告警缓冲区最近记录的指定数目的日志信息<H3C>resetlogbuffer //清除日志缓冲区的信息<H3C>resettrapbuffer //清除告警缓冲区的信息十、网络协议配置NDP即是邻居发现协议,S1550E只能开启或关闭NDP,无法配置,默认有效保留时间为180s,NDP报文发送的间隔60s[H3C]ndp enable //缺省情况下是开启的[H3C-Ethernet0/3]ndpenable //缺省情况下开启[H3C]display ndp //显示NDP配置信息[H3C]display ndp interface Ethernet0/1 //显示指定端口NDP 发现的邻居信息<H3C>debugging ndp interface Ethernet0/1// HABP协议即HuaweiAuthentication Bypass Protocol,华为鉴权旁路协议,是用来解决当交换机上同时配置了802.1x和HGMPv1/v2时,未经授权和认证的端口上将过滤HGMP报文,从而使管理设备无法管理下挂的交换机的问题。

H3CBGP配置

H3CBGP配置

H3CBGP配置.1.14BGP典型配置举例1.14.1BGP基本配置1.组网需求2.组网图3.配置步骤(1)配置各接口的IP地址(略)(2)配置IBGP连接为了防止端口状态不稳定引起路由震荡,本举例使用Loopback接口来创建IBGP对等体。

使用Loopback接口创建IBGP对等体时,因为Loopback接口不是两对等体实际连接的接口,所以,必须使用peer connect-interface命令将Loopback接口配置为BGP连接的源接口。

在AS 65009内部,使用OSPF协议,保证Router B到Router C的Loopback接口路由可达。

# 配置Router B。

system-view [RouterB] bgp 65009[RouterB-bgp] router-id 2.2.2.2[RouterB-bgp] peer 3.3.3.3 as-number 65009[RouterB-bgp] peer 3.3.3.3 connect-interface loopback 0 [RouterB-bgp] quit [RouterB] ospf 1[RouterB-ospf-1] area 0[RouterB-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0 [RouterB-ospf-1-area-0.0.0.0] network 9.1.1.1 0.0.0.255 [RouterB-ospf-1-area-0.0.0.0] quit [RouterB-ospf-1] quit # 配置Router C。

system-view1/18. [RouterC] bgp 65009[RouterC-bgp] router-id 3.3.3.3[RouterC-bgp] peer 2.2.2.2 as-number 65009[RouterC-bgp] peer 2.2.2.2 connect-interface loopback 0 [RouterC-bgp] quit [RouterC] ospf 1[RouterC-ospf-1] area 0[RouterC-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0 [RouterC-ospf-1-area-0.0.0.0] network 9.1.1.0 0.0.0.255 [RouterC-ospf-1-area-0.0.0.0] quit [RouterC-ospf-1] quit [RouterC] display bgp peerBGP local router ID : 3.3.3.3 Local AS number : 65009Total number of peers : 1 Peers in established state : 1Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State2.2.2.2 65009 7 10 0 0 00:06:09 Established以上显示信息表明Router B和Router C之间的IBGP连接已经建立。

H3C配置经典全面教程

H3C配置经典全面教程

H3C配置经典全面教程(经验和资料收集整理版)1 H3C MSR路由器、交换机基本调试步骤(初学级别):1.1如何登陆进路由器或交换机1.1.1搭建配置环境第一次使用H3C系列路由器时,只能通过配置口(Console)进行配置。

1)将配置电缆的RJ-45一端连到路由器的配置口(Console)上。

2)将配置电缆的DB-9(或DB-25)孔式插头接到要对路由器进行配置的微机或终端的串口上。

备注:登陆交换机的方法与路由器的一致,现仅用路由器举1.1.2设置微机或终端的参数(进入路由器或交换机)1)打开微机(笔记本电脑)或终端。

如果使用微机进行配置,需要在微机上运行终端仿真程序,如Windows的超级终端。

2)第二步:设置终端参数a、命名此终端 H3C或者自己想命的名b、选择串口一般选用COM口,常选用COM1c、设置终端具体参数(此处点击“默认值”即可)d、打开路由器的电源,路由器进行启动e、当路由器启动完毕后,回车几下,当出现<H3C>时即可配置路由器。

1.2路由器基本调试命令1.2.1使用本地用户进行telnet登录的认证<H3C> system-view 进入系统视图[H3C]telnet server enable 打开路由器的telnet功能[H3C]configure-user count 5设置允许同时配置路由器的用户数[H3C]local-user telnet 添加本地用户(此处为telnet用户登陆时使用的用户名)[H3C-luser-telnet]password simple h3c 设置telnet用户登陆时所使用的密码[H3C-luser-telnet]service-type telnet 设置本地用户的服务类型(此处为telnet)[H3C-luser-telnet]level 3 设置本地用户的服务级别[H3C-luser-telnet]quit 退出本地用户视图[H3C][H3C]user-interface vty 0 4 进入用户视图[H3C-ui-vty0-4]authentication-mode scheme 选择“scheme”认证方式备注:红色部分可以由客户自行设置,此处仅做举例时使用!1.2.2路由器接口的配置为接口配置ip地址<H3C> system-view 进入系统视图[H3C] interface serial 3/0 进入某个端口[H3C-Serial3/0] ip address 200.1.1.1 255.255.255.0为该端口设置ip地址[H3C-Serial3/0] undo shutdown 对该端口进行复位[H3C-Serial3/0] quit 退回到系统视图[H3C]备注:红色部分可以由客户自行设置,此处仅做举例时使用!1.2.3静态路由或默认路由的配置<H3C> system-view 进入系统视图[H3C]ip route-static 192.168.1.0 255.255.255.0 192.168.0.1 添加一条静态路由[H3C]ip route-static 0.0.0.0 0.0.0.0 192.168.0.1 添加一条默认路由备注:红色部分可以由客户自行设置,此处仅做举例时使用!1.2.3配置文件的管理display current-configuration 显示当前的配置文件<H3C>save 保存配置文件display interface GigabitEthernet 0/0 查看某端口的状态备注:display命令可以在任何视图下进行红色部分可以由客户自行设置,此处仅做举例时使用!交换机的配置文件管理与路由器相同,故交换机的配置幻灯片中不再做举例。

华三交换机路由器的简单配置笔记学习资料

华三交换机路由器的简单配置笔记学习资料

1、h3c交换机的vlan配置创建vlan 10并把端口加入vlansys-viewvlan 10port GigabitEthernet +端口号创建多个vlan[H3C]vlan 10 to 50查看vlan[H3C]display vlan brief[H3C]display vlan +vlan号将interface GigabitEthernet1/0/1加入vlan 10中[H3C]interface GigabitEthernet 1/0/1[H3C-GigabitEthernet1/0/1]port access vlan 10 创建vlan接口Interface vlan-interface +vlan ID显示vlan接口信息display interface vlan-interface +接口删除vlan[H3C]undo vlan 11 to 50加端口进vlan[H3C-vlan10]port GigabitEthernet 1/0/1配置端口的模式,进入端口[H3C-GigabitEthernet1/0/1]port link-type +模式(access /hybrid/trunk)使用mac-address static命令,来完成MAC地址与端口之间的绑定。

例如:[SwitchA]mac-address static 00e0-fc22-f8d3 interface Ethernet 0/1 vlan 1 [SwitchA]mac-address max-mac-count 02、通过ip来配置vlan间路由通信(1)创建VLAN 3和VLAN 4,并把GigabitEthernet1/0/1、GigabitEthernet1/0/2加入到VLAN 3中,把GigabitEthernet1/0/3、GigabitEthernet1/0/4加入到VLAN 4中。

H3C配置经典全面教程

H3C配置经典全面教程

H3C配置经典全面教程H3C配置经典全面教程是一篇面向拥有一定网络配置经验的用户的全面教程。

本文将收集和整理H3C配置经典的经验和资料,详细介绍H3C设备的配置过程和步骤,包括基本设置、VLAN配置、静态路由配置、ACL配置等内容。

一、基本设置1.连接H3C设备的串口线,使用串口终端软件进行连接。

2. 登录H3C设备,使用默认的用户名和密码(通常为admin/admin)登录。

3. 进入用户模式,输入system-view命令。

4.配置设备的基本信息,如设备名称、管理IP地址、登录限制等。

5. 设定设备的登录密码,可以使用password simple命令设置简单密码,或者使用password cipher命令设置加密密码。

二、VLAN配置1. 创建VLAN,使用vlan命令创建一个新的VLAN,并指定VLAN的ID。

2. 配置接口,使用接口命令进入接口视图,并使用port link-type命令设置接口工作方式。

3. 将接口划分到VLAN中,使用port vlan命令将接口划分到指定的VLAN。

4. 配置接口IP地址,使用ip address命令为接口配置IP地址。

5. 配置VLAN间的互通,使用vlan inter命令设置VLAN之间的互通关系。

三、静态路由配置1. 创建静态路由,使用ip route-static命令创建一个静态路由,并指定目标网络和下一跳。

2. 配置默认路由,使用ip route-static命令创建默认路由,并指定下一跳为网关的IP地址。

3. 配置静态路由的优先级,使用ip preference命令设置静态路由的优先级。

四、ACL配置1. 创建ACL,使用acl命令创建一个新的ACL,并指定ACL的编号。

2. 配置ACL规则,使用rule命令配置ACL的规则,包括源地址、目标地址和允许或拒绝的动作。

3. 将ACL应用到接口,使用rule permit source命令将ACL应用到指定的接口。

H3C_S7500E镜像典型配置举例

H3C_S7500E镜像典型配置举例
H3C S7500E 镜像典型配置举例
Copyright © 2015 杭州华三通信技术有限公司 版权所有,保留一切权利。 非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部, 并不得以任何形式传播。本文档中的信息可能变·············································································································································· 1-1 2 配置前提 ············································································································································ 2-1 3 本地端口镜像典型配置举例 ··············································································································· 3-1
3.1 组网需求············································································································································3-1 3.2 使用版本···························································································

H3C_S7500E_BFD典型配置举例

H3C_S7500E_BFD典型配置举例
4.5.1 配置各接口的IP地址 ·················································································································· 6 4.5.2 配置两个网关设备间的直连端口 ································································································ 6 4.5.3 关闭上行接口的STP功能 ··········································································································· 7 4.5.4 配置上行设备Device E和Device F到VRRP组虚拟IP的静态路由 ·············································· 7 4.5.5 配置VRRP备份组·······················································································································7 4.5.6 配置BFD功能 ····························································································································· 8 4.5.7 配置Track项······························································································································· 8 4.5.8 配置MSTP ································································································································· 9 4.6 验证配置 ··············································································································································· 9 4.7 配置文件 ············································································································································· 14 5 静态路由与BFD联动配置举例 ············································································································· 17 5.1 组网需求 ············································································································································· 17 5.2 配置思路 ············································································································································· 18 5.3 使用版本 ············································································································································· 18 5.4 配置步骤 ············································································································································· 18 5.4.1 配置各接口的IP地址 ················································································································ 18 5.4.2 配置静态路由 ··························································································································· 19 5.4.3 配置Device A的BFD功能 ········································································································· 19 5.5 验证配置 ············································································································································· 19 5.6 配置文件 ············································································································································· 20 6 RIP与BFD联动配置举例 ····················································································································· 22 6.1 组网需求 ············································································································································· 22 6.2 配置思路 ············································································································································· 23 6.3 使用版本 ············································································································································· 23

h3c s7503e-m说明书

h3c s7503e-m说明书

h3c s7503e-m说明书每台路由器在网络中都应该有自己的名称,一般情况下华为3COM公司的路由器默认名称为router,即主机名为router。

为了更好的区分不同的路由器,我们需要对主机名进行修改,一方面方便了记忆,另一方面降低了排除故障的难度。

配置方法:这里我们以将主机名设置为syxx为例,输入“sysname syxx”,然后按回车键执行命令,这时主机提示符前的主机名变为syxx,说明设置主机名成功。

如何配置一个以太网接口路由器就好比一台PC机,不同的接口就好比计算机的网卡。

每个计算机都要设置IP地址才能在网络中进行通信,路由器也是如此,我们要为接口分配IP地址和子网掩码才能正常工作。

最常见的接口是以太网接口,本文将为大家介绍如何配置一个以太网接口。

第一步:登录路由器:用正确的用户名和密码登录路由器,要求是管理员权限或操作员权限。

第二步:进入以太网接口E0:int e0第三步:设置:IP地址和子网掩码ip address 192.168.1.1 255.255.255.0这样就完成了对E0端口的IP地址分配。

当然华为3COM路由器默认情况下当给接口设置了IP地址就会自动打开。

所以不用象CISCO设备那样还需要执行no shutdown命令打开接口。

小提示:有的时候需要短时间的将某端口禁用,如果将其IP地址取消等以后再使用时还需要重新配置,这时候也可以在华为3COM路由器上时候禁用端口命令。

即输入shutdown后回车这样该端口就被禁用了,如果想恢复则输入undo shutdown将端口重新激活。

路由器是一种用来连接因特网的设备。

路由器在互联网中起到的作用就相当于交通里面交通警察起到的作用,它会根据不同的情况选择出最好的传播路径,并且以前后的顺序发送信号。

路由器和交换机的区别主要在于交换机处在数据连接层,路由器处在网络层。

目前,路由器被广泛的使用到各行各业中,帮助我们更好的享受互联网带来的的便利。

H3C实现局域网搭建服务器基本配置

H3C实现局域网搭建服务器基本配置

H3C实现局域⽹搭建服务器基本配置H3C局域⽹搭建服务器基本配置实例⼀、实验拓扑图声明⼀下由于H3C的模拟器⽐较特殊,实验⽤图是思科的图,但是不影响。

⼆、基本配置1、Telnet的配置dis curr#version 5.20, Alpha 1011#sysname SER#password-control login-attempt 3 exceed lock-time 120#undo voice vlan mac-address 00e0-bb00-0000#ipsec cpu-backup enable#undo cryptoengine enable#domain default enable system#telnet server enable#vlan 1#domain systemaccess-limit disablestate activeidle-cut disableself-service-url disable#interface Serial0/2/1link-protocol pppinterface Serial0/2/2link-protocol ppp#interface NULL0#interface Ethernet0/4/0port link-mode bridge#interface Ethernet0/4/1port link-mode bridge#interface Ethernet0/4/2port link-mode bridge#interface Ethernet0/4/3port link-mode bridge#interface Ethernet0/4/4port link-mode bridge#interface Ethernet0/4/5port link-mode bridge#interface Ethernet0/4/6port link-mode bridge#interface Ethernet0/4/7port link-mode bridge#interface GigabitEthernet0/1/0port link-mode route#interface GigabitEthernet0/1/1port link-mode routeip address 172.17.91.1 255.255.255.0 #interface GigabitEthernet0/1/2port link-mode route#ip route-static 0.0.0.0 0.0.0.0 172.17.91.2load xml-configuration#user-interface con 0user-interface vty 0 4authentication-mode noneuser privilege level 3#return2、R2的配置dis curr#version 5.20, Alpha 1011#sysname R2#password-control login-attempt 3 exceed lock-time 120 # undo voice vlan mac-address 00e0-bb00-0000#ipsec cpu-backup enable#undo cryptoengine enable#domain default enable system#vlan 1#domain systemaccess-limit disablestate activeidle-cut disableself-service-url disable#interface Serial0/2/0link-protocol ppp#interface Serial0/2/1link-protocol ppp#interface NULL0#interface Ethernet0/4/0port link-mode bridge#interface Ethernet0/4/1port link-mode bridge#interface Ethernet0/4/2port link-mode bridge#interface Ethernet0/4/3port link-mode bridge#interface Ethernet0/4/4port link-mode bridge#interface Ethernet0/4/5port link-mode bridge#interface Ethernet0/4/6port link-mode bridge#interface Ethernet0/4/7port link-mode bridge#interface GigabitEthernet0/1/0port link-mode routeip address 172.17.91.2 255.255.255.0#interface GigabitEthernet0/1/1port link-mode routenat server protocol tcp global 61.1.2.1 telnet inside 172.17.91.1 telnet nat server protocol tcp global 61.1.2.1 www inside 172.17.91.1 www ip address 61.1.2.1 255.255.255.0#interface GigabitEthernet0/1/2port link-mode route##ospf 10area 0.0.0.0network 61.1.2.0 0.0.0.255#load xml-configuration#user-interface con 0user-interface vty 0 4#return3、ISP的配置%May 3 21:58:04:419 2013 ISP SHELL/4/LOGIN: Console login from con0 dis curr #version 5.20, Alpha 1011#sysname ISP#password-control login-attempt 3 exceed lock-time 120#undo voice vlan mac-address 00e0-bb00-0000#ipsec cpu-backup enable#undo cryptoengine enable#domain default enable system#vlan 1#domain systemaccess-limit disablestate activeidle-cut disableself-service-url disable#interface Serial0/2/0link-protocol ppp#interface NULL0#interface Ethernet0/4/0port link-mode bridge#interface Ethernet0/4/1port link-mode bridge#interface Ethernet0/4/2port link-mode bridge#interface Ethernet0/4/3port link-mode bridge#interface Ethernet0/4/4port link-mode bridge#interface Ethernet0/4/5port link-mode bridge#interface Ethernet0/4/6port link-mode bridge#interface Ethernet0/4/7port link-mode bridge#interface GigabitEthernet0/1/0port link-mode routeip address 61.1.2.2 255.255.255.0 # interface GigabitEthernet0/1/1port link-mode routeip address 198.98.0.1 255.255.255.0 # interface GigabitEthernet0/1/2port link-mode route#ospf 10area 0.0.0.0network 0.0.0.0 255.255.255.255 # load xml-configuration#return4、R4的配置dis curr#version 5.20, Alpha 1011#sysname R4#password-control login-attempt 3 exceed lock-time 120 # undo voice vlan mac-address 00e0-bb00-0000#ipsec cpu-backup enable#undo cryptoengine enable#firewall enablefirewall default deny#nat address-group 1 198.98.0.2 198.98.0.2#domain default enable system#vlan 1#domain systemaccess-limit disablestate activeidle-cut disableself-service-url disable#acl number 2001rule 0 permit source 192.168.0.0 0.0.0.255#interface Serial0/2/0link-protocol ppp#interface Serial0/2/1link-protocol pppinterface Ethernet0/4/0port link-mode bridge#interface Ethernet0/4/1port link-mode bridge#interface Ethernet0/4/2port link-mode bridge#interface Ethernet0/4/3port link-mode bridge#interface Ethernet0/4/4port link-mode bridge#interface Ethernet0/4/5port link-mode bridge#interface Ethernet0/4/6port link-mode bridge#interface Ethernet0/4/7port link-mode bridge#interface GigabitEthernet0/1/0port link-mode routenat outbound 2001 address-group 1 nat outbound 2000 ip address 198.98.0.2 255.255.255.0 #interface GigabitEthernet0/1/1port link-mode route#interface GigabitEthernet0/1/2port link-mode routeip address 192.168.0.1 255.255.255.0 #ospf 10area 0.0.0.0network 198.98.0.0 0.0.0.255#load xml-configuration#return5、内⽹路由器的配置%May 3 21:59:38:700 2013 FZXY SHELL/4/LOGIN: Console login from con0 dis curr #version 5.20, Alpha 1011#sysname FZXY#password-control login-attempt 3 exceed lock-time 120#undo voice vlan mac-address 00e0-bb00-0000#ipsec cpu-backup enable#undo cryptoengine enable#domain default enable system#vlan 1#domain systemaccess-limit disablestate activeidle-cut disableself-service-url disable#interface NULL0#interface Ethernet0/4/0port link-mode bridge#interface Ethernet0/4/1port link-mode bridge#interface Ethernet0/4/2port link-mode bridge#interface Ethernet0/4/3port link-mode bridge#interface Ethernet0/4/5port link-mode bridge#interface Ethernet0/4/6port link-mode bridge#interface Ethernet0/4/7port link-mode bridge#interface GigabitEthernet0/1/0port link-mode route#interface GigabitEthernet0/1/1port link-mode route#interface GigabitEthernet0/1/2port link-mode route#interface GigabitEthernet0/1/3port link-mode routeip address 192.168.0.2 255.255.255.0#ip route-static 0.0.0.0 0.0.0.0 192.168.0.1 # load xml-configuration#user-interface con 0user-interface vty 0 4#return。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
3.2 配置思路
• 在 AS 65009 内部,保证 Switch B 到 Switch C 的 LoopBack 接口路由可达,Switch C 到 Switch B 的 LoopBack 接口路由可达,这样两个 IBGP 对等体才能建立 TCP 连接,本案例使 用 OSPF 协议实现。
• 由于设备缺省情况下 BGP 不发布任何本地的网段路由,为了使 Switch C 能够访问 Switch A 直连的 8.1.1.0/24 网段,将 8.1.1.0/24 网段宣告进 Switch A 的 BGP 进程中,将 3.1.1.0/24 网 段和 9.1.1.0/24 网段宣告进 Switch B 的 BGP 进程中。
3.1 组网需求 ··············································································································································· 1 3.2 配置思路 ··············································································································································· 1 3.3 使用版本 ··············································································································································· 1 3.4 配置注意事项········································································································································ 2 3.5 配置步骤 ··············································································································································· 2
H3C S7500E BGP 基础典型配置举例
Copyright © 2015 杭州华三通信技术有限公司 版权所有,保留一切权利。 非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部, 并不得以任何形式传播。本文档中的信息可能变动,恕不另行通知。
目录
1 简介 ······················································································································································ 1 2 配置前提 ··············································································································································· 1 3 IPv4 BGP基础配置举例 ························································································································ 1
所以,必须使用 peer connect-interface 命令将 LoopBack 接口配置为 BGP 连接的源接口。 • EBGP 邻居关系的两台路由器,处于不同的 AS 域,对端的 LoopBa,其网络规模也不断扩大,导致其设备运行的IGP协议不堪重负,为了解决这 一问题,公司管理者决定在设备上运行一些BGP的基础配置。如 图 1 所示,所有交换机均运行BGP 协议。要求Switch A和Switch B之间建立EBGP连接,Switch B和Switch C之间建立IBGP连接,使 得Switch C能够访问Switch A直连的 8.1.1.0/24 网段。 图1 BGP 基础配置组网图(交换应用)
3.3 使用版本
本举例是在 S7500E-CMW710-R7150 版本上进行配置和验证的。
1
3.4 配置注意事项
• 为了防止端口状态不稳定引起路由震荡,本举例使用 LoopBack 接口来创建 IBGP 对等体。 • 使用 LoopBack 接口创建 IBGP 对等体时,因为 LoopBack 接口不是两对等体实际连接的接口,
i
1 简介
本文档介绍了 BGP 的基础配置举例。
2 配置前提
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺 省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置 不冲突。 本文档假设您已了解 BGP 特性。
3 IPv4 BGP基础配置举例
3.5.1 配置各接口的IP地址 ·················································································································· 2 3.5.2 配置IBGP连接····························································································································2 3.5.3 配置EBGP连接 ·························································································································· 3 3.5.4 配置Switch B发布本地网段路由 ································································································ 5 3.6 验证配置 ··············································································································································· 6 3.7 配置文件 ··············································································································································· 6 4 BGP与IGP交互配置举例······················································································································· 8 4.1 组网需求 ··············································································································································· 8 4.2 配置思路 ··············································································································································· 8 4.3 使用版本 ··············································································································································· 8 4.4 配置注意事项········································································································································ 8 4.5 配置步骤 ··············································································································································· 9 4.5.1 配置各接口的IP地址 ·················································································································· 9 4.5.2 配置OSPF·································································································································· 9 4.5.3 配置EBGP连接 ·························································································································· 9 4.5.4 配置BGP与IGP交互·················································································································10 4.6 验证配置 ············································································································································· 11 4.7 配置文件 ············································································································································· 12 5 相关资料 ············································································································································· 14
相关文档
最新文档