huangruizb huangruizb
关注数: 295 粉丝数: 544 发帖数: 40,503 关注贴吧数: 51
思科命令提示 计算机命令: PCA login: root ;使用root用户 password: linux ;口令是linux # shutdown -h now ;关机 # init 0 ;关机 # logout # login # ifconfig ;显示IP地址 # ifconfig eth0 <ip address> netmask <netmask> ;设置IP地址 # ifconfig eht0 <ip address> netmask <netmask> down ; 删除IP地址 # route add 0.0.0.0 gw <ip> # route del 0.0.0.0 gw <ip> # route add default gw <ip> ;设置网关 # route del default gw <ip> ;删除网关 # route ;显示网关 # ping <ip> # telnet <ip> ;建立telnet之前先ping一下 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 交换机基本状态: switch: ;ROM状态, 路由器是 rommon> hostname> ;用户模式 hostname# ;特权模式 hostname(config)# ;全局配置模式 hostname(config-if)# ; 接口状态交换机口令设置: switch>enable ;进入特权模式 switch#config terminal ;进入全局配置模式 switch(config)#hostname <hostname> ;设置交换机的主机名 switch(config)#enable secret xxx ;设置特权加密口令为 xxx switch(config)#enable password xxx ;设置特权非密口令为 xxx switch(config)#line console 0 ;进控制台口(Rs232)初始化 switch(config-line)#line vty 0 4 ;进入虚拟终端virtual tty switch(config-line)#login ;允许登录 switch(config-line)#password xx ;设置登录口令xx switch#exit ;返回命令交换机VLAN设置: switch#vlan database ;进入VLAN设置 switch(vlan)#vlan 2 ;建VLAN 2 switch(vlan)#no vlan 2 ;删vlan 2 switch(config)#int f0/1 ;进入端口1 switch(config-if)#switchport access vlan 2 ;当前端口1加入VLAN 2 switch(config-if)#switchport mode trunk ;设置为干线 switch(config-if)#switchport trunk allowed vlan 1,2 ;设置允许的vlan switch(config-if)#switchport trunk encap dot1q ;设置vlan 中继 switch(config)#vtp domain <name> ; 设置发vtp域名 switch(config)#vtp password <word> switch(config)#vtp mode server switch(config)#vtp mode client 交换机设置IP地址: switch(config)#interface vlan 1 ;进入vlan 1 switch(config-if)#ip address <IP> <mask> ;添加远程登录IP switch(config)#ip default-gateway <IP> ;添加默认网关 switch#dir flash: ;查看内存交换机显示命令: switch#write ;写入保存 switch#show vtp switch#show run ;查看当前配置信息 switch#show vlan ;看VLAN switch#show interface ;显示所有端口信息 switch#show int f0/0 ;显示端口0的信息 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 路由器显示命令: router#show run ;显示接口 router#show interface ;显示接口 router#show ip route ;显示路由 router#show cdp nei ;看邻居 router#reload     ;重新起动设置口令: router>enable ;进入特权模式 router#config terminal ;进入全局配置模式 router(config)#hostname <hostname> ;设置交换机的主机名 router(config)#enable secret xxx ;设置特权加密口令为 xxx router(config)#enable password xxx ;设置特权非密口令为 xxx router(config)#line console 0 ;进控制台口(Rs232)初始化 router(config-line)#line vty 0 4 ;进入虚拟终端virtual tty router(config-line)#login ;允许登录 router(config-line)#password xx ;设置登录口令xx router(config)# (Ctrl+z) ; 返回特权模式 router#exit ;返回命令配置IP地址: router(config)#int s0/0 ;进行串Serail接口 router(config-if)#no shutdown ;起动接口 router(config-if)#clock rate 64000 ;设置时钟 router(config-if)#ip address 10.1.1.1 255.255.0.0 ;设置IP地址和子网掩码 router(config-if)#ip add 10.1.1.2 255.255.0.0 second; router(config-if)#int f0/0.1 ; 进入子接口 router(config-subif.1)#ip address <ip><netmask> ; router(config-subif.1)#encapsulation dot1q <n> ; router(config)#config-register 0x2142 ;跳过配置文件 router(config)#config-register 0x2102 ;正常使用配置文件 router#reload ;重新引导复制操作: router#copy running-config startup-config ;存配置 router#copy running-config tftp ;上载 router#copy startup-config tftp router#copy tftp flash: ;特权模式下升级IOS router#copy tftp startup-config          ;下载配置文件到nvram ROM状态: Ctrl+Break ;进入ROM监控状态 rommon>confreg 0x2142 ;跳过配置,26 36 45xx rommon>confreg 0x2102 ;使用配置,恢复工作状态 rommon>reset      ;重新引导,等效于重开机 rommon>copy xmodem:<sname> flash:<dname> ;从console升级IOS rommon>IP_ADDRESS=10.65.1.2 ;设置路由器IP rommon>IP_SUBNET_MASK=255.255.0.0 ;设置路由器掩码 rommon>TFTP_SERVER=10.65.1.1 ;指定TFTP服务器IP rommon>TFTP_FILE=c2600.bin ;所要下载的文件 rommon>tftpdnld ;ROM监控状态下升级IOS rommon>dir flash: ;查看闪存中的内容 rommon>boot ;引导IOS 静态路由: ip route <ip-address> <subnet-mask> <gateway> 例: router(config)#ip route 10.1.0.0 255.255.0.0 10.2.1.1 router(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2 动态路由: router(config)#ip routing ;启动路由 router(config)#router rip ;启动RIP路由协议。 router(config-router)#network <netid> ;配置范围,有的支持all。 router(config-router)#negihbor <ip-address> ;点对点 帧中继用。帧中继命令: router(config)# frame-relay switching ;使能帧中继交换 router(config-s0)# encapsulation frame-relay ;使能帧中继 router(config-s0)# frame-relay intf-type DCE ;DCE端(需要配虚电路) router(config-s0)# frame-relay local-dlci 20 ;配置虚电路号基本访问控制列表: router(config)#access-list <number> permit|deny <source ip> <wild|any> router(config)#interface <interface> ;default: deny any router(config-if)#ip access-group <number> in|out ;default: out 例: RB(config)#access-list 4 permit 10.8.1.1 RB(config)#access-list 4 deny 10.8.1.0 0.0.0.255 RB(config)#access-list 4 permit 10.8.0.0 0.0.255.255 RB(config)#access-list 4 deny 10.0.0.0 0.255.255.255 RB(config)#access-list 4 permit any RB(config)#int f0/0 RB(config-if)#ip access-group 4 in 扩展访问控制列表: access-list <number> permit|deny icmp <SourceIP wild> <destinationIP wild>[type] access-list <number> permit|deny tcp <SourceIP wild> <destinationIP wild>[port] 例1: router(config)#access-list 101 deny icmp any 10.64.0.2 0.0.0.0 echo router(config)#access-list 101 permit ip any any router(config)#int s0/0 router(config-if)#ip access-group 101 in 例2: router(config)#access-list 102 deny tcp any 10.65.0.2 0.0.0.0 eq 80 router(config)#access-list 102 permit ip any any router(config)#interface s0/1 router(config-if)#ip access-group 102 out router(config)#no access-list 102 router(config-if)#no ip access-group 101 in
如果慕容博能这么教育慕容复,慕容复未必不能和萧峰齐名 法王笑道:“人各有志,那也勉强不来。杨兄弟,你的武功花样甚多,不是我倚老卖老说一句,【博采众家固然甚妙,但也不免驳而不纯】。【你最擅长的到底是哪一门功夫】?要用甚么武功去对付郭靖夫妇?” 这几句话可将杨过问得张口结舌,难以回答。他一生遭际不凡,性子又是贪多务得,全真派的、欧阳锋的、古墓派的、九阴真经、洪七公的、黄药师的,诸般武功着实学了不少。这些功夫每一门都是奥妙无穷,以毕生精力才智钻研探究,亦难以望其涯岸,他东摘一鳞、西取半爪,【却没一门功夫练到真正第一流的境界】。遇到次等对手之时,施展出来固然是五花八门,叫人眼花撩乱,【但遭逢到真正高手,却总是相形见绌】,便和金轮法王的弟子达尔巴、霍都相较,也是颇有不及。他低头凝思,觉得金轮法王这几句话【实是当头棒喝,说中了他武学的根本大弊】。 鸠摩智喝道:“瞧在你父亲面上,十招之内,不使杀手,算是我一点故人的香火之情。”呼的一拳击出,直取慕容复右肩。慕容复飘身闪开,鸠摩智第二招已紧接而至,中间竟无 丝毫空隙慕容复虽擅“斗转星移”的借力打力之法,但对方招数实在太过精妙,每一招都是只使半招,下半招倏生变化,慕容复要待借力,却是无从借起 ------------------------------慕容复如果能有金轮法王的指点,将练其他武学的时间精力用在将斗转星移练到真正第一流的境界上,相信也不会是现在的局面。所谓以彼之道还施彼身,根基却是在这儿。
首页 1 2 下一页