S3026交换机
[Quidway]super password (修改特权用户密码) [Quidway]sysname xxx (交换机命名) [Quidway]interface ethernet0/1 (进入接口视图) [Quidway]Quit (退出系统视图) [Quidway]info-center console channel console(信息输出设置) [Quidway]monitor-port ethernet0/1(配置流量镜像) [Quidway-Ethernet0/1]duplex {halffullauto} (配置端口双工工作状态) [Quidway-Ethernet0/1]speed {10100auto} (配置端口工作速率) [Quidway-Ethernet0/1]flow-control {disableenable} (配置端口流控) [Quidway-Ethernet0/1]shutdownundo shutdown (关闭重起端口) [Quidway-Ethernet0/1]mdi {acrossautonormal} (配置端口MDIMDIX状态) [Quidway]vlan3 undo vlan3 (创建删除一个VLAN进入VLAN配置模式) [Quidway-VLAN3]port ethernet0/1 to ethernet0/4 (给VLAN增加删除以太网接口) [Quidway-Ethernet0/1]port access vlan3 (将接口加入到指定VLAN) [Quidway-Ethernet0/1]port link-type {trunkaccesshybrid} (设置接口工作模式) hybrid模式的端口可以属于多个VLAN,可以接收和发送多个VLAN的报文,可以用于交换机之间连接,也可以 用于连接用户的计算机,hybrid与trunk的不同之处在于hybrid可以允许多个VLAN的报文发送时不打标签, 而trunk只允许缺省VLAN的报文发送时不打标签。 [Quidway-Ethernet0/1]port trunk permit vlan {idall} (设置允许trunk端口通过指定VLAN的数据桢) [Quidway-Ethernet0/1]port trunk pvid vlan3 (设置trunk端口的PVID) [Quidway]link-aggregation ethernet0/1 to ethernet0/3 {ingressboth} (配置端口汇聚) [Quidway]undo link-aggregation ethernet0/1 (清除端口汇聚) [Quidway]stp {enabledisable} (对所有端口打开生成树或指定某个端口打开) ROUTER [Quidway]DISPLAY ? (显示系统可用命令或显示信息) [Quidway]display history-commamd (显历史命令) [Quidway]language (中英文显示方式切换) [Quidway]tracert IP (测试数据包从主机从发送主机到目的地所经地的网关) [Quidway-serial0]link-protocol hdlc (在接口上封装HDLC协议) [Quidway-serial0]timer hold [seconds] (keepalive取值为0~32767) PPP典型配置实例 routerA PAP验证主验证方 [Quidway-serial0]link-protocol ppp [Quidway]local-user xxx password simple xxx [Quidway-serial0]ppp authentication-mode pap routerB PAP被验证方 [Quidway-serial0]link ppp [Quidway-serial0]ppp pap local-user xxx password simple xxx chap典型配置实例 routerA chap主验证方 [Quidway]local-user quidway2 password simple xxx [Quidway-serial0]ppp chap user Quidway1 [Quidway-serial0]ppp authentication-mode chap routerB被验证方 [Quidway]local-user quidway1 password simple xxx [Quidway-serial0]ppp chap user Quidway2 MP典型配置举例 1、router-a的E1口两个B信道绑定到router-b的B信道上,另两个B信道绑定到router-c(假定router-a有四个B信道) 配置router-a: !增加两个用ROUTER-B和ROUTER-C [Quidway]local-user router-b password simple router-b [Quidway]local-user router-c password simple router-c !为这两个用户指定虚拟接口模板,将使用该模板的NCP信息进行PPP协商 [Quidway]ppp user router-b bind virtual-template1 [Quidway]ppp user router-c bind virtual-template2 !配置虚拟接口模板 [Quidway]interface-virtual-template1 [Quidway-virtual-template1]ip add 10.0.0.1 24 [Quidway]interface virtual-template2 [Quidway-virtual-template2]ip add 10.0.1.1 24 !将接口S0、S1、S2、S3加入MP通道,以S0为例,其它接口做同样配置 [Quidway]interface s0 [Quidway-serial0]link-protocol ppp [Quidway-serial0]ppp mp [Quidway-serial0]ppp authentication-mode pap [Quidway-serial0]ppp pap local-user router-a password simple router-a 配置router-b: !增加一个用户router-a [Quidway]local-user router-a password simple router-a !为这个用户指定虚拟模板,将使用该模板的NCP信息进行PPP协商 [Quidway]ppp mp user router-a bind virtual-template 1 !配置虚拟接口模板的工作参数 [Quidway]interface virtual-template 1 [Quidway-virtual-template]ip add 10.0.0.2 24 !将接口S0、S1加入MP通道,以S0为例。 [Quidway]interface s0 [Quidway]ppp mp [Quidway]ppp authentication-mode pap [Quidway]ppp pap local-user router-b password simple router-b router-c与router-b配置相同 [Quidway]display user (显示PPP验证的本地用户) X.25的配置 [Quidway]link-protocol x25 {[dtedce] | [nonstandardietf]} (配置X25的工作方式) [Quidway]x25 x121-address xxxxx (配置X121地址) [Quidway]x25 map ip 10.0.0.1 x121-address xxxxx (创建远端协议地址和X121地址的映射) [Quidway]x25 pvc 123 ip 10.0.0.1 x121-address xxxxx (创建永久虚电路同时隐含地创建一条地址映射) [Quidway]x25 vc-range {in-channel hic lic | bi-channel htc ltc | out-channel hoc loc} (配置虚电路范围最多4095条,1-4095) [Quidway]x25 packet-size in-packets (配置分组大小,缺省值为128) [Quidway]x25 packet-size out-packets (配置分组大小,缺省值为128) [Quidway]x25 window-size in-packets (配置窗口大小,缺省为2) [Quidway]x25 window-size out-packets (配置窗口大小,缺省为2) [Quidway]x25 modulo {8 | 128} (配置编号方式,缺省值为8) [Quidway]interface serial number subinterface-number [multipoint | point-to-point] (创建虚拟子接口) [Quidway]display x25 alias-policy (查看x25别名表) [Quidway]display x25 map (查看X25地址映射表) [Quidway]disp x25 switch-vc-table svc (查看X25交换路由表) [Quidway]disp x25 vc lci-number(查看X25虚电路) [Quidway]debug x25 all [interface type number] (打开所有X25报文的调试开关) [Quidway]debug x25 event [interface type number] (打开X25的调试开关) [Quidway]debug x25 packet [interface type number] (打开X25报文调试开关) x25典型配置举例 routerA [Quidway]int s0 [Quidway-serial]ip add 10.0.0.1 24 [Quidway-serial]link-protocol x25 dte (将该接口封装为X25接口,并指定其工作方式在DTE方式) [Quidway-serial]x25 x121-address 12345(指定该接口的X121地址) [Quidway-serial]x25 map ip 10.0.0.2 x121-address 54321(指定到对端的地址映射) [Quidway-serial]x25 packet-size 1024 1024(设定流量控制参数为1024K) [Quidway-serial]x25 window-size 5 5 routerB [Quidway-serial]ip add 10.0.0.2 24 [Quidway-serial]link-protocol x25 dte (如果是背到背的电缆相连需要改成DCE) [Quidway-serial]x25 x121-address 54321 [Quidway-serial]x25 map ip 10.0.0.1 x121-address 12345 [Quidway-serial]x25 packet-size 1024 1024 [Quidway-serial]x25 window-size 帧中继的配置 [Quidway-serial]link-protocol frame-relay [MFR | nonstandard | ieft] (封装帧中继协议) [Quidway]frame-relay interface-type [dce | dte | nni] (配置帧中继接口的终端类型) [Quidway]frame-relay lmi type [ansi | cisco-compatible | q933a] (选择LMI类型) [Quidway]frame-relay {ip|ipx} protocol-address dlci [broadcast] (手工配置静态映射) [Quidway]fr inarp [ip|ipx] [dlci] (动态建立:使能动态逆向地址解析协议) [Quidway]interface type number subinterface-number [multipoint | point-to-point] (创建帧中继子接口,进入子接口配置模式) [Quidway]fr dlci dlci (配置帧中继子接口的虚电路号) [Quidway]fr switching (允许帧中继进行PVC交换) [Quidway]fr interface-type [dce|dte|nni] (设置帧中继接口类型) [Quidway]fr dlci-switch pvc in-dlci interface serial number out-dlci (配置帧中继PVC交换的路由) [Quidway]disp fr lmi-info [interface type-number] (显示帧中继LMI类型报文的收发统计) [Quidway]disp fr map-info (显示协议地址与帧中继地址映射表) [Quidway]disp fr pvc-info [serial interface-number] [dlci dlci-number] (显示帧中继PVC统计信息) [Quidway]disp fr dlci-switch (显示帧中继PVC路由表) [Quidway]disp fr interface (显示各接口的帧中继协议状态) [Quidway]reset fr inarp-info (清除所有动态建立的帧中继地址映射) [Quidway]debugging fr all [interface type-number] (打开帧中继的所有报文调试开关) [Quidway]debugging fr arp [interface type-number] (打开帧中继ARP报文信息调试开关) [Quidway]debugging fr event [interface type-number] (打开帧中继事件信息调试开关) [Quidway]debugging fr lmi [interface type-number] (打开帧中继LMI协议信息调试开关) 帧中继典型配置举例(通帧中继网络互连局域网) RouterA (对B、C) [Quidway]fr switching [Quidway-serial]ip add 10.0.0.1 24 [Quidway-serial]link-protocol fr (封装为帧中继) [Quidway-serial]fr interface-type dte (设定工作方式) [Quidway-serial]fr inarp (如果对端路由器支持逆向地址解析功能,则动态地址映射) [Quidway-serial]fr map ip 10.0.0.2 dlci 10 (否则静态地址映射) [Quidway-serial]fr map ip 10.0.0.3 dlci 20 RouterB [Quidway-serial]ip add 10.0.0.2 24 [Quidway-serial]link-protocol fr [Quidway-serial]fr interface-type dte [Quidway-serial]fr inarp [Quidway-serial]fr map ip 10.0.0.1 dlci 30 RouterC [Quidway-serial]ip add 10.0.0.3 24 [Quidway-serial]link-protocol fr [Quidway-serial]fr interface-type dte [Quidway-serial]fr inarp [Quidway-serial]fr map ip 10.0.0.1 dlci 40 |
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/653579/viewspace-863000/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/653579/viewspace-863000/