| Profil de 立炜keguan's spacesPhotosBlogListes | Aide |
|
20 mars Switching 命令大全 Switching 命令大全 <来自网上资料收集> 1. 在基于IOS的交换机上设置主机名/系统名: switch(config)# hostname hostname 在基于CLI的交换机上设置主机名/系统名: switch(enable) set system name name-string 2.在基于IOS的交换机上设置登录口令: switch(config)# enable password level 1 password 在基于CLI的交换机上设置登录口令: switch(enable) set password switch(enable) set enalbepass 3.在基于IOS的交换机上设置远程访问: switch(config)# interface vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address 在基于CLI的交换机上设置远程访问: switch(enable) set interface sc0 ip-address netmask broadcast-address switch(enable) set interface sc0 vlan switch(enable) set ip route default gateway 4.在基于IOS的交换机上启用和浏览CDP信息: switch(config-if)# cdp enable switch(config-if)# no cdp enable 为了查看Cisco邻接设备的CDP通告信息: switch# show cdp interface [type modle/port] switch# show cdp neighbors [type module/port] [detail] 在基于CLI的交换机上启用和浏览CDP信息: switch(enable) set cdp {enable|disable} module/port 为了查看Cisco邻接设备的CDP通告信息: switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] 5.基于IOS的交换机的端口描述: switch(config-if)# description description-string 基于CLI的交换机的端口描述: switch(enable)set port name module/number description-string 6.在基于IOS的交换机上设置端口速度: switch(config-if)# speed{10|100|auto} 在基于CLI的交换机上设置端口速度: switch(enable) set port speed moudle/number {10|100|auto} switch(enable) set port speed moudle/number {4|16|auto} 7.在基于IOS的交换机上设置以太网的链路模式: switch(config-if)# duplex {auto|full|half} 在基于CLI的交换机上设置以太网的链路模式: switch(enable) set port duplex module/number {full|half} 8.在基于IOS的交换机上配置静态VLAN: switch# vlan database switch(vlan)# vlan vlan-num name vla switch(vlan)# exit switch# configure teriminal switch(config)# interface interface module/number switch(config-if)# switchport mode access switch(config-if)# switchport access vlan vlan-num switch(config-if)# end 在基于CLI的交换机上配置静态VLAN: switch(enable) set vlan vlan-num [name name] switch(enable) set vlan vlan-num mod-num/port-list 9. 在基于IOS的交换机上配置VLAN中继线: switch(config)# interface interface mod/port switch(config-if)# switchport mode trunk switch(config-if)# switchport trunk encapsulation {isl|dotlq} switch(config-if)# switchport trunk allowed vlan remove vlan-list switch(config-if)# switchport trunk allowed vlan add vlan-list 在基于CLI的交换机上配置VLAN中继线: switch(enable) set trunk module/port [on|off|desirable|auto|nonegotiate] Vlan-range [isl|dotlq|dotl0|lane|negotiate] 10.在基于IOS的交换机上配置VTP管理域: switch# vlan database switch(vlan)# vtp domain domain-name 在基于CLI的交换机上配置VTP管理域: switch(enable) set vtp [domain domain-name] 11.在基于IOS的交换机上配置VTP 模式: switch# vlan database switch(vlan)# vtp domain domain-name switch(vlan)# vtp {sever|cilent|transparent} switch(vlan)# vtp password password 在基于CLI的交换机上配置VTP 模式: switch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password] 12. 在基于IOS的交换机上配置VTP版本: switch# vlan database switch(vlan)# vtp v2-mode 在基于CLI的交换机上配置VTP版本: switch(enable) set vtp v2 enable 13. 在基于IOS的交换机上启动VTP剪裁: switch# vlan database switch(vlan)# vtp pruning 在基于CL I 的交换机上启动VTP剪裁: switch(enable) set vtp pruning enable 14.在基于IOS的交换机上配置以太信道: switch(config-if)# port group group-number [distribution {source|destination}] 在基于CLI的交换机上配置以太信道: switch(enable) set port channel moudle/port-range mode{on|off|desirable|auto} 15.在基于IOS的交换机上调整根路径成本: switch(config-if)# spanning-tree [vlan vlan-list] cost cost 在基于CLI的交换机上调整根路径成本: switch(enable) set spantree portcost moudle/port cost switch(enable) set spantree portvlancost moudle/port [cost cost][vlan-list] 16.在基于IOS的交换机上调整端口ID: switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority 在基于CLI的交换机上调整端口ID: switch(enable) set spantree portpri {mldule/port}priority switch(enable) set spantree portvlanpri {module/port}priority [vlans] 17. 在基于IOS的交换机上修改STP时钟: switch(config)# spanning-tree [vlan vlan-list] hello-time seconds switch(config)# spanning-tree [vlan vlan-list] forward-time seconds ` switch(config)# spanning-tree [vlan vlan-list] max-age seconds 在基于CLI的交换机上修改STP时钟: switch(enable) set spantree hello interval[vlan] switch(enable) set spantree fwddelay delay [vlan] switch(enable) set spantree maxage agingtiame[vlan] 18. 在基于IOS的交换机端口上启用或禁用Port Fast 特征: switch(config-if)#spanning-tree portfast 在基于CLI的交换机端口上启用或禁用Port Fast 特征: switch(enable) set spantree portfast {module/port}{enable|disable} 19. 在基于IOS的交换机端口上启用或禁用UplinkFast 特征: switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second] 在基于CLI的交换机端口上启用或禁用UplinkFast 特征: switch(enable) set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on] 20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令: switch(config)# cluster enable cluster-name 21. 为了从一条中继链路上删除VLAN,可使用下列命令: switch(enable) clear trunk module/port vlan-range 22. 用show vtp domain 显示管理域的VTP参数. 23. 用show vtp statistics显示管理域的VTP参数. 24. 在Catalyst交换机上定义TrBRF的命令如下: switch(enable) set vlan vlan-name [name name] type trbrf bridge bridge-num[stp {ieee|ibm}] 25. 在Catalyst交换机上定义TrCRF的命令如下: switch (enable) set vlan vlan-num [name name] type trcrf {ring hex-ring-num|decring decimal-ring-num} parent vlan-num 26. 在创建好TrBRF VLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN分配端口: switch(enable) set vlan vlan-num mod-num/port-num 27. 命令show spantree显示一个交换机端口的STP状态. 28. 配置一个ELAN的LES和BUS,可以使用下列命令: ATM (config)# interface atm number.subint multioint ATM(config-subif)# lane serber-bus ethernet elan-name 29. 配置LECS: ATM(config)# lane database database-name ATM(lane-config-databade)# name elan1-name server-atm-address les1-nsap-address ATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-address ATM(lane-config-databade)# name … 30. 创建完数据库后,必须在主接口上启动LECS.命令如下: ATM(config)# interface atm number ATM(config-if)# lane config database database-name ATM(config-if)# lane config auto-config-atm-address 31. 将每个LEC配置到一个不同的ATM子接口上.命令如下: ATM(config)# interface atm number.subint multipoint ATM(config)# lane client ethernet vlan-num elan-num 32. 用show lane server 显示LES的状态. 33. 用show lane bus显示bus的状态. 34. 用show lane database显示LECS数据库可内容. 35. 用show lane client显示LEC的状态. 36. 用show module显示已安装的模块列表. 37. 用物理接口建立与VLAN的连接: router# configure terminal router(config)# interface media module/port router(config-if)# description description-string router(config-if)# ip address ip-addr subnet-mask router(config-if)# no shutdown 38. 用中继链路来建立与VLAN的连接: router(config)# interface module/port.subinterface router(config-ig)# encapsulation[isl|dotlq] vlan-number router(config-if)# ip address ip-address subnet-mask 39. 用LANE 来建立与VLAN的连接: router(config)# interface atm module/port router(config-if)# no ip address router(config-if)# atm pvc 1 0 5 qsaal router(config-if)# atm pvc 2 0 16 ilni router(config-if)# interface atm module/port.subinterface multipoint router(config-if)# ip address ip-address subnet-mask router(config-if)# lane client ethernet elan-num router(config-if)# interface atm module/port.subinterface multipoint router(config-if)# ip address ip-address subnet-name router(config-if)# lane client ethernet elan-name router(config-if)# … 40. 为了在路由处理器上进行动态路由配置,可以用下列IOS命令来进行: router(config)# ip routing router(config)# router ip-routing-protocol router(config-router)# network ip-network-number router(config-router)# network ip-network-number 41. 配置默认路由: switch(enable) set ip route default gateway 42. 为一个路由处理器分配VLANID,可在接口模式下使用下列命令: router(config)# interface interface number router(config-if)# mls rp vlan-id vlan-id-num 43. 在路由处理器启用MLSP: router(config)# mls rp ip 44. 为了把一个外置的路由处理器接口和交换机安置在同一个VTP域中: router(config)# interface interface number router(config-if)# mls rp vtp-domain domain-name 45. 查看指定的VTP域的信息: router# show mls rp vtp-domain vtp domain name 46. 要确定RSM或路由器上的管理接口,可以在接口模式下输入下列命令: router(config-if)#mls rp management-interface 47. 要检验MLS-RP的配置情况: router# show mls rp 48. 检验特定接口上的MLS配置: router# show mls rp interface interface number 49. 为了在MLS-SE上设置流掩码而又不想在任一个路由处理器接口上设置访问列表: set mls flow [destination|destination-source|full] 50. 为使MLS和输入访问列表可以兼容,可以在全局模式下使用下列命令: router(config)# mls rp ip input-acl 51. 当某个交换机的第3层交换失效时,可在交换机的特权模式下输入下列命令: switch(enable) set mls enable 52. 若想改变老化时间的值,可在特权模式下输入以下命令: switch(enable) set mls agingtime agingtime 53. 设置快速老化: switch(enable) set mls agingtime fast fastagingtime pkt_threshold 54. 确定那些MLS-RP和MLS-SE参与了MLS,可先显示交换机引用列表中的内容再确定: switch(enable) show mls include 55. 显示MLS高速缓存记录: switch(enable) show mls entry 56. 用命令show in arp显示ARP高速缓存区的内容。 57. 要把路由器配置为HSRP备份组的成员,可以在接口配置模式下使用下面的命令: router(config-if)# standby group-number ip ip-address 58. 为了使一个路由器重新恢复转发路由器的角色,在接口配置模式下: router(config-if)# standy group-number preempt 59. 访问时间和保持时间参数是可配置的: router(config-if)# standy group-number timers hellotime holdtime 60. 配置HSRP跟踪: router(config-if)# standy group-number track type-number interface-priority 61. 要显示HSRP路由器的状态: router# show standby type-number group brief 62. 用命令show ip igmp确定当选的查询器。 63. 启动IP组播路由选择: router(config)# ip muticast-routing 64. 启动接口上的PIM: dalllasr1>(config-if)# ip pim {dense-mode|sparse-mode|sparse-dense-mode} 65. 启动稀疏-稠密模式下的PIM: router# ip multicast-routing router# interface type number router# ip pim sparse-dense-mode 66. 核实PIM的配置: dallasr1># show ip pim interface[type number] [count] 67. 显示PIM邻居: dallasr1># show ip neighbor type number 68. 为了配置RP的地址,命令如下: dallasr1># ip pim rp-address ip-address [group-access-list-number][override] 69. 选择一个默认的RP: dallasr1># ip pim rp-address 通告RP和它所服务的组范围: dallasr1># ip pim send-rp-announce type number scope ttl group-list access-list-number 为管理范围组通告RP的地址: dallasr1># ip pim send-rp-announce ethernet0 scope 16 group-list1 dallasr1># access-list 1 permit 266.0.0.0 0.255.255.255 设定一个RP映像代理: dallasr1># ip pim send-rp-discovery scope ttl 核实组到RP的映像: dallasr1># show ip pim rp mapping dallasr1># show ip pim rp [group-name|group-address] [mapping] 70. 在路由器接口上用命令ip multicast ttl-threshold ttl-value设定TTL阀值: dallasr1>(config-if)# ip multicast ttl-threshold ttl-value 71. 用show ip pim neighbor显示PIM邻居表。 72. 显示组播通信路由表中的各条记录: dallasr1>show ip mroute [group-name|group-address][scoure][summary][count][active kbps] 73. 要记录一个路由器接受和发送的全部IP组播包: dallasr1> #debug ip mpacket [detail] [access-list][group] 74. 要在CISCO路由器上配置CGMP: dallasr1>(config-if)# ip cgmp 75.配置一个组播路由器,使之加入某一个特定的组播组: dallasr1>(config-if)# ip igmp join-group group-address 76. 关闭 CGMP: dallasr1>(config-if)# no ip cgmp 77. 启动交换机上的CGMP: dallasr1>(enable) set cgmp enable 78. 核实Catalyst交换机上CGMP的配置情况: catalystla1>(enable) show config set prompt catalystla1> set interface sc0 192.168.1.1 255.255.255.0 set cgmp enable 79. CGMP离开的设置: Dallas_SW(enable) set cgmp leave 80. 在Cisco设备上修改控制端口密码: R1(config)# line console 0 R1(config-line)# login R1(config-line)# password Lisbon R1(config)# enable password Lilbao R1(config)# login local R1(config)# username student password cisco 81. 在Cisco设备上设置控制台及vty端口的会话超时: R1(config)# line console 0 R1(config-line)# exec-timeout 5 10 R1(config)# line vty 0 4 R1(config-line)# exec-timeout 5 2 82. 在Cisco设备上设定特权级: R1(config)# privilege configure level 3 username R1(config)# privilege configure level 3 copy run start R1(config)# privilege configure level 3 ping R1(config)# privilege configure level 3 show run R1(config)# enable secret level 3 cisco 83. 使用命令privilege 可定义在该特权级下使用的命令: router(config)# privilege mode level level command 84. 设定用户特权级: router(config)# enable secret level 3 dallas router(config)# enable secret san-fran router(config)# username student password cisco 85. 标志设置与显示: R1(config)# banner motd ‘unauthorized access will be prosecuted!’ 86. 设置vty访问: R1(config)# access-list 1 permit 192.168.2.5 R1(config)# line vty 0 4 R1(config)# access-class 1 in 87. 配置HTTP访问: Router3(config)# access-list 1 permit 192.168.10.7 Router3(config)# ip http sever Router3(config)# ip http access-class 1 Router3(config)# ip http authentication local Router3(config)# username student password cisco 88. 要启用HTTP访问,请键入以下命令: switch(config)# ip http sever 89. 在基于set命令的交换机上用setCL1启动和核实端口安全: switch(enable) set port security mod_num/port_num…enable mac address switch(enable) show port mod_num/port_num 在基于CiscoIOS命令的交换机上启动和核实端口安全: switch(config-if)# port secure [mac-mac-count maximum-MAC-count] switch# show mac-address-table security [type module/port] 90. 用命令access-list在标准通信量过滤表中创建一条记录: Router(config)# access-list access-list-number {permit|deny} source-address [source-address] 91. 用命令access-list在扩展通信量过滤表中创建一条记录: Router(config)# access-list access-list-number {permit|deny{protocol|protocol-keyword}}{source source-wildcard|any}{destination destination-wildcard|any}[protocol-specific options][log] 92. 对于带内路由更新,配置路由更新的最基本的命令格式是: R1(config-router)#distribute-list access-list-number|name in [type number] 93. 对于带外路由更新,配置路由更新的最基本的命令格式是: R1(config-router)#distribute-list access-list-number|name out [interface-name] routing-process| autonomous-system-number 94. set snmp命令选项: set snmp community {read-only|ready-write|read-write-all}[community_string] 95. set snmp trap 命令格式如下: set snmp trap {enable|disable} [all|moudle|classis|bridge|repeater| auth|vtp|ippermit|vmps|config|entity|stpx] set snmp trap rvcr_addr rcvr_community 96. 启用SNMP chassis 陷阱: Console>(enable) set snmp trap enable chassis 97. 启用所有SNMP chassis 陷阱: Console>(enable) set snmp trap enable 98. 禁用SNMP chassis 陷阱: Console>(enable) set snmp trap disable chassis 99. 给SNMP陷阱接收表加一条记录: Console>(enable) set snmp trap 192.122.173.42 public 100. show snmp 输出结果。 101. 命令set snmp rmon enable 的输出结果。 102. 显示SPAN信息: Consile> show span 国内最有份量的破解下载网站一览 【18DD资源中心】:http://www.18dd.com (总能让你有意外收获) 7年:http://www.7year.com/ 热战软件园:http://soft.rezhan.com wqsky:http://www.wqsky.com (所有软件均有破解) 非常点距: http://www.fcdj.net 黑客伊甸园: http://frankrao.vicp.net/ K666软件园: http://down.vv66.com/index.htm 大家近期有什么新发现??? =============================================== 整理如下: 42.秋风软件: http://www.qiufeng.net/ 41.石狮软件园:http://www.skkk.net/ (好像广告较多) 40.当易软件站:http://www.downez.com/ 1.风儿网站:http://xiaofeng2.yeah.net 【18DD资源中心】:http://www.18dd.com 2.天煞网:http://www.tiansha.net/ 3.霏凡软件 http://www.crsky.net 4.赢政天下 http://www.winzheng.com 5.空中楼阁 http://www.kzlg.com/ 6.天天精品 http://www.ttdown.com/ 7.红叶软件 http://www.coolboysky.com/index.asp 8.泉州软件园 http://www.qz158.net/ 9.杰特下载 http://soft.jetdown.com/ 10.吧吧喔喔 http://www.88oo.com/ 11.9Down http://www.9down.com 12.中文之家 http://www.chinesejia.com 13.当当软件园 http://www.downle.com 14.侠盗阿凡提 http://www.soft168.com 15.雪夜流星网:http://snow9star.onchina.net 16.风云下载港 http://www.tcpu.com 17.软件先锋: http://www.soft168.com/ 18.驻马店信息港软件库:http://soft.zmdinfo.ha.cn/ 19.极速软件站: http://www.169s.com/ 20.恩龙工作室: http://zdpxp.8800.org/(停止更新,只能上bbs) 21.飞跃颠峰: http://soft.km169.net/soft/index2.htm 22.飘雪模拟网: http://emu.fj163.com/ 23.疾风下载站: http://www.jfdown.com/index.htm (速度不错) 24.软件万花筒: http://www.superdown.com 25.软件点播中文网:http://www.ynkm.com/download/default.asp 26.芳芳软件园: http://www.gupin.com 27.绍鹏的破解乐园:http://www.eryueniao.com/ 28.无忧热点网: http://www.51hot.net 29.5星软件园: http://www.5star-shareware.com 30.中国下载: http://www.download.com.cn (共享软件多) 31.西部电子: http://www.weste.net/ 32.免费好世界:http://www.to518.com 33.全方位: http://www.fixdown.com 34.17down: http://www.17down.com 35.汉化软件下载基地:http://smg.vip.myrice.com/ 36.软件天地线: http://web45.ispidc.com/002/soft/index.htm (已关闭) 37.阿程下载园: http://www.acdown.com/ 38.快吧下载:http://www.fast8.com/ 39.中华软件联盟: http://www.downbest.net 【18DD资源中心】:http://www.18dd.com http://www.163soft.com http://www.crsky.net http://www.winzheng.com http://www.51cy168.com/hongye/software/index.asp 红叶软件 http://www.qz158.net/ 泉州软件园 http://www.jetdown.com/down/index.htm http://www.88oo.com/ http://www.tcpu.com http://downle.8169.net 中文之家 http://www.chinesejia.com http://www.9down.com http://www.downle.com http://www.soft153.com http://www.soft168.com http://www.zmdinfo.ha.cn http://dyzdp.nease.net/ http://soft.km169.net/soft/index2.htm 飞跃颠峰 飘雪模拟网 http://emu.fj163.com/ http://zdpxp.8800.org/ 大批注册机下载! http://www.superdown.com/soft/index.html 软件万花筒 http://www.ynkm.com/download/default.asp 软件点播中文网 http://www.gupin.com/index.asp http://eryueniao.web1000.com/ http://www.99soft.com http://www.51hot.net/soft http://www.fixdown.com http://smg.vip.myrice.com 恩龙工作室: http://dyzdp.nease.net/ http://www.dlmovie.com http://www.yy-china.com/ http://cehgx.ni8.net/ 阿榕软件园 http://pusn.dipdns.net:8086/pusnbbs 哇赛,全是好东西。而且VIP完全开放 每秒500K的速度,呵呵。不去后悔。 http://www.downbest.net 快吧下载:http://www.fast8.com/ http://www.eryueniao.com/ http://frankrao.vicp.net/ http://www.skkk.net http://www.downez.com/ 1。个人经常上的一些好站 菲凡软件 http://www.crsky.com/ !!! 绝对是Num1的网站,街上的软件破解多少不是crsky的!好得没话说了!!! 秋风软件!!! http://www.qiufeng.net/ 速度很快,有自己风格且99%能下载,很多电影都是站长自己搞上来的,而且站长说了永不收费.不过现在 站长外出看病,更新少了! 全方位下载 http://www.fixdown.com/ 以前是个不错的站,不过现在慢慢转向综合站,破解也渐渐少了。 深圳1001下载 http://sz1001.net/ 一个有自身特色的站,缺点就是下大型软件时速度慢! 风闪下载 http://down.vipcn.com/ 学习软件和网站素材的好站,一些比较少见的软件可以在这儿找到!以前曾在这里下过走遍美国 增强版 9cd等好东西!不过自从不久前开了VIP 会员区后站长好像有点忽视普通会员的存在了。 另外一些站也不错的: 芳芳软件园 http://www.gupin.com 有自己的东西,不会只是抄袭别人的东西,缺点就是下载的软件经常要解压码! 八百当 http://www.800down.com/ 站规模需小,但很少盗链,几乎100%可以下载,有时还有一些新鲜的东西。但近来更新好像慢了点。 孤星云鹤: http://down.ls1929.com/down/index.htm 主要是看看一些国内很难看到的新闻! 2。下面一些比较有规模的站 金手指: http://jinshouzhi.org/ 华游软件: http://www.cnyou.com/ 阿榕软件: http://www.arongsoft.com/ 杰特: http://jetdown.com/ 几个人一手搞起来的网站。 【18DD资源中心】:http://www.18dd.com 3。当然有时候找大型软件还是要去一些不起眼的站 下载之家: http://www.down123.com/ 强风下载: http://gust.cn/ 速度不错的站(多线程时) 中国叛盟软件下载- http://www.cnvp.com 很长时间没更新了,刚刚还连不上. 吧喔软件站: http://www.88oo.com/ 14 février 软件(initiator)实现主机与存储子系统的连接windows平台主机端
1 下载并安装 iSCSI software 到HOST上 2 打开桌面上microsoft iSCSI initiator图标,选择initiator settings 复制 change to里的一串内容 3 进入server Raid manager, 创建一个新的ARRAY,NEXT->ADD 添加一个iSCSI initiator, 在initiator IQN 里,粘贴复制的内容; 4 打开桌面上microsoft iSCSI initiator图标, add-> add target portal, IP address or DNS name输入IP地址 (主机端口) 5 打开桌面上microsoft iSCSI initiator图标,available targets-->logon-->automatically restore this connection when system boots 划勾 6 在磁盘管理器里给配置完成的磁盘做分区、格式化。
linux平台主机端
安装软件
#uname -a 查一下当前系统的内核版本
#cd cd /usr/local/src
# wegt
#tar -zxvf linux-iscsi-3.4.3.2.tgz #cd linux-iscsi-3.4.3.2 #make clean # make #make install 修改配置文件开始进行修改的工作 # vi /etc/iscsi.conf Username= myaccount #用户名# Password= iscsimy1Spw #口令# DiscoveryAddress=192.168.11.201 #iSCSI 储存设备的 IP 地址# Username=myaccount Password=iscsimy1Spw 查看iqn号并将其记录,填入DS300 #vi /etc/initiatorName.iscsi InitiatorName=iqn.1987-05.com.cisco:01.21791d42cd23 这里可以自行定义符合命名规则的InitiatorName,冒号后为别名(可改为主机名) 启动iscsi #/etc/init.d/iscsi start Starting iSCSI: iscsi iscsid fsck/mount 使用iscsi-ls命令可以看到更为详细的磁盘信息: # iscsi-ls ***************************************************************** SFNet iSCSI Driver Version ... 3.4.3.2 (27-Jun-2005 ) **************************************************************** TARGET NAME : iqn.1994-12.com.promise.target.3b.31.4.55.1.0.0.20 TARGET ALIAS : Vtrak 15200 HOST NO : 0 BUS NO : 0 TARGET ID : 0 TARGET ADDRESS : 192.168.11.201:3260 SESSION STATUS : ESTABLISHED AT Thu Nov 10 20:13:43 2005 NO. OF PORTALS : 1 PORTAL ADDRESS 1 : 192.168.11.201:3260,2 SESSION ID : ISID 00023d000001 TSIH 04 **************************************************************** iSCSI节点名称有两种格式,即 iqn-type 格式和 eui-type 格式。 Linux常用的是iqn-type的格式为
存储子系统的配置 图形模式下的配置见相关资料,这里只说一下命令行下的配置(产品为IBM DS300)
telnet 192.168.70.123 登陆到DS300
DS300>administrator
Administrator level password:XXXXXXXX (输入密码PASSW0RD)0为零
DS300#interface
DS300<interface>#list 查看接口信息
DS300<interface>#end 回车 退到接口配置这一层
DS300#array 回车
DS300<.array>#create TEST raid1 64 65536 65792 回车 创建array TEST DS300<array>#end 回车 DS300#logical 回车 DS300<logical>#create TEST TEMP size 100% restricted 在阵列TEST中创建逻辑盘TEMP大小为阵列的全部容量restricted为有限制的对于用户来说。unrestricted为无限制的。 DS300#initiator DS300<iscsi-node>#create node1 iqn.1991-05.com.microsoft: ibmuse 映射给主机 12 janvier 那么到底什么是Linux那么到底什么是Linux呢? 在很久很久以前,70年代吧,那时候Windows还没有出现,UNIX是应用最广泛的操作系统。但是UNIX同样有着高昂的价格。于是有一个牛人(我记不得他的名字的具体拼写,只好用牛人代替,毕竟,把别人的名字写错比用牛人这个名字更糟糕吧),这个牛人想要建立一个开放的系统,这个系统很庞大,庞大到非常庞大的地步。包含了操作系统(可以不止一个,事实上现在也不止一个,只是我们只讨论Linux罢了),软件,各种文档,各种媒介的资料以及很多其他的东西。所有这些东西大都使用一个协议,就是我们常常说的GPL或则LGPL(这个协议简单的说就是:公开所有源代码,任何人可以免费获得,也可以添加删除和修改,甚至可以拿去卖钱,只要你保证你修改过以后得到的软件和你销售的软件也使用GPL协议就可以)。牛人给这个庞大的开放系统一个响亮的名字(响亮吗):GNU-GUN is Not Unix。 Linux就是GNU系统里面发展的最好的一个操作系统。但是Linux只是一个核心,一个高尚的操作系统核心,一个纯粹的操作系统核心。这个纯粹的高尚的操作系统核心最早是由另一个牛人Linus开发出来的,当时这个芬兰人不比咱大多少,说不定比俺还小呢,但是牛啊,真牛啊。Linux核心加上很多优秀的GNU系统中的应用软件,就是我们现在所提起的Linux。 那么什么是Redhat Linux,什么是Mandrake Linux呢? 在很近很近以前,90年代吧,Linux已经渐渐有了舍我齐谁的锋芒。由于Linux属于GNU系统,这个系统采用的GPL协议,保证了代码的公开,于是有N那么多公司蜂拥而至,在Linux内核源代码的基础上进行一些必要的修改加工,再开发一些配套的软件,最后选择一些优秀的软件,把它们合在一起发布,形成自己公司的发布版Linux。美国的Redhat公司发行了Redhat Linux,法国的Mandrake公司发行Mandrake Linux,德国的SUSE公司发行SUSE Linux,咱们中国的N多公司也疯似的发布自己所谓的中文Linux,但是到现在为止,国产Linux还难蹬大雅之堂。Linux公司多如牛毛, Linux发行版也多如牛虱,在这里我们不能不提到Debian GNU/Linux。 Debian GNU/Linux是一套非常特殊的Linux发行版,它不同于其他Linux发行版都是由商业公司开发并发行,Debian GNU/Linux是由另一个牛人发起的,这个牛人的名字以Ian开头,那位牛太太的名字开头三个字母是Deb,于是在爱情的力量下,他发起了 Debian GNU/Linux组织,致力于开发一套非商业性的Linux发行版。爱情真伟大,他做到了。现在全世界有800多个工程师在致力于为Debian GNU/Linux奉献自己的业余时间。而且这个数字在不断的增长。Debian GNU/Linux是Linux发行版中比较优秀的一款,我以后会详悉的介绍。以后再提起Debian GNU/Linux,我用Debian代替。 关于内核版本和发行版版本不得不说的故事 既然Linux只是一个内核,Linux发行版是Linux内核以及各种应用软件的集合,那么Linux出现了两种版本号。一种是内核版本,一种是发行版本号。Linux内核版本号的格式是x.y.zz-www,不同的数字代表不同的开发版本,有稳定的,也有测试中的。Linux发行版本号由各个发行公司或者组织制定,Redhat Linux有6.0, 6.2, 7.0, 7.2, 7.3等等,通常,内核版本序号是偶数表示是稳定的版本,奇数序号是不稳定的测试版本。其实Windows也是一样,只不过我们不常听说,比如 Windows2000的内部版本号是2195,发行版本就是2000。不知道会不会有哪一个Linux发行版本使用2003的版本号,呵呵。 一些约定和一些网址 往后,我们用Linux指Linux发行版,用Kernel指Linux内核。用Debian指Debian GNU/Linux,用Redhat指Redhat Linux。 下面是一些常用的Linux官方网站: http://www.kernel.org http://linux.com http://www.linux.org http://www.linuxhelp.org 下面的是国内的优秀的Linux论坛: http://www.linuxforum.net http://www.linuxfans.org http://www.linuxaid.com.cn 下面这个搜索引擎Google是我们大力推荐的最好的搜索引擎,我自从用过以后就没有使用过其他的。 http://www.google.com 下面是几个很好的自由软件基地,不过有被中国电信封IP的危险,郁闷啊。 http://freshmeat.net http://sourceforge.net http://www.cosoft.org.cn , 19 décembre 网络最经典命令行-网络安全工作者的必杀技来自网上共享版
1.最基本,最常用的,测试物理网络的 ping 192.168.0.8 -t ,参数-t是等待用户去中断测试 2.查看DNS、IP、Mac等 A.Win98:winipcfg B.Win2000以上:Ipconfig/all C.NSLOOKUP:如查看河北的DNS C:\>nslookup Default Server: ns.hesjptt.net.cn Address: 202.99.160.68 >server 202.99.41.2 则将DNS改为了41.2 > pop.pcpop.com Server: ns.hesjptt.net.cn Address: 202.99.160.68 Non-authoritative answer: Name: pop.pcpop.com Address: 202.99.160.212 3.网络信使 Net send 计算机名/IP * (广播) 传送内容,注意不能跨网段 net stop messenger 停止信使服务,也可以在面板-服务修改 net start messenger 开始信使服务 4.探测对方对方计算机名,所在的组、域及当前用户名 (追捕的工作原理) ping -a IP -t ,只显示NetBios名 nbtstat -a 192.168.10.146 比较全的 5.netstat -a 显示出你的计算机当前所开放的所有端口 netstat -s -e 比较详细的显示你的网络资料,包括TCP、UDP、ICMP 和 IP的统计等 6.探测arp绑定(动态和静态)列表,显示所有连接了我的计算机,显示对方IP和MAC地址 arp -a 7.在代理服务器端 捆绑IP和MAC地址,解决局域网内盗用IP!: ARP -s 192.168.10.59 00 -50-ff-6c-08-75 解除网卡的IP与MAC地址的绑定: arp -d 网卡IP 8.在网络邻居上隐藏你的计算机 net config server /hidden:yes net config server /hidden:no 则为开启 9.几个net命令 A.显示当前工作组服务器列表 net view,当不带选项使用本命令时,它就会显示当前域或网络上的计算机上的列表。 比如:查看这个IP上的共享资源,就可以 C:\>net view 192.168.10.8 在 192.168.10.8 的共享资源 资源共享名 类型 用途 注释 -------------------------------------- 网站服务 Disk 命令成功完成。 B.查看计算机上的用户帐号列表 net user C.查看网络链接 net use 例如:net use z: \192.168.10.8\movie 将这个IP的movie共享目录映射为本地的Z盘 D.记录链接 net session 例如: C:\>net session 计算机 用户名 客户类型 打开空闲时间 ------------------------------------------------------------------------------- \192.168.10.110 ROME Windows 2000 2195 0 00:03:12 \192.168.10.51 ROME Windows 2000 2195 0 00:00:39 命令成功完成。 10.路由跟踪命令 A.tracert pop.pcpop.com B.pathping pop.pcpop.com 除了显示路由外,还提供325S的分析,计算丢失包的% 11.关于共享安全的几个命令 A.查看你机器的共享资源 net share B.手工删除共享(可以编个bat文件,开机自运行,把共享都删了!) net share c$ /d net share d$ /d net share ipc$ /d net share admin$ /d 注意$后有空格。 C.增加一个共享: c:\net share mymovie=e:\downloads\movie /users:1 mymovie 共享成功。 同时限制链接用户数为1人。 12.在DOS行下设置静态IP A.设置静态IP CMD netsh netsh>int interface>ip interface ip>set add "本地链接" static IP地址 mask gateway B.查看IP设置 interface ip>show address Arp 显示和修改“地址解析协议 (ARP)”缓存中的项目。ARP 缓存中包含一个或多个表,它们用于存储 IP 地址及其经过解析的以太网或令牌环物理地址。计算机上安装的每一个以太网或令牌环网络适配器都有自己单独的表。如果在没有参数的情况下使用,则 arp 命令将显示帮助信息。 语法 arp [-a [InetAddr] [-N IfaceAddr]] [-g [InetAddr] [-N IfaceAddr]] [-d InetAddr [IfaceAddr]] [-s InetAddr EtherAddr [IfaceAddr]] 参数 -a [InetAddr] [-N IfaceAddr] 显示所有接口的当前 ARP 缓存表。要显示指定 IP 地址的 ARP 缓存项,请使用带有 InetAddr 参数的 arp -a,此处的 InetAddr 代表指定的 IP 地址。要显示指定接口的 ARP 缓存表,请使用 -N IfaceAddr 参数,此处的 IfaceAddr 代表分配给指定接口的 IP 地址。-N 参数区分大小写。 -g [InetAddr] [-N IfaceAddr] 与 -a 相同。 -d InetAddr [IfaceAddr] 删除指定的 IP 地址项,此处的 InetAddr 代表 IP 地址。对于指定的接口,要删除表中的某项,请使用 IfaceAddr 参数,此处的 IfaceAddr 代表分配给该接口的 IP 地址。要删除所有项,请使用星号 (*) 通配符代替 InetAddr。 -s InetAddr EtherAddr [IfaceAddr] 向 ARP 缓存添加可将 IP 地址 InetAddr 解析成物理地址 EtherAddr 的静态项。要向指定接口的表添加静态 ARP 缓存项,请使用 IfaceAddr 参数,此处的 IfaceAddr 代表分配给该接口的 IP 地址。 在命令提示符显示帮助。 注释 InetAddr 和 IfaceAddr 的 IP 地址用带圆点的十进制记数法表示。 物理地址 EtherAddr 由六个字节组成,这些字节用十六进制记数法表示并且用连字符隔开(比如,00-AA-00-4F-2 A-9C)。 通过 -s 参数添加的项属于静态项,它们不会 ARP 缓存中超时。如果终止 TCP/IP 协议后再启动,这些项会被删除。要创建永久的静态 ARP 缓存项,请在批处理文件中使用适当的 arp 命令并通过“计划任务程序”在启动时运行该批处理文件。 只有当网际协议 (TCP/IP) 协议在 网络连接中安装为网络适配器属性的组件时,该命令才可用。 范例 要显示所有接口的 ARP 缓存表,可键入: arp -a 对于指派的 IP 地址为 10.0.0.99 的接口,要显示其 ARP 缓存表,可键入: arp -a -N 10.0.0.99 要添加将 IP 地址 10.0.0.80 解析成物理地址 00-AA-00-4F-2 A-9C 的静态 ARP 缓存项,可键入: arp -s 10.0.0.80 00-AA-00-4F-2 A-9C At 计划在指定时间和日期在计算机上运行命令和程序。at 命令只能在“计划”服务运行时使用。如果在没有参数的情况下使用,则 at 列出已计划的命令。 语法 at [\ComputerName] [{[ID] [/delete] /delete [/yes]}] at [[\ComputerName] hours:minutes [/interactive] [{/every:date[,...] /next:date[,...]}] command] 参数 \computername 指定远程计算机。如果省略该参数,则 at 计划本地计算机上的命令和程序。 ID 指定指派给已计划命令的识别码。 /delete 取消已计划的命令。如果省略了 ID,则计算机中所有已计划的命令将被取消。 /yes 删除已计划的事件时,对来自系统的所有询问都回答“是”。 hours:minutes 指定命令运行的时间。该时间用 24 小时制(即从 00:00 [午夜] 到 23:59)的 小时: 分钟格式表示。 /interactive 对于在运行 command 时登录的用户,允许 command 与该用户的桌面进行交互。 /every: 在每个星期或月的指定日期(例如,每个星期四,或每月的第三天)运行 command 命令。 date 指定运行命令的日期。可以指定一周的某日或多日(即,键入 M、T、W、Th、F、S、Su)或一个月中的某日或多日(即,键入从 1 到31 之间的数字)。用逗号分隔多个日期项。如果省略了 date,则 at 使用该月的当前日。 /next: 在下一个指定日期(比如,下一个星期四)到来时运行 command。 command 指定要运行的 Windows 命令、程序(.exe 或 .com 文件)或批处理程序(.bat 或 .cmd 文件)。当命令需要路径作为参数时,请使用绝对路径,也就是从驱动器号开始的整个路径。如果命令在远程计算机上,请指定服务器和共享名的通用命名协定 (UNC) 符号,而不是远程驱动器号。 /? 在命令提示符显示帮助。 注释 Schtasks 是功能更为强大的超集命令行计划工具,它含有 at 命令行工具中的所有功能。对于所有的命令行计划任务,都可以使用 schtasks 来替代 at。有关 schtasks 的详细信息,请参阅“相关主题”。 使用 at 使用 at 命令时,要求您必须是本地 Administrators 组的成员。 |
|||||
|
|