“Cisco ios命令”的版本间的差异

来自qingwei personal wiki
跳转至: 导航搜索
 
(未显示同一用户的9个中间版本)
第1行: 第1行:
 
== 使用MD-splitting(haofan做得)后,让RPD ipv4/6上线的配置 ==
 
== 使用MD-splitting(haofan做得)后,让RPD ipv4/6上线的配置 ==
 +
=== IP 4配置 ===
 +
* multicast pool
 +
<source lang="shell">
 +
# 要让v4上线,multicast pool只能配 v4地址
 +
CRDC-NG-E09#sh run | s multicast pool 62
 +
cable depi multicast pool 62
 +
ip address 239.1.1.0 255.255.255.0
 +
</source>
 +
* downstream controller-profile (跟multicast pool关联)
 +
<source lang="shell">
 +
cable downstream controller-profile 1
 +
multicast-pool 62
 +
max-ofdm-spectrum 192000000
 +
rf-chan 0 31
 +
  type DOCSIS
 +
  qam-profile 1
 +
  frequency 453000000
 +
  rf-output NORMAL
 +
  docsis-channel-id 1
 +
rf-chan 158
 +
  docsis-channel-id 162
 +
  ofdm channel-profile 25 start-frequency 807000000 width 192000000 plc 963000000
 +
  qam-profile 1
 +
</source>
 +
=== IP 6配置 ===
 +
* multicast pool
 +
<source lang="shell">
 +
# 要让v6上线,multicast pool只能配 v6地址
 +
CRDC-NG-E09#show run | s multicast pool 66
 +
cable depi multicast pool 66
 +
ipv6 address FF3A::8000:0/120
 +
</source>
 +
* downstream controller-profile (跟multicast pool关联)
 +
<source lang="shell">
 +
cable downstream controller-profile 200
 +
multicast-pool 66
 +
max-ofdm-spectrum 192000000
 +
rf-chan 0 31
 +
  type DOCSIS
 +
  qam-profile 1
 +
  frequency 453000000
 +
  rf-output NORMAL
 +
  docsis-channel-id 1
 +
rf-chan 158
 +
  docsis-channel-id 162
 +
  ofdm channel-profile 25 start-frequency 807000000 width 192000000 plc 963000000
 +
  rpd-ds 0 downstream-cable 7/0/14 profile 200
 +
  rpd-ds 0 downstream-cable 7/0/13 profile 200
 +
</source>
  
 
== 一些命令 ==
 
== 一些命令 ==
第16行: 第65行:
 
show processes cpu monitor
 
show processes cpu monitor
 
</pre>
 
</pre>
 
 
=== debug CBR  ===
 
=== debug CBR  ===
 
show cable  rpd log reverse
 
show cable  rpd log reverse
 +
=== 查看cable interface ===
 +
<pre>
 +
CRDC-NG-E09#sh run interface cable 7/0/5
 +
Load for five secs: 5%/1%; one minute: 6%; five minutes: 7%
 +
Time source is NTP, 01:15:10.505 PST Tue Dec 19 2017
 +
 +
Building configuration...
 +
 +
Current configuration : 28 bytes
 +
!
 +
interface Cable7/0/5
 +
end
 +
</pre>
 +
=== send break ===
 +
<pre>
 +
