IPv4 Input Filter Name: O-2M-demux0.1073750013-in //用户上行2M限速 IPv4 Output Filter Name: I-4M-demux0.1073750013-out //用户下行4M限速
Service Session ID: 30259
Service Session Name: Unicom//访问联通出口的计费业务名,计费会话id为30259 State: Active
IPv4 Input Filter Name: unicom-in-demux0.1073750013-in IPv4 Output Filter Name: unicom-out-demux0.1073750013-out
Service Session ID: 30260
Service Session Name: telecom//访问电信出口的计费业务名,计费会话id为30260 State: Active
IPv4 Input Filter Name: telecom-in-demux0.1073750013-in IPv4 Output Filter Name: telecom-in-demux0.1073750013-out
Service Session ID: 30261
Service Session Name: campus//访问校园网的计费业务名,计费会话id为30261 State: Active
IPv4 Input Filter Name: campus-in-demux0.1073750013-in IPv4 Output Filter Name: campus-out-demux0.1073750013-out
Service Session ID: 30262
Service Session Name: cernet //访问教育网出口的计费业务名,计费会话id为30262 State: Active
IPv4 Input Filter Name:cernet -in-demux0.1073750013-in
IPv4 Output Filter Name:cernet -out-demux0.1073750013-out 【说明】
本命令可以查看ipoe用户的详细信息。
12. 查看某一个pppoe用户的信息
user@MX960> show subscribers interface pp0.1073749744 extensive
Type: PPPoE
User Name: bigang IP Address: 10.155.2.99 IP Netmask: 255.255.0.0
Primary DNS Address: 202.117.144.2 Logical System: default Routing Instance: default Interface: pp0.1073749744 Interface type: Dynamic
Dynamic Profile Name: pppoe-autoconfig//用于动态生成pp0接口的Dynamic Profile MAC Address: 00:23:cd:56:02:5f //用户终端的MAC地址 State: Active
Radius Accounting ID: 29395 //用户的主计费session id Session ID: 29395//用户的session id Stacked VLAN Id: 1110 //用户的S-VLAN id VLAN Id: 313 //用户的C-VLAN id Login Time: 2012-10-19 23:57:44 CST //用户拨入时间 Service Sessions: 4 //用于计费的总的业务数 IP Address Pool: pool-1 //用户地址池(直接由MX960分配) IPv4 Input Filter Name: up2m-pp0.1073749744-in//用户上行2M限速
IPv4 Output Filter Name: down4m-pp0.1073749744-out//用户下行4M限速
Service Session ID: 29501
Service Session Name: unicom-pppoe//访问联通出口的计费业务名,计费会话id为29501 State: Active
IPv4 Input Filter Name: unicom-in-pp0.1073749744-in IPv4 Output Filter Name: unicom-out-pp0.1073749744-out
Service Session ID: 29502
Service Session Name: telecom-pppoe//访问电信出口的计费业务名,计费会话id为29502 State: Active
IPv4 Input Filter Name: telecom-in-pp0.1073749744-in IPv4 Output Filter Name: telecom-in-pp0.1073749744-out
Service Session ID: 29503
Service Session Name: campus-pppoe//校园网访问计费业务名,计费会话id为29503 State: Active
IPv4 Input Filter Name: campus-in-pp0.1073749744-in
IPv4 Output Filter Name: campus-out-pp0.1073749744-out
Service Session ID: 29504
Service Session Name: cernet-pppoe//访问教育网出口的计费业务名,计费会话id为29504 State: Active
IPv4 Input Filter Name: cernet-in-pp0.1073749744-in
IPv4 Output Filter Name: cernet-out-pp0.1073749744-out ---(more)--- 【说明】
本命令可以查看pppoe用户的详细信息。
13. 清除动态生成的vlan接口
user@MX960>clear auto-configuration interfaces xe-0/2/1
【说明】
本命令可以手动清除动态生成的VLAN接口,慎用!
如接口下有分配的DHCP地址,则接口无法清除。可用如下方法清除 set interfaces ge-4/0/2 disable
commit
run clear dhcp server binding interface ge-4/0/2.1073892537 run clear dhcpv6 server binding interface ge-4/0/2.1073892537 run clear auto-configuration interfaces ge-4/0/2 delete interfaces ge-4/0/2 disable commit
14. 强制pppoe用户下线
user@MX960>clear pppoe session
【说明】
本命令可以手动清除所有pppoe用户的会话,强制用户下线重拨,慎用!
15. 强制ipoe用户下线
user@MX960>clear dhcp relay binding all
【说明】
本命令可以手动清除所有ipoe用户的dhcp relay绑定关系表,同时强制清除了用户的demux0接口。后果是用户在dhcp地址租期超期前或续租前将不能网络访问,需要用户手动ipconfig /release和renew,重新获取地址才能恢复网络接入。慎用!
四、路由相关
1.
查看所有路由
user@MX960> show route
inet.0: 911 destinations, 911 routes (911 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[OSPF/150] 3d 00:01:01, metric 52, tag 0 to 10.196.0.25 via xe-0/2/0.0 > to 10.196.0.29 via xe-1/2/0.0
10.0.0.0/17 *[OSPF/150] 3d 02:18:07, metric 52, tag 0 to 10.196.0.25 via xe-0/2/0.0 > to 10.196.0.29 via xe-1/2/0.0
10.0.89.0/24 *[OSPF/150] 3d 02:18:07, metric 13, tag 0 to 10.196.0.25 via xe-0/2/0.0 > to 10.196.0.29 via xe-1/2/0.0
10.0.90.0/24 *[OSPF/150] 3d 02:18:07, metric 13, tag 0 > to 10.196.0.25 via xe-0/2/0.0
to 10.196.0.29 via xe-1/2/0.0
10.0.91.0/24 *[OSPF/150] 3d 02:18:07, metric 13, tag 0 > to 10.196.0.25 via xe-0/2/0.0
to 10.196.0.29 via xe-1/2/0.0 10.0.92.0/24 *[OSPF/10] 3d 02:18:07, metric 13 > to 10.196.0.25 via xe-0/2/0.0
to 10.196.0.29 via xe-1/2/0.0 ---(more)--- 【说明】
本命令可以查看MX960的所有路由表信息。
2. 查看ospf路由
user@MX960> show route protocol ospf
inet.0: 934 destinations, 935 routes (934 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[OSPF/150] 2d 12:34:45, metric 52, tag 0 to 10.196.0.25 via xe-0/2/0.0 > to 10.196.0.29 via xe-1/2/0.0
10.0.0.0/17 *[OSPF/150] 2d 12:34:45, metric 52, tag 0 > to 10.196.0.25 via xe-0/2/0.0
to 10.196.0.29 via xe-1/2/0.0
10.0.89.0/24 *[OSPF/150] 2d 12:34:45, metric 13, tag 0 to 10.196.0.25 via xe-0/2/0.0 > to 10.196.0.29 via xe-1/2/0.0
10.0.90.0/24 *[OSPF/150] 2d 12:34:45, metric 13, tag 0 > to 10.196.0.25 via xe-0/2/0.0
to 10.196.0.29 via xe-1/2/0.0 ---(more)--- 【说明】
本命令可以查看OSPF路由表的信息。
10.0.89.0/24 *[OSPF/150] 3d 02:18:07, metric 13, tag 0 to 10.196.0.25 via xe-0/2/0.0 > to 10.196.0.29 via xe-1/2/0.0
10.0.89.0/24:目标网段
[OSPF/150]:表明该路由是从ospf学习到的,而且是外部路由([OSPF/10]表示ospf内部路由)
metric 13:是去往该目标网段总的路径开销cost值
> to 10.196.0.29 via xe-1/2/0.0:表示去往该目标网段,有两条等值路径,但优选本路径。
3. 指定路由表做路由查询
user@MX960> show route table inet.0 202.117.144.2
inet.0: 935 destinations, 936 routes (935 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both
202.117.144.0/24 *[OSPF/10] 1w0d 17:37:20, metric 11 > to 10.196.0.25 via xe-0/2/0.0
4. 查看ospf 邻居
user@MX960> show ospf neighbor
Address Interface State ID Pri Dead 10.196.0.25 xe-0/2/0.0 Full 10.196.1.3 128 33 10.196.0.29 xe-1/2/0.0 Full 10.196.1.2 128 38 【说明】
本命令可以查看ospf邻居状态。
5. 查看ospfv3邻居
user@MX960> show ospf3 neighbor
ID Interface State Pri Dead 10.196.1.3 xe-0/2/0.0 Full 128 30 Neighbor-address fe80::aad0:e5ff:fef5:a852
10.196.1.2 xe-1/2/0.0 Full 128 39 Neighbor-address fe80::aad0:e5ff:fef7:b0f7 【说明】
本命令可以查看ospf邻居状态。
6. Windows系统主机Pathping命令
提供有关在源和目标之间的中间跃点处网络滞后和网络丢失的信息。Pathping 在一段时间内将多个回响请求消息发送到源和目标之间的各个路由器,然后根据各个路由器返回的数据包计算结果。因为 pathping 显示在任何特定路由器或链接处的数据包的丢失程度,所以用户可据此确定存在网络问题的路由器或子网。
Pathping 通过识别路径上的路由器来执行与 tracert 命令相同的功能。然后,该命令在一段指定的时间内定期将 ping 命令发送到所有的路由器,并根据每个路由器的返回数值生成统计结果。
简单来说,
ping 查看你到你想去的地方通不通;
tracert 查看你到你想去的地方该怎么走; pathping 查看你要走的这条路的路况怎么样。
pathping [-n] [-h MaximumHops] [-g HostList] [-p Period] [-q NumQueries [-w Timeout] [-i IPAddress] [-4 IPv4] [-6 IPv6][TargetName]
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库MX960运维命令汇总手册V2(8)在线全文阅读。
相关推荐: