首页 养生问答 疾病百科 养生资讯 女性养生 男性养生

怎么使用脚本配置cisco路由器

发布网友 发布时间:2022-04-21 18:56

我来回答

1个回答

热心网友 时间:2023-09-06 10:50

首先,要进行running-configure配置的备份操作,当然设备早已经配置好了,tftp服务器也准备好了。那么,思科路由器配置如下:一、BT无线网络破解:1. username ccie privilege 15 password 0 ccie2. !3. interface FastEthernet0/04. no ip address5. shutdown6. plex auto speed auto7. !8. interface FastEthernet0/19. ip address 11.133.183.251 255.255.255.010. plex auto speed auto11. !12. ip classless ip route 0.0.0.0 0.0.0.0 11.133.183.25413. ip http server ip pim bidir-enable14. !15. line vty 0 4 login local二、按照下面的步骤进行思科路由器配置:(1)编写脚本新建一个文件crt.vbs,尾缀为。vbs,内容如下:1. #$language = "VBScript"2. Ubuntu 论坛 #$interface = "1.0" Sub main ' turn on synchronous mode so we don't miss any data3. crt.Screen.Synchronous = True On Error Resume Next4. crt.session.Connect("/telnet 10.1.1.1") If Err.Number0 Then5. crt.session.Connect("/telnet 10.1.1.1") End If6. crt.Screen.WaitForString "Username:" crt.Screen.Send "ccie" & VbCr7. crt.Screen.WaitForString "Password:"8. crt.Screen.Send "ccie " & VbCr9. crt.Screen.WaitForString "Router#"10. crt.Screen.Send "config t" & VbCr11. crt.Screen.WaitForString "Router(config)#"12. crt.Screen.Send "int f0/1" & VbCr13. crt.Screen.WaitForString "Router(config-if)#"14. crt.Screen.Send "no sh" & VbCr15. crt.Screen.WaitForString "Router(config-if)#"16. crt.Screen.Send "end" & VbCr17. crt.Screen.WaitForString "Router#"18. crt.Screen.Send "copy run tftp://10.1.1.10" & VbCr19. crt.Screen.WaitForString "Address or name of remote host [11.133.183.249]" crt.Screen.Send ""& VbCr 思科路由器20. crt.Screen.WaitForString "Destination filename [router-confg]"21. crt.Screen.Send ""& VbCr22. Do while (crt.Screen.WaitForString("--- more ---",1)False)23. crt.Screen.Send " " Loop '24. crt.Screen.Send "exit" & VbCr crt.session.disconnect25. crt.Screen.Synchronous = False End Sub(2)懂vb的朋友应该很容易看懂的,上面内容的相关解释如下:crt.Screen.WaitForString "Username:"—从设备上返回的信息,也就是提示信息。crt.session.Connect("/telnet 11.133.183.251")—需要telnet的设备。crt.Screen.Send "ccie" & VbCr—向设备上发送的字符,即你在正常操作时输入的命令或字符& VbCr—输入字符后并回车。注:" "中部分为需要进行相应改动的地方,您只需要根据您的具体情况进行改动即可。(3)应用脚本打开CRT软件,点击Script菜单,点击RUN;在弹出菜单中找到刚才编写的脚本存放的目录,并输入脚本的名字crt.vbs.这时可以看到脚本在执行,如下:1. User Access Verification Username: ccie2. Password: Netscreen 防火墙3. Router#config t Enter configuration commands, one per line. End with CNTL/Z.4. Router(config)#int f0/15. Router(config-if)#no sh ubuntu 输入法6. Router(config-if)#end7. Router#copy run tftp://11.133.183.249 Address or name of remote host [11.133.183.249]?8. Destination filename [router-confg]? !! 694 bytes copied in 9.60 secs (77 bytes/sec)9. Router#linux 论坛 思科论坛 Cisco

热心网友 时间:2023-09-06 10:50

首先,要进行running-configure配置的备份操作,当然设备早已经配置好了,tftp服务器也准备好了。那么,思科路由器配置如下:一、BT无线网络破解:1. username ccie privilege 15 password 0 ccie2. !3. interface FastEthernet0/04. no ip address5. shutdown6. plex auto speed auto7. !8. interface FastEthernet0/19. ip address 11.133.183.251 255.255.255.010. plex auto speed auto11. !12. ip classless ip route 0.0.0.0 0.0.0.0 11.133.183.25413. ip http server ip pim bidir-enable14. !15. line vty 0 4 login local二、按照下面的步骤进行思科路由器配置:(1)编写脚本新建一个文件crt.vbs,尾缀为。vbs,内容如下:1. #$language = "VBScript"2. Ubuntu 论坛 #$interface = "1.0" Sub main ' turn on synchronous mode so we don't miss any data3. crt.Screen.Synchronous = True On Error Resume Next4. crt.session.Connect("/telnet 10.1.1.1") If Err.Number0 Then5. crt.session.Connect("/telnet 10.1.1.1") End If6. crt.Screen.WaitForString "Username:" crt.Screen.Send "ccie" & VbCr7. crt.Screen.WaitForString "Password:"8. crt.Screen.Send "ccie " & VbCr9. crt.Screen.WaitForString "Router#"10. crt.Screen.Send "config t" & VbCr11. crt.Screen.WaitForString "Router(config)#"12. crt.Screen.Send "int f0/1" & VbCr13. crt.Screen.WaitForString "Router(config-if)#"14. crt.Screen.Send "no sh" & VbCr15. crt.Screen.WaitForString "Router(config-if)#"16. crt.Screen.Send "end" & VbCr17. crt.Screen.WaitForString "Router#"18. crt.Screen.Send "copy run tftp://10.1.1.10" & VbCr19. crt.Screen.WaitForString "Address or name of remote host [11.133.183.249]" crt.Screen.Send ""& VbCr 思科路由器20. crt.Screen.WaitForString "Destination filename [router-confg]"21. crt.Screen.Send ""& VbCr22. Do while (crt.Screen.WaitForString("--- more ---",1)False)23. crt.Screen.Send " " Loop '24. crt.Screen.Send "exit" & VbCr crt.session.disconnect25. crt.Screen.Synchronous = False End Sub(2)懂vb的朋友应该很容易看懂的,上面内容的相关解释如下:crt.Screen.WaitForString "Username:"—从设备上返回的信息,也就是提示信息。crt.session.Connect("/telnet 11.133.183.251")—需要telnet的设备。crt.Screen.Send "ccie" & VbCr—向设备上发送的字符,即你在正常操作时输入的命令或字符& VbCr—输入字符后并回车。注:" "中部分为需要进行相应改动的地方,您只需要根据您的具体情况进行改动即可。(3)应用脚本打开CRT软件,点击Script菜单,点击RUN;在弹出菜单中找到刚才编写的脚本存放的目录,并输入脚本的名字crt.vbs.这时可以看到脚本在执行,如下:1. User Access Verification Username: ccie2. Password: Netscreen 防火墙3. Router#config t Enter configuration commands, one per line. End with CNTL/Z.4. Router(config)#int f0/15. Router(config-if)#no sh ubuntu 输入法6. Router(config-if)#end7. Router#copy run tftp://11.133.183.249 Address or name of remote host [11.133.183.249]?8. Destination filename [router-confg]? !! 694 bytes copied in 9.60 secs (77 bytes/sec)9. Router#linux 论坛 思科论坛 Cisco

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com