send break(在init时候,###后就不行了, 通过ctrl ]  ---->)
 +
rommon 1 > dir harddisk:
 +
Please reset before continuing
 +
rommon 2 > confreg 0
 +
You must reset or power cycle for new config to take effect
 +
rommon 3 >
 +
rommon 3 >
 +
rommon 3 >
 +
rommon 3 > reset
 +
</pre>
  
 
== 登入 ==
 
== 登入 ==
第42行: 第115行:
 
* C02不起作用
 
* C02不起作用
 
<pre>
 
<pre>
crypto key generate rsa usage-keys label jifu-ssh-key modulus 768
+
crypto key generate rsa usage-keys label qingwyan-ssh-key modulus 768
ip ssh rsa keypair-name jifu-ssh-key  
+
ip ssh rsa keypair-name qingwyan-ssh-key  
 +
</pre>
 +
== 常见错误 ==
 +
=== 证书错误 ===
 +
<pre>
 +
ERR: LICENSE Config Lock Enforced! Cannot bind profile!
 +
 
 +
license smart register idtoken YWFkYjljOGQtMzA0Mi00OGZhLWIwNDktNTIyZWQ4ZGQ2OWU4LTE1MjYwNDA2%0AMTM3MDl8d3JFRHozZmsyOGZweEhNeUV4N3NkSGZGU3pmN0Y2ZEcvRGFUN09L%0AZy9kdz0%3D%0A  force
 +
 
 +
show license status
 +
 
 +
删除下面文件, reload TB就OK了
 +
rm /csl_p/*info
 +
 
 +
license smart deregister
 
</pre>
 
</pre>
  
第66行: 第153行:
 
C02#wr
 
C02#wr
 
</pre>
 
</pre>
 +
 +
 +
[[category: cisco]]

2018年6月20日 (三) 02:17的最新版本

使用MD-splitting(haofan做得)后,让RPD ipv4/6上线的配置

IP 4配置

  • multicast pool
# 要让v4上线,multicast pool只能配 v4地址
CRDC-NG-E09#sh run | s multicast pool 62
cable depi multicast pool 62
 ip address 239.1.1.0 255.255.255.0
  • downstream controller-profile (跟multicast pool关联)
cable downstream controller-profile 1
 multicast-pool 62
 max-ofdm-spectrum 192000000
 rf-chan 0 31
  type DOCSIS
  qam-profile 1
  frequency 453000000
  rf-output NORMAL
  docsis-channel-id 1
 rf-chan 158
  docsis-channel-id 162
  ofdm channel-profile 25 start-frequency 807000000 width 192000000 plc 963000000
  qam-profile 1

IP 6配置

  • multicast pool
# 要让v6上线,multicast pool只能配 v6地址
CRDC-NG-E09#show run | s multicast pool 66
cable depi multicast pool 66
 ipv6 address FF3A::8000:0/120
  • downstream controller-profile (跟multicast pool关联)
cable downstream controller-profile 200
 multicast-pool 66
 max-ofdm-spectrum 192000000
 rf-chan 0 31
  type DOCSIS
  qam-profile 1
  frequency 453000000
  rf-output NORMAL
  docsis-channel-id 1
 rf-chan 158
  docsis-channel-id 162
  ofdm channel-profile 25 start-frequency 807000000 width 192000000 plc 963000000
  rpd-ds 0 downstream-cable 7/0/14 profile 200
  rpd-ds 0 downstream-cable 7/0/13 profile 200

一些命令

copy image

  • 从NG03上copy EO9 harddisk上的image
NG03#copy scp: harddisk:                               
Address or name of remote host [20.6.6.2]? 
Source username [admin]? 
Source filename [cbrsup-universalk9.2017-11-21_05.39_peili2.SSA.bin]? harddisk:cbrsup-universalk9.2017-11-21_05.39_peili2.SSA.bin  
Destination filename [harddisk:cbrsup-universalk9.2017-11-21_05.39_peili2.SSA.bin]? cbrsup-universalk9.2017-11-21_05.39_peili2.SSA.bin
Password: 

监控CPU

show processes cpu monitor

debug CBR

show cable rpd log reverse

查看cable interface

CRDC-NG-E09#sh run interface cable 7/0/5
Load for five secs: 5%/1%; one minute: 6%; five minutes: 7%
Time source is NTP, 01:15:10.505 PST Tue Dec 19 2017

Building configuration...

Current configuration : 28 bytes
!
interface Cable7/0/5
end

send break

send break(在init时候,###后就不行了, 通过ctrl ]  ---->)
rommon 1 > dir harddisk:
Please reset before continuing
rommon 2 > confreg 0
You must reset or power cycle for new config to take effect
rommon 3 >
rommon 3 >
rommon 3 >
rommon 3 > reset

登入

telnet 不使用用户名/密码

aaa new-model
aaa authentication login default none
aaa authentication enable default none

SSH 用户名/密码

username lab priv 15 pass 0 lab
ip domain name cisco.com
crypto key generate rsa general-keys label ssh_key modulus 2048
ip ssh rsa keypair-name ssh_key
ip ssh version 2

line vty  0 20
 transport input telnet 
line vty  21 99
 transport input ssh 
  • C02不起作用
crypto key generate rsa usage-keys label qingwyan-ssh-key modulus 768
ip ssh rsa keypair-name qingwyan-ssh-key 

常见错误

证书错误

ERR: LICENSE Config Lock Enforced! Cannot bind profile!

license smart register idtoken YWFkYjljOGQtMzA0Mi00OGZhLWIwNDktNTIyZWQ4ZGQ2OWU4LTE1MjYwNDA2%0AMTM3MDl8d3JFRHozZmsyOGZweEhNeUV4N3NkSGZGU3pmN0Y2ZEcvRGFUN09L%0AZy9kdz0%3D%0A  force

show license status

删除下面文件, reload TB就OK了
rm /csl_p/*info

license smart deregister

杂七杂八

替换running config

C02#copy harddisk:qingwyan_20171204.cfg startup-config
Destination filename [startup-config]?
14198 bytes copied in 0.777 secs (18273 bytes/sec)
Router#reload
Proceed with reload? [confirm]

C02 换image

0x2的方式

telnet 80.3.1.12
C02(config)#no boot system
C02(config)#boot system harddisk:cbrsup-universalk9.BLD_POLARIS_DEV_LATEST_20171123_002433.SSA.bin
C02(config)#config-register 0x2
C02(config)#end
C02#wr