迈普交换机配置指导书
- 格式:doc
- 大小:341.00 KB
- 文档页数:12
目录第1章SNTP配置 (1)1.1 SNTP简介 (1)1.2 SNTP典型配置举例 (2)第2章NTP功能操作配置 (3)2.1 NTP功能简介 (3)2.2 NTP功能配置任务序列 (3)2.3 NTP功能典型案例 (6)2.4 NTP功能排错帮助 (7)第3章DNSv4/v6配置 (8)3.1 DNS简介 (8)3.2 DNSv4/v6配置任务序列 (9)3.3 DNS典型案例 (11)3.4 DNS排错帮助 (12)第1章SNTP配置1.1 SNTP简介NTP (the Network Time Protocol)协议广泛用于维持全球Internet中的计算机的时钟同步。
NTP协议可以估算封包在网络上的往返延迟外,还可独立地估算计算机时钟偏差,从而实现在网络上的高精准度计算机校时。
在大多数地方,根据同步源的特性和网络路径,NTP提供1~50ms的精度。
SNTP(Simple Network Time Protocol)是NTP协议的简化版本,除去了NTP复杂的算法。
SNTP 用于那些不需要完整NTP实现复杂性的主机,它是NTP的一个子集。
通常让局域网上的若干台主机通过因特网与其他的NTP主机同步时钟,接着再向局域网内其他客户端提供时间同步服务。
下图描画了一个NTP/SNTP的应用网络结构,其中SNTP主要工作在二级服务器和各种终端之间,主要是由于这些场景时间精度要求不高,而SNTP本身可以提供的时间精度(1-50ms)一般可以满足这些服务的应用。
图 1-1 NTP/SNTP 工作场景交换机实现了SNTP 的客户端,支持RFC2030描述的SNTP 客户端单播模式(unicast )的协议行为,不支持SNTP 客户端组播模式(multicast )和任播模式(anycast ),也不支持SNTP 服务器端功能。
1.2 SNTP 典型配置举例图 1-2 SNTP 典型配置在自治系统域内的所有交换机需要进行时间同步,时间同步是通过两台冗余的SNTP/NTP 服务器实现。
1、迈普设备配置基本命令用户名密码为admin adminSwitch>enableSwith#config terminalSwith(config)#vlan 70 //新建vlan70Switch(Config-If-Vlan70)#name guanli //将vlan70 命名为guanli Switch(Config-If-Vlan70)#ip address 172.17.202.21 255.255.255.0//配置交换机管理地址Switch(Config-If-Vlan70)#no shutdownSwitch(Config-If-Vlan70)#exitSwith(config)#ip route-static 0.0.0.0 0.0.0.0 172.17.202.1//配置交换机路由Swith(config)#vlan 338,440 //新建vlan338,440Switch(Config)# int ethernet 0/0/1 //进入端口Switch(Config-Ethernet1-0/0/1)# no shutdown //打开端口Switch(Config-Ethernet1-0/0/1)# switchport mode access //将端口定义为access口Switch(Config-Ethernet1-0/0/1)# switchport access vlan 338 //将vlan338加入到该端口Switch(Config-Ethernet1-0/0/1)# exitSwitch(Config)# int ethernet 0/0/2-19;ethernet 0/0/20 //进入端口组—Switch(Config-Port-Range)#switchport mode access //将端口组定义为access口Switch(Config-Port-Range)#switchport access vlan 440 //将vlan440加入到该端口组Switch(Config-Port-Range)#exitSwitch(Config)#int ethernet 0/0/21 //进入端口Switch(Config-Ethernet1-0/0/21)# switchport mode trunk //将端口定义为trunk口Switch(Config-Ethernet1-0/0/21)#switchport trunk allowed vlan 70;338;440 //该端口允许vlan70,338,440通过Switch(Config-Ethernet1-0/0/21)#exitSwitch(Config)#exitSwitch#write //保存2、迈普设备故障处理基本命令1)查看交换机端口状态2)查看交换机端口描述3)查寻mac地址4)修改交换机配置—打开端口no shutdown关闭端口shutdown。
目录第1章交换机管理 (1)1.1 管理方式 (1)1.1.1 带外管理 (1)1.1.2 带内管理 (5)1.2 CLI界面 (10)1.2.1 配置模式介绍 (10)1.2.2 配置语法 (13)1.2.3 支持快捷键 (13)1.2.4 帮助功能 (13)1.2.5 对输入的检查 (14)1.2.6 支持不完全匹配 (14)第2章交换机基本配置 (15)2.1 基本配置 (15)2.2 远程管理 (15)2.2.1 Telnet (15)2.2.2 SSH (17)2.3 配置交换机的IP地址 (18)2.3.1 配置交换机的IP地址任务序列 (18)2.4 SNMP配置 (20)2.4.1 SNMP介绍 (20)2.4.2 MIB介绍 (21)2.4.3 RMON介绍 (22)2.4.4 SNMP配置 (22)2.4.5 SNMP典型配置举例 (24)2.4.6 SNMP排错帮助 (26)2.5 交换机升级 (26)2.5.1 交换机系统文件 (26)2.5.2 BootROM模式升级 (27)2.5.3 升级 (29)第3章集群网管配置 (37)3.1 集群网管介绍 (37)3.2 集群网管基本配置 (37)3.3 集群网管举例 (40)3.4 集群网管排错帮助 (41)第1章交换机管理1.1 管理方式用户购买到交换机设备后,需要对交换机进行配置,从而实现对网络的管理。
交换机为用户提供了两种管理方式:带外管理和带内管理。
1.1.1 带外管理带外管理即通过Console进行管理,通常情况下,在首次配置交换机或者无法进行带内管理时,用户会使用带外管理方式。
例如:用户希望通过远程Telnet来访问交换机时,必须首先通过Console给交换机配置一个IP地址。
用户用Console管理的步骤如下:第一、搭建环境:通过串口线连接图1-1 交换机Console管理配置环境按照图1-1所示,将PC的串口(RS-232接口)和交换机随机提供的串口线连接,下面是连接中用到的设备说明:设备名称说明PC机有完好的键盘和RS-232串口,并且安装了终端仿真程序,如Windows 系统自带超级终端等。
迈普常用命令手册V1.3目录1概述 (1)2配置命令 (2)2.1系统模式及切换 (2)2.2基础配置 (3)2.2.1配置主机名 (3)2.2.2配置账户 (3)2.2.3配置登陆 (3)2.2.4配置Vlan (3)2.3配置端口 (4)2.3.1双工速率 (4)2.4配置T RACK (4)2.5配置MSTP (5)2.6配置VRRP (5)2.7配置T RUNK (5)2.8多接口LINK-AGGREGATION (6)2.9配置ACL (6)2.10配置路由 (7)2.10.1静态路由 (7)2.10.2配置RIP (7)2.10.3配置OSPF (8)2.11管理配置 (8)2.11.1配置AAA (8)2.11.2配置端口镜像 (9)2.11.3文件管理 (10)2.11.4Logging (10)2.11.5配置SNMP (11)2.11.6配置NTP (11)3迈普常用命令 (12)3.1查找MP命令 (12)3.2常用命令 (12)3.2.1查看信息 (12)3.2.2删除配置 (12)3.2.3查看配置文件 (12)3.2.4查看路由配置 (12)3.2.5查看路由表 (13)3.2.6查看VRRP状态 (13)3.2.7查看二层接口信息 (13)3.2.8查看bfd信息 (13)3.2.9查看设备信息 (13)3.2.10查看用户信息 (13)1概述本手册编写的目的是为了使分行管理员快速掌握迈普MP2900路由交换一体机的常用命令,为设备运维工作提供帮助和指导。
几点说明:➢本文档中用到的网络参数,仅为举例,与实际网络参数无关。
➢更详细的MP交换机配置命令,请参考《MP2900系列路由器命令手册V1.1.chm》、《MP2900系列路由器配置手册V1.1.chm》2配置命令2.1系统模式及切换2.2基础配置2.2.1配置主机名#configure terminal ++进入全局模式++(config)#hostname SQYH-A ++设置主机名SQYH-A ++(config)#exit ++退出全局模式++2.2.2配置账户(config)#user admin password0 admin ++配置用户admin,密码为admin ++ (config)#user admin privilege 15 ++配置用户admin的授权级别为15,0-15,默认为1 ++2.2.3配置登陆Telnet登陆#configure terminal ++进入全局模式++(config)# line vty 0 4 ++进入vty配置模式++(config-line)#password 0admin ++设置登陆密码为admin,交互模式下只能用明文++(config-line)#login ++启用login密码认证++(config)#privilege level15 ++配置登陆用户权限级别,默认为1++(config-line)#exec-timeout 10 0 ++设置空闲超时时间为10分0秒,默认为5分钟++Console登陆#configure terminal ++进入全局模式++(config)# line con 0 ++进入vty配置模式++(config)#password 0 admin ++设置登陆密码为admin,交互模式下只能用明文++ (config-line)#login ++启用login密码认证++(config)#privilege level15 ++配置登陆用户权限级别,默认为1++(config-line)#exec-timeout 10 0 ++设置空闲超时时间为10分0秒,默认为5分钟++2.2.4配置Vlan#configure terminal ++进入全局模式++(config)#vlan 3 ++创建vlan3,并进入vlan视图++(config-vlan3)#name hulian ++为vlan命名++(config-vlan3)#exit ++退出vlan视图++(config)#interface fastethernet 0/1 ++进入接口f0/1视图++(config-if-fastethernet0/1)#switchport mode access ++接口模式为access++ (config-if-fastethernet0/1)#switchport access vlan 3 ++将物理接口划到vlan3++(config)#interface vlan 3 ++进入vlan接口视图++(config-if-vlan3)#ip address 192.168.1.1 255.255.255.0 ++配置vlan接口IP地址++(config-if-vlan3)#description hulianjiekou ++vlan接口描述++(config-if-vlan3)#no shutdown ++手动激活接口++2.2.5配置时区#configure terminal ++进入全局模式++(config)#clock timezone BEIJING ++默认为UTC++(config)#exit#clock yy mm dd hh mm ss ++配置系统时间++2.3配置端口#configure terminal ++进入全局模式++(config)#interface gigabitethernet0/1 ++进入物理接口Gi0/1++(config-if-gigabitethernet0/1)#description to-yinlian ++接口描述++ (config-if-gigabitethernet0/1)#speed 100 ++手工指定接口速率,和对端保持一致++(config-if-gigabitethernet0/1)#duplex ful l ++手工指定全双工模式,和对端保持一致++(config-if-gigabitethernet0/1)#switchport access vlan2++将端口划入vlan 2++2.4配置Track#配置Track组1监控交换端口fastethernet 0/0状态(config)#track 1(config-track)#switchport fastethernet 0/0#配置Track组1监控接口gigabitethernet0网络层协议状态(config)#track 1(config-track)#interface gigabitethernet0 line-protocol#配置Track组1监控到网络10.1.1.0 255.255.255.0的路由可达性(config)#track 1(config-track)#ip-route 10.1.1.0 255.255.255.0#配置Track组1监控BFD会话,BFD会话接口为gigabitethernet0,对端IP地址为10.0.0.2,本端IP地址为10.0.0.1(config)#track 1(config-track)#bfd interface gigabitethernet0 remote-ip 10.0.0.2 local-ip 10.0.0.12.5配置MSTP#configure terminal ++进入全局模式++(config)# spanning-tree enable ++使能生成树协议++(config)# spanning-tree mst configuration ++进入mst域配置视图++(config-mst-region)# region-name CEB ++配置mst域名为CEB++(config-mst-region)#revision-level1 ++配置mst域的修订级别为1,缺省为0++ (config-mst-region)# instance 1 vlan 1-4094 ++配置vlan1-4094映射到生成树实例1++(config-mst-region)# active configuration pending ++必须配置,激活mst域参数++(config-mst-region)# exit(config)#spanning-tree mst instance 1 priority 0 ++配置设备在生成树实例1中的网桥优先级为0,即指定为根网桥++2.6配置VRRP#configure terminal ++进入全局模式++(config)#interface vlan 3++进入vlan接口视图++(config-if-vlan3)#ip address 192.168.1.252 255.255.255.0 ++配置vlan接口的实地址++(config-if-vlan3)#vrrp 3 ip192.168.1.254 ++vrrp组号为3,虚地址192.168.1.254++(config-if-vlan3)#vrrp 3 priority 120 ++设置优先级为120(默认优先级为100),若优先级相同,则ip地址大的成为Master++(config-if-vlan3)#vrrp 3 preempt ++配置为抢占模式++(config-if-vlan3)#vrrp 3 track interface gigabitethernet 0 20 ++监视gigabitethernet 0,如果接口down掉,优先级减20(默认减10)++2.7配置Trunk#configure terminal ++进入全局模式++(config)#interface fastethernet 0/1 ++进入接口视图++(config-if-fastethernet0/1)#switchport mode trunk ++手动指定接口类型为trunk++(config-if-fastethernet0/1)#switchport trunk allowed vlan add 10,20 ++允许vlan 10、vlan20数据通过,vlan号间以逗号间隔++(config-if-fastethernet0/1)#switchport trunk allowed vlan add 21-30 ++允许vlan 21至vlan30共10个vlan的数据通过,vlan间以减号间隔++(config-if-fastethernet0/1)#switchport trunk allowed vlan all ++允许全部vlan 数据++(config-if-fastethernet0/1)#switchport trunk pvid vlan 1 ++指定pvid为vlan1++2.8多接口link-aggregation#configure terminal ++进入全局模式++(config)#link-aggregation 1 mode manual ++定义汇聚组1,配置为静态模式++ (config)#interface fastethernet 0/0-0/1 ++选中2个fa接口,进入接口配置视图++(config-if-range)#link-aggregation 1 manual ++接口加入静态汇聚组1(汇聚组被定义为manual,则加入的接口也必须是manual) ++(config-if-range)## switchport mode trunk ++指定接口为trunk模式++ (config-if-range)## switchport trunk allowed vlan add 1,10 ++允许vlan1、vlan10的数据通过汇聚组++(config-if-range)## switchport trunk pvid vlan 1 ++指定汇聚组pvid为vlan 1++(config-if-range)#no shutdown ++启用fa接口++2.9配置ACL#为标准acl 1添加描述字段(config)#access-lis t 1 remark Permit only one workstation through#为标准acl 1配置规则,允许源地址为192.168.1.1的IP报文通过(config)#access-list 1 permit host 192.168.1.1#为扩展acl 1001配置规则,允许192.168.1.0/24网段的主机与192.168.2.0/24网段主机的80端口建立连接(config)#access-list1001 permit tcp 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255 eq 80#为扩展acl 3001配置规则,允许0001.7a00.0000/32网段的主机与0001.7a01.0000/32网段主机进行通信(config)#access-list3001 permit0001.7a00.0000 0000.0000.ffff 0001.7a01.0000 0000.0000.ffff#在接口gi 0上应用acl 1,用于对入方向报文进行过滤(config)#interface gigabitethernet 0(config-if-gigabitethernet0)#ip access-group1 in#在端口fa 0/1应用acl 1001,用于过滤端口出方向的转发报文(config)#interface fa 0/1(config-if-fastethernet0/1)#ip access-group 1001 out2.10配置路由2.10.1静态路由#configure terminal ++进入全局模式++(config)#ip route 172.16.1.0 255.255.255.0 192.168.1.1 10++配置到达目的网段172.16.1.0/24的静态路由,下一跳为192.168.1.1,默认AD值为1++ (config)#ip route 172.16.1.0 255.255.255.0 192.168.1.2 10++配置到达目的网段172.16.1.0/24的静态浮动路由,下一跳为192.168.1.2,配置AD值为10++#配置到达201.0.0.0/24网段的静态路由,并建立与bfd的联动(config)#ip route 201.0.0.0 255.255.255.0 gigabitethernet0 10.1.1.2 (config)#ip route static bfd gigabitethernet0 10.1.1.22.10.2配置RIP(config)#router rip ++进入rip路由协议配置视图++(config-rip)#version2 ++启用协议版本2++(config-rip)#no auto-summary ++禁用自动汇总++(config-rip)#distance 200 ++定义rip协议管理距离为200,默认为120++ (config- rip)#network 10.0.0.0 ++在rip进程中宣告10.0.0.0/8网段++ (config- rip)#network 192.168.1.0 ++在rip进程中宣告192.168.1.0/24网段++ (config- rip)#passive-interface default ++配置接口默认为passive,禁止向邻居发送广播报文,但不能阻止向静态邻居发送报文++(config- rip)#no passive-interface gigabitethernet 0 ++允许gi 0接口收发rip报文,即允许接口gi 0参与rip进程++(config- rip)#no passive-interface vlan 3 ++允许vlan 3接口收发rip报文++ (config- rip)#bfd all-interfaces ++所有接口启用bfd检测(config- rip)#redistribute ospf 1 route-map rip-ospf ++将进程ospf 1的路由重发布进rip时应用route-map++2.10.3配置OSPF(config)#router ospf 1 ++启用OSPF进程1++(config-ospf)#router-id 192.168.1.1 ++指定本设备在进程中的route-id++ (config-ospf)#network 192.168.1.0 0.0.0.255 area 0 ++在进程ospf 1区域0中宣告192.168.1.0/24网段++(config-ospf)#passive-interface default ++配置接口默认为passive,不收发ospf报文++(config-ospf)#no passive-interface gigabitethernet 0 ++允许gi 0接口收发ospf报文++(config-ospf)#no passive-interface vlan 3 ++允许vlan 3收发ospf报文++ (config-ospf)#bfd all-interfaces ++所有接口启用bfd检测(config-ospf)#default-information originate ++在ospf的AS泛洪外部默认路由++(config-ospf)#redistribute rip route-map rip-ospf metric-type 1 ++将rip路由重发布进ospf进程时应用route-map,并定义路由为类型1(默认为类型2路由)++2.11管理配置2.11.1配置AAA(config)#aaa new-model ++启用AAA功能,默认关闭++(config)#aaa authentication login default radius tacacs local ++配置登陆认证方法列表,先后使用radius、tacacs和local三种方式进行认证++(config)#aaa authentication login CONSOLE none ++CONSOLE组中直接通过认证,后续在line console配置时调用++(config)#aaa authentication enable default radius tacacs local ++配置特权模式认证方法列表,先后使用radius、tacacs和local三种方式进行认证++(config)#aaa authorization config-commands ++启用命令授权功能++(config)#aaa authorization commands 15 default radius tacacs local #配置命令授权方法列表,使用radius、tacacs、local三种方法对最高的15级命令进行授权(config)#aaa authorization exec 15 default radius tacacs local #配置SHELL 授权方法列表,使用radius、tacacs、local三种方法对最高的15级命令进行授权(config)#aaa authorization commands 15 CONSOLE none ++配置console授权,后续在line console配置时调用,其中CONSOLE是自定义的列表名++(config)#aaa accounting commands 15 default start-stop tacacs 配置使用tacacs 对15级命令进行统计(config)#aaa accounting exec default start-stop tacacs #配置使用tacacs对SHELL会话进行统计2.11.2配置端口镜像配置本地SPAN会话1,开启端口fa0/1和fa0/2的镜像功能,监控入方向报文,指定镜像的转发端口为fa0/3(config)#monitor session 1 source interface fa 0/1,0/2 rx(config)#monitor session 1 destination interface fa 0/3配置RSPAN目的会话3,将VLAN 2所属设备上所有端口收到的携带VLAN标记为2的报文被当作镜像报文通过端口fa0/6转发(config)#monitor session 3 source remote vlan 2(config)#monitor session 3 destination interface fa 0/62.11.3文件管理#在全局模式下从ftp服务器copy文件到文件系统中#copy ftp 2.0.0.1 admin admin rp23-i-6.pck file-system rp23-i-6.pck#在设备文件系统模式下从ftp服务器copy文件到文件系统中#filesystem(config-fs)#copy ftp 2.0.0.1 admin admin rp23-i-6.pck file-system rp23-i-6.pck#在设备文件系统模式下将startup文件copy到ftp服务器#filesystem(config-fs)#copy file-system startup ftp 2.0.0.1 admin admin startup.txt 2.11.4Logging#configure terminal ++进入全局模式++(config)#no logging enable++禁用日志功能,默认开启++(config)#no logging console++禁止日志信息输出到控制台,默认开启为7级++ (config)#logging buffer informational ++配置储存在存中的日志级别大于等于6级,日志级别0---7,级别最高是0级;缺省开启,默认级别为5++(config)#logging file max-size 102400 ++Flash中日志文件默认容量,若容量已满,则新日志覆盖最旧的日志;文件容量是4096~1048576字节++(config)#logging source-ip192.168.1.101 ++指定将日志发送到服务器时的源地址,该地址必须是设备的某接口地址;默认为设备出接口地址++(config)#service timestamps log datetime localtime msec ++配置日志信息的时间戳++(config)#service timestamps debug datetime localtime msec ++配置调制信息的时间戳++2.11.5配置SNMP(config)#snmp-server enable traps ++使能snmp的traps功能++(config)#snmp-server enable traps snmp authentication ++认证失败时发送trap报文++(config)#snmp-server community CEB ro ++配置字符串CEB,权限为只读++ (config)#snmp-server community cebsnmp rw 10 ++配置字符串cebsnmp,权限为读写,只允许acl 10定义的ip进行访问++ (config)#snmp-server location GD ++配置location字段++(config)#snmp-server host 10.1.1.1 ++定义snmp发送trap的目的服务器地址++ 2.11.6配置NTP(config)#ntp server 1.1.1.1 ++启用ntp客户端,server地址是1.1.1.1++ (config)#ntp source Loopback0 ++配置Loop0作为ntp报文的源端口++2.11.7软件升级#filesystem(config-fs)#volume ++升级前查看文件系统剩余空间++#sysupdate2.0.0.1 rp23-i-6.4.0(21).pck image ftp admin pass ++使用sysupdate 升级主备主控卡的image程序,ftp的用户名/密码 admin/pass++ #reload ++升级成功后,重启设备;建议在重启后通过命令检查系统版本信息show system mpu ++3查询命令3.1查找MP命令➢对于不熟悉的命令,善于使用“空格”“问号”以搜索后续命令➢help 可作帮助命令3.2常用命令3.2.1命令查找show xxx ++xxx为后续命令,可用“?”查找++3.2.2查看配置信息show running-config ++查看当前的运行配置++show startup-config ++查看保存的启动配置++3.2.3查看路由配置#sh ip rip ++查看rip进程信息++#sh ip rip bfd-session ++查看rip的bfd信息++#sh ip rip interface ++查看rip进程下的接口状态和接口配置信息++ #sh ip rip database ++查看rip进程的数据库信息++#show ip ospf interface ++查看参与OSPF路由协议的接口信息++#show ip ospf neighbor ++查看OSPF邻居状态++#show ip ospf route ++查看路由表中OSPF路由++#show ip ospf database ++查看OSPF链路状态数据库++3.2.4查看路由表show ip route ++查看所有路由++show ip route static ++查看静态路由++3.2.5查看VRRP状态show standbyshow standby brief3.2.6查看二层接口信息#show interface switchport#show interface switchport brief#show spanning-tree mst link-aggregation 1 ++查看汇聚组1的接口信息++ 3.2.7查看bfd信息#show bfd session#show bfd session3.2.8查看设备信息#show about ++查看设备硬件信息++#show environment ++查看设备系统温度++#show system fan ++查看设备风扇++#show system module brief ++查看设备模块信息++#show system power ++查看设备电源信息++#show cpu monitor ++查看设备cpu使用率++#show memory ++查看设备存使用率++#show system mpu ++查看软件版本++3.2.9查看时间show clock3.2.10查看用户信息show users ++查看配置的用户信息++show privilege ++查看当前用户的级别++clear line con|vty xxx ++清除某个终端服务++ 3.2.11删除现有配置no xxx ++xxx为后续命令,可用“?”查找++。
迈普常用命令手册V1.3目录1概述 (1)2配置命令 (2)2.1系统模式及切换 (2)2.2基础配置 (3)2.2.1配置主机名 (3)2.2.2配置账户 (3)2.2.3配置登陆 (3)2.2.4配置Vlan (3)2.3配置端口 (4)2.3.1双工速率........................................................................................................ 错误!未定义书签。
2.4配置T RACK (4)2.5配置MSTP (5)2.6配置VRRP (5)2.7配置T RUNK (6)2.8多接口LINK-AGGREGATION (6)2.9配置ACL (6)2.10配置路由 (7)2.10.1静态路由 (7)2.10.2配置RIP (7)2.10.3配置OSPF (8)2.11管理配置 (9)2.11.1配置AAA (9)2.11.2配置端口镜像 (9)2.11.3文件管理 (10)2.11.4Logging (10)2.11.5配置SNMP (11)2.11.6配置NTP (11)3迈普常用命令 (12)3.1查找MP命令 (12)3.2常用命令 (12)3.2.1查看信息........................................................................................................ 错误!未定义书签。
3.2.2删除配置........................................................................................................ 错误!未定义书签。
3.2.3查看配置文件 (12)3.2.4查看路由配置 (12)3.2.5查看路由表 (12)3.2.6查看VRRP状态 (13)3.2.7查看二层接口信息 (13)3.2.8查看bfd信息 (13)3.2.9查看设备信息 (13)3.2.10查看用户信息 (13)1概述本手册编写的目的是为了使分行管理员快速掌握迈普MP2900路由交换一体机的常用命令,为设备运维工作提供帮助和指导。
目录第1章路由协议概述 (1)1.1 路由表 (1)1.2 IP路由策略 (2)1.2.1 IP路由策略介绍 (2)1.2.2 IP路由策略配置 (4)1.2.3 配置案例 (7)1.2.4 排错帮助 (8)第2章静态路由 (9)2.1 静态路由介绍 (9)2.2 缺省路由介绍 (9)2.3 静态路由配置 (9)2.4 配置案例 (10)第3章RIP (12)3.1 RIP介绍 (12)3.2 RIP配置 (13)3.3 RIP案例 (20)3.3.1 RIP典型案例 (20)3.3.2 RIP路由聚合功能典型案例 (22)3.4 RIP排错帮助 (23)第4章RIPng (24)4.1 RIPng介绍 (24)4.2 RIPng配置 (25)4.3 RIPng典型案例 (29)4.3.1 RIPng典型案例 (29)4.3.2 RIPng路由聚合功能典型案例 (31)4.4 RIPng排错帮助 (32)第5章OSPF (34)5.1 OSPF介绍 (34)5.2 OSPF配置 (36)5.3 OSPF案例 (41)5.3.1 OSPF典型案例 (41)5.3.2 OSPF VPN典型案例 (49)5.4 OSPF排错帮助 (51)第6章OSPFv3 (53)6.1 OSPFv3介绍 (53)6.2 OSPFv3配置 (55)6.3 OSPFv3案例 (60)6.4 OSPFv3排错帮助 (63)第7章BGP (64)7.1 BGP介绍 (64)7.2 BGP配置 (66)7.3 BGP典型案例 (79)7.3.1 案例一:BGP邻居配置 (79)7.3.2 案例二:BGP聚合配置 (80)7.3.3 案例三:配置BGP团体属性 (80)7.3.4 案例四:BGP联盟配置 (82)7.3.5 案例五:BGP路由反射器配置 (83)7.3.6 案例六:BGP的MED设置 (85)7.3.7 案例七:BGP VPN典型案例 (87)7.4 BGP排错帮助 (92)第8章MBGP4+ (93)8.1 MBGP4+简介 (93)8.2 MBGP4+配置 (93)8.3 MBGP4+案例 (94)8.4 MBGP4+排错帮助 (96)第9章黑洞路由操作手册 (97)9.1 黑洞路由介绍 (97)9.2 IPv4黑洞路由配置任务 (97)9.3 IPv6黑洞路由配置任务 (97)9.4 黑洞路由举例 (98)9.5 黑洞路由排错帮助 (100)第1章路由协议概述在Internet中,一台主机为了访问远端的另一台主机,必须通过一系列路由器或三层交换机选择一条合适的路径。
迈普交换机配置1、迈普设备配置基本命令用户名密码为:admin adminSwitch>enable //进入普通用户模式-只能看看Switch#config terminal //进入全局配置模式Switch(config)#vlan 70 //新建vlan 70Switch(config-If-Vlan70)#name guanli //将vlan70命名为guanli Switch(config-If-Vlan70)#ip address 172.17.202.21255.255.255.0//配置交换机管理地址Switch(config-If-Vlan70)#no shutdownSwitch(config-If-Vlan70)#exitSwitch(config)#ip route-static 0.0.0.0 0.0.0.0 172.17.202.1//配置交换机路由Switch(Config)#vlan 338,440 //新建vlan338,440Switch(config)#int ethernet 0/0/1 //进入端口Switch(Config- Ethernet- 0/0/1)#no shutdown //打开端口Switch(Config- Ethernet- 0/0/1)#switchport mode access//将端口定义为access口Switch(Config- Ethernet- 0/0/1)#switchport access vlan 388//将vlan338加入该端口Switch(Config- Ethernet- 0/0/1)#exit //退出Switch(Config)# int ethernet 0/0/12-19;int ethernet 0/0/20 //进入端口组Switch(Config-Port-Range)#switchport mode access //将端口组定义为access口Switch(Config-Port-Range)#switchport access vlan 440//将vlan440加入该端口组Switch(Config-Port-Range)#exit //退出Switch(Config)# int ethernet 0/0/21 //进入端口Switch(Config- Ethernet-0/0/21)# switchport mode trunk//将端口定义为trunk口Switch(Config- Ethernet-0/0/21)#switchport trunk aaowed vlan70;338;440 //该端口允许Vlan70,338,440通过Switch(Config- Ethernet-0/0/21)exit //退出0/0/21 端口Switch(Config)# exit //退出.Switch#write //保存2、迈普设备故障处理基本命令1)查看交换机端口状态2)查看交换机端口描述3)查询mac地址4)修改交换机配置打开端口no shutdown关闭端口no shutdown迈普路由器配置与维护enable 普通用户模式只能看看特权用户模式:filesystem 文件系统模式configure 全局配置模式---- interface 接口配置模式router*** 路由配置模式ipsccess-list 访问列表配置模式voice-port 语音口配置模式dial-peer 拨号端口配置模式系统配置。
目录第1章IPv4组播协议 (1)1.1 IPv4组播协议概述 (1)1.1.1 组播简介 (1)1.1.2 组播地址 (1)1.1.3 IP组播报文转发 (3)1.1.4 IP组播应用 (3)1.2 PIM-DM (3)1.2.1 PIM-DM介绍 (3)1.2.2 PIM-DM配置任务序列 (4)1.2.3 PIM-DM典型案例 (6)1.2.4 PIM-DM排错帮助 (7)1.3 PIM-SM (8)1.3.1 PIM-SM介绍 (8)1.3.2 PIM-SM配置任务序列 (9)1.3.3 PIM-SM典型案例 (12)1.3.4 PIM-SM排错帮助 (15)1.4 MSDP配置 (15)1.4.1 MSDP介绍 (15)1.4.2 MSDP配置任务简介 (16)1.4.3 配置MSDP基本功能 (17)1.4.4 配置MSDP对等体 (18)1.4.5 配置报文收发 (18)1.4.6 配置SA-cache参数 (19)1.4.7 MSDP举例 (20)1.4.8 MSDP排错帮助 (26)1.5 ANYCAST RP配置 (26)1.5.1 ANYCAST RP介绍 (26)1.5.2 ANYCAST RP配置任务 (27)1.5.3 ANYCAST RP典型案例 (29)1.5.4 ANYCAST RP排错帮助 (30)1.6 PIM-SSM (31)版权所有©2009,迈普通信技术股份有限公司,保留所有权利11.6.1 PIM-SSM 介绍 (31)1.6.2 PIM-SSM 配置任务序列 (31)1.6.3 PIM-SSM 典型案例 (31)1.6.4 PIM-SSM 排错帮助 (34)1.7 DVMRP (34)1.7.1 DVMRP介绍 (34)1.7.2 配置任务序列 (35)1.7.3 DVMRP典型案例 (37)1.7.4 DVMRP排错帮助 (38)1.8 DCSCM (38)1.8.1 DCSCM介绍 (38)1.8.2 DCSCM配置任务序列 (39)1.8.3 DCSCM典型案例 (41)1.8.4 DCSCM排错帮助 (42)1.9 IGMP (42)1.9.1 IGMP介绍 (42)1.9.2 配置任务序列 (44)1.9.3 IGMP典型案例 (46)1.9.4 IGMP排错帮助 (47)1.10 IGMP Snooping配置 (47)1.10.1 IGMP Snooping介绍 (47)1.10.2 IGMP Snooping配置任务 (47)1.10.3 IGMP Snooping典型案例 (49)1.10.4 IGMP Snooping排错帮助 (52)1.11 IGMP Proxy配置 (53)1.11.1 IGMP Proxy介绍 (53)1.11.2 IGMP Proxy配置任务 (53)1.11.3 IGMP Proxy举例 (54)1.11.4 IGMP Proxy排错帮助 (57)第2章IPv6组播协议 (58)2.1 PIM-DM6 (58)2.1.1 PIM-DM6介绍 (58)2.1.2 PIM-DM6配置任务序列 (59)2.1.3 PIM-DM6典型案例 (61)版权所有©2009,迈普通信技术股份有限公司,保留所有权利22.1.4 PIM-DM6排错帮助 (62)2.2 PIM-SM6 (62)2.2.1 PIM-SM6介绍 (62)2.2.2 PIM-SM6配置任务序列 (64)2.2.3 PIM-SM6典型案例 (67)2.2.4 PIM-SM6排错帮助 (70)2.3 ANYCAST RP v6配置 (70)2.3.1 ANYCAST RP v6介绍 (70)2.3.2 ANYCAST RP v6配置任务 (71)2.3.3 ANYCAST RP v6典型案例 (73)2.3.4 ANYCAST RP v6排错帮助 (74)2.4 PIM-SSM6 (75)2.4.1 PIM-SSM6 介绍 (75)2.4.2 PIM-SSM6 配置任务序列 (75)2.4.3 PIM-SSM6 典型案例 (75)2.4.4 PIM-SSM6 排错帮助 (78)2.5 IPv6 DCSCM (78)2.5.1 IPv6 DCSCM介绍 (78)2.5.2 IPv6 DCSCM配置任务序列 (79)2.5.3 IPv6 DCSCM典型案例 (81)2.5.4 IPv6 DCSCM排错帮助 (82)2.6 MLD Snooping (82)2.6.1 MLD Snooping介绍 (82)2.6.2 MLD Snooping配置任务 (82)2.6.3 MLD Snooping典型案例 (84)2.6.4 MLD Snooping排错帮助 (87)第3章组播VLAN配置 (88)3.1 组播VLAN介绍 (88)3.2 组播VLAN配置任务 (88)3.3 组播VLAN举例 (89)版权所有©2009,迈普通信技术股份有限公司,保留所有权利3第1章IPv4组播协议1.1 IPv4组播协议概述本章对IPv4组播协议的配置进行介绍,本章所有的IP都是指IPv4。
迈普交换机配置1、迈普设备配置基本命令用户名密码为:admin adminSwitch>enable //进入普通用户模式-只能看看Switch#config terminal //进入全局配置模式Switch(config)#vlan 70 //新建vlan 70Switch(config-If-Vlan70)#name guanli //将vlan70命名为guanli Switch(config-If-Vlan70)#ip address 172.17.202.21255.255.255.0//配置交换机管理地址Switch(config-If-Vlan70)#no shutdownSwitch(config-If-Vlan70)#exitSwitch(config)#ip route-static 0.0.0.0 0.0.0.0 172.17.202.1//配置交换机路由Switch(Config)#vlan 338,440 //新建vlan338,440Switch(config)#int ethernet 0/0/1 //进入端口Switch(Config- Ethernet- 0/0/1)#no shutdown //打开端口Switch(Config- Ethernet- 0/0/1)#switchport mode access//将端口定义为access口Switch(Config- Ethernet- 0/0/1)#switchport access vlan 388//将vlan338加入该端口Switch(Config- Ethernet- 0/0/1)#exit //退出Switch(Config)# int ethernet 0/0/12-19;int ethernet 0/0/20 //进入端口组Switch(Config-Port-Range)#switchport mode access //将端口组定义为access口Switch(Config-Port-Range)#switchport access vlan 440//将vlan440加入该端口组Switch(Config-Port-Range)#exit //退出Switch(Config)# int ethernet 0/0/21 //进入端口Switch(Config- Ethernet-0/0/21)# switchport mode trunk//将端口定义为trunk口Switch(Config- Ethernet-0/0/21)#switchport trunk aaowed vlan70;338;440 //该端口允许Vlan70,338,440通过Switch(Config- Ethernet-0/0/21)exit //退出0/0/21 端口Switch(Config)# exit //退出.Switch#write //保存2、迈普设备故障处理基本命令1)查看交换机端口状态2)查看交换机端口描述3)查询mac地址4)修改交换机配置打开端口no shutdown关闭端口no shutdown迈普路由器配置与维护enable 普通用户模式只能看看特权用户模式:filesystem 文件系统模式configure 全局配置模式---- interface 接口配置模式router*** 路由配置模式ipsccess-list 访问列表配置模式voice-port 语音口配置模式dial-peer 拨号端口配置模式系统配置。
华为迈普交换机、瑞斯康达SNMP协议配置方法SNMP是一个网络管理协议,开启SNMP协议后,就可以管理网络内的交换机,现在说明一下华为和迈普交换机的配置方法在配置前请把交换机的名字改为服务厅名称,命名规则如下:县份拼音简写_服务厅全拼_(服务厅/基站/代办点) 例如:FS_zhongdong_jizhan_ C2950 (表示扶绥中东基站里的Cisco2950交换机)FS_ZhongDong_ZY_HWS2326 ((表示扶绥中东自营厅的华为S2326交换机)FS_ZhongDong_DB_MP4100 ((表示扶绥中东代办点的迈普4100交换机)给交换机命名后再给每个在用的端口添加描述或到描述联到设备名称To_pc1(联到电脑)To_ SL_BOSS_2403(交换机名称)端口描述命令:进入端口视图后:description to_XXXX (华为迈普命令一样)华为:配置方法:进入交换机的系统配置模式(SYS)--snmp-agentsnmp-agent community read nn!bosssnmp-agent sys-info version all退出/保存配置( save)迈普: admin首先给交换机命名(命名规则如上):进入特权模式(en)->进入全局模式(conf t)#Hostname XXXX(交换机名字后回车)#Snmp en# snmp-server community nn!boss ro退出/保存配置( wr)瑞斯康达: raisecom< Raisecom >enRaisecom#confiRaisecom<config>#snmpRaisecom<config- snmp>#snmp community nn!mobile ro。
迈普交换机配置指导书1.通过Console口配置交换机(同HW2016一样)通过配置线将终端的RS-232串口与交换机的Console口相连。
配置用PCPC机串口MyPower S3000B 配置口2.迈普交换机基本配置enacon t 进入配置模式vlan 2 创建vlan 2port 0/0 tagexlayer2-mode disable 关闭2层模式interface sw0 进入SW0接口ip address 192.168.x.x 255.255.255.0 配置管理地址x范围(2-254) vlan-id 2 管理vlanexitip route 0.0.0.0 0.0.0.0 192.168.x.1 静态路由,指向管理地址x网关enable password level 15 admin 为交换机密码igmpsnoop en 打开组播exitwr3.中兴交换机配置实例Switch# show runBuild configration... doneCurrent configration: 1701 bytesuser admin password 7 OWRW[WWW\W user admin privilege 15enable password OWRW[WWW\W encryptservice password-encryptservice login-securelayer2-mode disablevlan 1description defaultport 0/0-0/15 untaggedvlan 2description VLAN0002port 0/0 taggedvlan 1065description VLAN1065port 0/0-0/15 untaggedvlan 2103description VLAN2103port 0/0-0/15 taggedvlan 2104description VLAN2104port 0/0-0/15 taggedexitigmpsnoop enable!slot 0port 0/1pvid 1065storm-control disableexitport 0/2pvid 1065exitport 0/3pvid 1065storm-control disable exitport 0/4pvid 1065storm-control disable exitport 0/5pvid 1065storm-control disable exitport 0/6pvid 1065storm-control disable exitport 0/7pvid 1065storm-control disable exitport 0/8pvid 1065storm-control disable exitport 0/9pvid 1065storm-control disable exitport 0/10pvid 1065storm-control disable exitport 0/11pvid 1065storm-control disable exitport 0/12pvid 1065storm-control disable exitport 0/13pvid 1065exitport 0/14pvid 1065storm-control disableexitport 0/15pvid 1065storm-control disableexitinterface loopback0ip address 127.0.0.1 255.0.0.0exitinterface sw0ip address 192.168.14.2 255.255.255.0vlan-id 2exitip route 0.0.0.0 0.0.0.0 192.168.14.1Switch#3.1 举例说明例:1端口为主端口,2,3端口为下挂交换机端口,4,5端口为普通农带,6-10端口为家庭网关数据,11-12为单个可视电话用户,13端口为网络IP电话用,14端口为带网络IP电话的家庭网关网户,15端口为IP电话用户。
配置如下:Switch# configure terminal% Enter configuration commands, one per line. End with CNTL+Z.Switch(config)#vlan 2Switch(config-vlan2)#port 0/0-0/3 taSwitch(config-vlan2)#vlan 1000Switch(config-vlan1000)#port 0/0-0/3 taSwitch(config-vlan1000)#port 0/4-0/5 un Switch(config-vlan1000)#port 0/6-0/10 un Switch(config-vlan1000)#vlan 2103 Switch(config-vlan2103)#port 0/0-0/3 ta Switch(config-vlan2103)#port 0/6-0/10 ta Switch(config-vlan2103)#port 0/11-0/12 un Switch(config-vlan2103)#vlan 2104 Switch(config-vlan2104)#port 0/0-0/3 ta Switch(config-vlan2104)#port 0/6-0/10 ta Switch(config-vlan2104)#vlan 2101 Switch(config-vlan2101)#port 0/0 ta Switch(config-vlan2101)#port 0/13 un Switch(config-vlan2101)#port 0/14 ta Switch(config-vlan2101)#vlan 2097 Switch(config-vlan2097)#port 0/0 ta Switch(config-vlan2097)#port 0/15 un Switch(config-vlan2097)#exitSwitch(config)#port 0/4-0/5Switch(config-port-range)#pvid 1000 Switch(config-port-range)#port 0/6-0/10 Switch(config-port-range)#pvid 1000Switch(config-port-range)#port 0/13Switch(config-port-0/13)#pvid 2101Switch(config-port-range)#port 0/14Switch(config-port-0/14)#pvid 1000VLAN 1000 does not exist or has not member port 0/14Fail to set port 0/14!Switch(config-port-0/14)#exitSwitch(config)#vlan 1000Switch(config-vlan1000)#port 0/14 unSwitch(config-vlan1000)#exitSwitch(config)#port 0/14Switch(config-port-0/14)#pvid 1000Switch(config-port-0/14)#exitSwitch(config-port-0/14)#port 0/11-0/12Switch(config-port-range)#pvid 2103Switch(config-port-range)#port 0/15Switch(config-port-0/15)#pvid 2097Switch(config-port-0/15)#exitSwitch(config)#show vlan---- ---- -------------------------------- -----------------------------------NO. VID VLAN-Name Port Number---- ---- -------------------------------- -----------------------------------1 1 default [U] 0/0 0/1 0/2 0/3 0/40/5 0/6 0/7 0/8 0/90/10 0/11 0/12 0/13 0/140/152 2 VLAN0002 [M] 0/0 0/1 0/2 0/33 1000 VLAN1000 [U] 0/4 0/5 0/6 0/7 0/80/9 0/10 0/14[M] 0/0 0/1 0/2 0/34 2097 VLAN2097 [U] 0/15[M] 0/05 2101 VLAN2101 [U] 0/13[M] 0/0 0/146 2103 VLAN2103 [U] 0/11 0/12[M] 0/0 0/1 0/2 0/3 0/60/7 0/8 0/9 0/107 2104 VLAN2104 [M] 0/0 0/1 0/2 0/3 0/60/7 0/8 0/9 0/103.2补充上述端口2,3 下挂交换机描述添加方式;Switch(config)#port 0/2Switch(config-port-0/2)#descSwitch(config-port-0/2)#desc?% Unknown commandSwitch(config-port-0/2)#exitSwitch(config)#vlan 3Switch(config-vlan3)#desc To_192.168.14.11Switch(config-vlan3)#port 0/2 taSwitch(config-vlan3)#vlan 4Switch(config-vlan4)# desc To_192.168.14.12Switch(config-vlan4)# port 0/3 taSwitch(config-vlan4)#exitSwitch(config)#exit[0m [1;36m%SYS-5-CONFIG-I:Configured from console by admin on console [0mSwitch#saAre you sure? (y/n)ySave... done4.上述交换机配置完如下Switch#show runBuild configration... doneCurrent configration: 1226 bytesuser admin password 7 OWRW[WWW\Wuser admin privilege 15enable password OWRW[WWW\W encryptservice password-encryptservice login-securelayer2-mode disablevlan 1description defaultport 0/0-0/15 untaggedvlan 2description VLAN0002port 0/0-0/3 taggedvlan 3description To_192.168.14.11 port 0/2 taggedvlan 4description To_192.168.14.12 port 0/3 taggedvlan 1000description VLAN1000port 0/0-0/3 taggedport 0/4-0/10,0/14 untagged vlan 2097description VLAN2097port 0/0 taggedport 0/15 untaggedvlan 2101description VLAN2101port 0/0,0/14 taggedport 0/13 untaggedvlan 2103description VLAN2103port 0/0-0/3,0/6-0/10 tagged port 0/11-0/12 untaggedvlan 2104description VLAN2104port 0/0-0/3,0/6-0/10 tagged exitigmpsnoop enable!slot 0port 0/4pvid 1000exitport 0/5pvid 1000exitport 0/6pvid 1000exitport 0/7pvid 1000exitport 0/8pvid 1000exitport 0/9pvid 1000exitport 0/10pvid 1000exitport 0/11pvid 2103exitport 0/12pvid 2103exitport 0/13pvid 2101exitport 0/14pvid 1000exitport 0/15pvid 2097exit!interface loopback0ip address 127.0.0.1 255.0.0.0exitinterface sw0ip address 192.168.14.2 255.255.255.0 vlan-id 2exitip route 0.0.0.0 0.0.0.0 192.168.14.1 Switch#5.迈普交换机一些常用命令1。