A-A+

CISCO路由器启动自动配置的实验和方法

2015年11月19日 站长资讯 暂无评论

【实验拓扑】

【实验要求】

1、首先按照上图来连接路由器并配置好网络,在设置静态路由使得R1与R5之间能够互通。

2、将R5的当前配置文件拷贝到R1的flash中。

3、在R1上开启tftp-server,文件为flash中R5的配置。

4、在R1上开启DNS,并将R5主机名对应R5的IP地址。

5、不保存R5的配置,重启R5,使得配置能够自动从R1中获得。

【实验配置】

按照“实验基本配置”配置好网络,然后按照下面步骤操作

  1. R5#conf t  
  2. R5(config)#tftp-server system:running-config alias R5.cfg  
  3.    
  4. R1#copy tftp flash:  
  5. Address or name of remote host []? 155.1.0.5  
  6. Source filename []? R5.cfg  
  7. Destination filename [R5.cfg]?  
  8. Accessing tftp://155.1.0.5/R5.cfg...  
  9. Erase flash: before copying? [confirm]n  
  10. Loading R5.cfg from 155.1.0.5 (via FastEthernet0/0): !  
  11. [OK - 1263 bytes]  
  12. Verifying checksum... OK (0x9A03)  
  13. 1263 bytes copied in 4.948 secs (255 bytes/sec)  
  14.   
  15.    
  16. R4:  
  17. interface Serial 0/0  
  18. ip helper-address 155.1.146.1  
  19.   
  20. R1:  
  21. tftp-server flash:R5.cfg alias r5-confg  
  22. !  
  23. ip dns server  
  24. ip host R5 155.1.0.5  
  25.   
  26.    
  27. R5#wr era  
  28. Erasing the nvram filesystem will remove all configuration files! Continue?  
  29. [confirm]  
  30. [OK]  
  31. Erase of nvram: complete  
  32. R5#reload  
  33. System configuration has been modified. Save? [yes/no]: no  
  34. Proceed with reload? [confirm]  
  35. ……  
  36. Would you like to enter the initial configuration dialog? [yes/no]:  
  37. Press RETURN to get started!  
  38. *Mar 1 00:00:10.695: %LINEPROTO-5-UPDOWN: Line protocol on Interface VoIPNull0,  
  39. changed state to upsslinit fn  
  40. *Mar 1 00:00:24.691: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up  
  41. *Mar 1 00:00:27.691: %LINK-3-UPDOWN: Interface Serial0/1, changed state to  
  42. down  
  43. *Mar 1 00:00:27.691: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to  
  44. up  
  45. *Mar 1 00:00:30.691: %LINK-3-UPDOWN: Interface Ethernet0/1, changed state to  
  46. up  
  47. *Mar 1 00:00:33.691: %LINEPROTO-5-UPDOWN: Line protocol on Interface , changed  
  48. state to up  
  49. *Mar 1 00:00:36.691: %LINEPROTO-5-UPDOWN: Line protocol on Interface  
  50. Serial0/0, changed state to up  
  51. *Mar 1 00:00:36.691: %LINEPROTO-5-UPDOWN: Line protocol on Interface  
  52. Serial0/1, changed state to down  
  53. *Mar 1 00:00:36.691: %LINEPROTO-5-UPDOWN: Line protocol on Interface  
  54. Ethernet0/0, changed state to up  
  55. *Mar 1 00:00:36.691: %LINEPROTO-5-UPDOWN: Line protocol on Interface  
  56. Ethernet0/1, changed state to up  
  57. *Mar 1 00:00:57.691: %LINEPROTO-5-UPDOWN: Line protocol on Interface  
  58. Serial0/0,  http://www.luyouqiwang.com/14518/   changed state to down  
  59. *Mar 1 00:01:15.643: %LINEPROTO-5-UPDOWN: Line protocol on Interface  
  60. Accessed by Shamsheer Khan from 87.101.244.8 at 05:34:23 Dec 31,2007  
  61. CCIE Routing & Switching Lab Workbook Volume I Version 4.1  
  62. Copyright ? 2007 Internetwork Expert www.InternetworkExpert.com  
  63. - 22 -  
  64. Serial0/0, changed state to up  
  65. *Mar 1 00:02:16.875: %LINK-5-CHANGED: Interface Ethernet0/0, changed state to  
  66. administratively down  
  67. *Mar 1 00:02:16.879: %LINK-5-CHANGED: Interface Ethernet0/1, changed state to  
  68. administratively down  
  69. *Mar 1 00:02:16.879: %LINK-5-CHANGED: Interface Serial0/1, changed state to  
  70. administratively down  
  71. *Mar 1 00:02:17.875: %LINEPROTO-5-UPDOWN: Line protocol on Interface  
  72. Ethernet0/0, changed state to down  
  73. *Mar 1 00:02:17.879: %LINEPROTO-5-UPDOWN: Line protocol on Interface  
  74. Ethernet0/1, changed state to down  
  75. *Mar 1 00:02:19.691: %IP-5-WEBINST_KILL: Terminating DNS process  
  76. *Nov 17 13:45:24.679: %SYS-5-RESTART: System restarted --  
  77. Cisco IOS Software, 3600 Software (C3640-JK9O3S-M), Version 12.3(14)T7, RELEASE  
  78. SOFTWARE (fc2)  
  79. Technical Support: http://www.cisco.com/techsupport  
  80. Copyright (c) 1986-2006 by Cisco Systems, Inc.  
  81. Compiled Wed 22-Mar-06 21:46 by pwade  
  82. *Nov 17 13:45:24.691: %SNMP-5-COLDSTART: SNMP agent on host Router is  
  83. undergoing a cold start  
  84. *Nov 17 13:45:33.975: %SYS-5-CONFIG_I: Configured from tftp://155.1.146.1/r5-  
  85. confg by console  
  86. R5#  

注:上面高亮部分显示了自动从R1上获取配置

【实验基本配置】

  1. R1:  
  2. inter fa 0/0  
  3. ip address 155.1.146.1 255.255.255.0  
  4. no shut  
  5. ip route 155.1.0.0 255.255.255.0 155.1.146.4  
  6. R4:  
  7. inter ethernet 0/0  
  8. ip address 155.1.146.4 255.255.255.0  
  9. no shut  
  10. !  
  11. interface Serial 0/0  
  12. encaps frame-relay  
  13. no frame-relay inverse  
  14. ip address 155.1.0.4 255.255.255.0  
  15. frame map ip 155.1.0.5 405 broad  
  16. no shutdown  
  17. R5:  
  18. interface Serial 0/0  
  19. encaps frame-relay  
  20. no frame-relay inverse  
  21. ip address 155.1.0.5 255.255.255.0  
  22. frame map ip 155.1.0.4 504 broad  
  23. no shut  
  24. ip route 155.1.146.0 255.255.255.0 155.1.0.4  
  25. R6:  
  26. inter gig 0/0  
  27. ip address 155.1.146.6 255.255.255.0  
  28. no shut  
标签:

给我留言