发包涉及的命令


显示发包收包情况

show platform hardware qfp active datapath utilization   显示发包收包情况
  CPP 0: Subdev 0            5 secs        1 min        5 min       60 min
Input:  Priority (pps)            0            0            0            0
                 (bps)            0            0            0            0
    Non-Priority (pps)          957          296          389           38
                 (bps)      1022032       314840       415040        38224
           Total (pps)          957          296          389           38
                 (bps)      1022032       314840       415040        38224
Output: Priority (pps)            0            0            0            0
                 (bps)            0            0            0            0
    Non-Priority (pps)          953          292          386           34
                 (bps)       745976       232088       303768        33608
           Total (pps)          953          292          386           34
                 (bps)       745976       232088       303768        33608
Processing: Load (pct)            2            2            2            2
lei-csr2#sh platform hardware qfp ac interface if-name GigabitEthernet2
General interface information
  Interface Name: GigabitEthernet2
  Interface state: VALID
  Platform interface handle: 8
  QFP interface handle: 7
  Rx uidb: 1022
  Tx uidb: 65529
  Channel: 19
Interface Relationships

将G2口连接到Vlan中


lei-csr2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
lei-csr2(config)#int g2
lei-csr2(config-if)#no xconnect 
lei-csr2(config-if)#ser in 100 ethernet 
lei-csr2(config-if-srv)#encapsulation dot1q 100
lei-csr2(config-if-srv)#xconnect 1.1.1.1 100 pw-class B
lei-csr2(cfg-if-ether-vc-xconn)#end
lei-csr2#sh run int g2
Building configuration...
Current configuration : 226 bytes
!
interface GigabitEthernet2
 no ip address
 negotiation auto
 no keepalive
 no mop enabled
 no mop sysid
 service instance 100 ethernet
  encapsulation dot1q 100
  xconnect 1.1.1.1 100 encapsulation l2tpv3 pw-class B
 !
end

lei-csr2#show xconnect all
Legend:    XC ST=Xconnect State  S1=Segment1 State  S2=Segment2 State
  UP=Up       DN=Down            AD=Admin Down      IA=Inactive
  SB=Standby  HS=Hot Standby     RV=Recovering      NH=No Hardware

XC ST  Segment 1                         S1 Segment 2                         S2
------+---------------------------------+--+---------------------------------+--

查看目录  

 dir

大端的包安装,完成安装好重启

#$mgcusr:[email protected]/image/csr1000v-universalk9.BLD_POLARIS_DEV_LATEST_20180523_001744.SSA.bin bootflash:

lei-csr2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
lei-csr2(config)#no boot sys
lei-csr2(config)#boot system bootflash:csr1000v-universalk9.BLD_POLARIS_DEV_LATEST_20180523_001744.SSA.bin
lei-csr2(config)#end
lei-csr2#wr
Building configuration...
[OK]
lei-csr2#reload

查看是大端还是小端的image:

show version

第一台机器的ip地址相连转换成vlan相连

lei-csr1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
lei-csr1(config)#int g2
lei-csr1(config-if)#no service instance 100 eth
lei-csr1(config-if)#exit
lei-csr1(config)#int g2.100
lei-csr1(config-subif)#encapsulation dot1Q 100
lei-csr1(config-subif)#ip add 15.0.0.1 255.255.255.0
lei-csr1(config-subif)#xconnect 2.2.2.2 100 pw-class B
Incompatible with ip address command on Gi2.100 - command rejected.
lei-csr1(config-subif)#no ip add
lei-csr1(config-subif)#xconnect 2.2.2.2 100 pw-class B
lei-csr1(config-subif-xconn)#end
lei-csr1#sh xconnect all
Legend:    XC ST=Xconnect State  S1=Segment1 State  S2=Segment2 State
  UP=Up       DN=Down            AD=Admin Down      IA=Inactive
  SB=Standby  HS=Hot Standby     RV=Recovering      NH=No Hardware

XC ST  Segment 1                         S1 Segment 2                         S2
------+---------------------------------+--+---------------------------------+--
UP pri   ac Gi2.100:100(Eth VLAN)        UP l2tp 2.2.2.2:100                  UP

查看l2tpv3的连接情况

lei-csr1# sh run | se l2tp
 l2tp-class A
 authentication
 password cisco
 encapsulation l2tpv3
 protocol l2tpv3 A
 xconnect 2.2.2.2 100 encapsulation l2tpv3 pw-class B

查看历史命令

显示历史命令:
 lei-csr2#show history
  monitor capture epc sto
  show monitor capture epc buffer brief 
抓包的命令:
  show monitor capture epc buffer detailed 
  monitor capture epc export ftp://sish:[email protected]/1.pcap
  show interfaces gigabitEthernet 1
  show ip route 
  ping 2.2.2.2
  ping 1.1.1.1

IP的连接情况

lei-csr2#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, m - OMP
       n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

      1.0.0.0/32 is subnetted, 1 subnets
O        1.1.1.1 [110/2] via 23.1.1.2, 00:38:22, GigabitEthernet1
      2.0.0.0/32 is subnetted, 1 subnets
C        2.2.2.2 is directly connected, Loopback0
      23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        23.1.1.0/24 is directly connected, GigabitEthernet1
L        23.1.1.3/32 is directly connected, GigabitEthernet1

https://wenku.baidu.com/view/92f6b8448bd63186bcebbcb0.html   

https://tools.ietf.org/html/rfc3931

 


猜你喜欢

转载自blog.csdn.net/strive_0902/article/details/80534033