ITPub博客

首页 > IT职业 > IT生活 > CCNA实验配置指导(转)

CCNA实验配置指导(转)

原创 IT生活 作者:post0 时间:2007-08-12 20:44:22 0 删除 编辑
CCNA实验配置指导(转)[@more@]

  Logging In

  

  1. Press ENTER to connect to your router. This will bring you in User mode.

  2. At the router> prompt, type in a question mark (?) This will list all the User mode

   commands. Feel free to play with all the available commands. You are in a safe zone.

   Nothing will be damaged.

  3. Press the Enter key to the view the commands line by line.

  4. Press the SPACEBAR to view the commands a full screen at a time.

  5. Type enable or en, the press ENTER. This will put you in Privileged mode, where you

   can change and view the router configuration.

  6. At the router# prompt, type a question mark (?) This will list all available commands in

   the Router Global configuration mode. Use these commands with cautions.

  7. Type config and ENTER.

  8. Press ENTER to configure your router using your terminal.

  9. At the router(config)# prompt, type another question mark (?) This will list all

   commands available in router configuration mode. Use these commands with cautions.

  10. Press the CONTROL key and the letter Z at the same time. Notice how the take you out

   of Configuration mode and brings you back in Privileged mode.

  11. Type disable. This will put you into where you begin - the User mode.

  12. Type exit, which will log you out of the router.

  

  Viewing and Saving Configuration

  

  1. Log in the router and go to Privileged mode by typing en or enable, then pre ENTER.

  2. View the configuration running in DRAM, known as running-config, by typing sh run,

   show running, or show running-config. Press any key to continue.

  3. To see the configuration stored in NVRAM, which is known as startup-config, type sh

   start or show startup-config. If no configuration has been save, you will get an error

   message. Please press any key to continue.

  4. To save a configuration from DRAM to NURAM, copy the running-config to startup-config:

   copy run start and press ENTER; or copy running and press Tab; Type start, Press the

   Tab key, and the ENTER; or copy running-config startup-config and press ENTER. or,

   you may use the wr mem command (write memory).

  5. Type sh start, the press the Tab key, the ENTER. Press any key to continue.

  6. Type sh run, the press the Tab key, the ENTER. Press and key to continue.

  7. Type erase start, the press the Tab key, the ENTER. This command will erase all

   startup-config settings.

  8. Type sh start, the press the Tab key, the ENTER. You should get this error message:

   "%% Non-volatile configuration memory has not been setup or has bad checksum"

  9. Type reload, then press ENTER. Acknowledge the reload by pressing ENTER. Wait for the

   router to reload to complete and the Press Enter to continue. You have just cleared all

   previous Router settings. You should now have a clean router to start with.

  

  Static IP Routing Running-config

  

  RouterA#sh run

  Building configuration...

  

  Current configuration:

  !

  version 11.2

  no service password-encryption

  no service udp-small-servers

  no service tcp-small-servers

  !

  hostname RouterA

  !

  !

  !

  interface Ethernet0

  ip address 172.16.10.1 255.255.255.0

  !

  interface Serial0

  ip address 172.16.20.1 255.255.255.0

  no fair-queue

  !

  interface Serial1

  no ip address

  shutdown

  !

  !

  no ip classless

  ip route 172.16.30.0 255.255.255.0 172.16.20.2

  ip route 172.16.40.0 255.255.255.0 172.16.20.2

  ip route 172.16.50.0 255.255.255.0 172.16.20.2

  !

  !

  line con 0

  line aux 0

  line vty 0 4

  login

  !

  end

  

  

  

  RouterB#sh run

  Building configuration...

  

  Current configuration:

  !

  version 11.2

  no service password-encryption

  no service udp-small-servers

  no service tcp-small-servers

  !

  hostname RouterB

  !

  !

  !

  interface Ethernet0

  ip address 172.16.30.1 255.255.255.0

  !

  interface Serial0

  ip address 172.16.20.2 255.255.255.0

  clockrate 56000

  !

  interface Serial1

  ip address 172.16.40.1 255.255.255.0

  clockrate 56000

  !

  no ip classless

  ip route 172.16.10.0 255.255.255.0 172.16.20.1

  ip route 172.16.50.0 255.255.255.0 172.16.40.2

  !

  !

  line con 0

  line aux 0

  line vty 0 4

  login

  !

  end

  

  

  RouterC#sh run

  Building configuration...

  

  Current configuration:

  !

  version 11.2

  no service password-encryption

  no service udp-small-servers

  no service tcp-small-servers

  !

  hostname RouterC

  !

  !

  !

  interface Ethernet0

  ip address 172.16.50.1 255.255.255.0

  !

  interface Serial0

  ip address 172.16.40.2 255.255.255.0

  no fair-queue

  !

  interface Serial1

  no ip address

  shutdown

  !

  !

  no ip classless

  ip route 172.16.10.0 255.255.255.0 172.16.40.1

  ip route 172.16.20.0 255.255.255.0 172.16.40.1

  ip route 172.16.30.0 255.255.255.0 172.16.40.1

  !

  !

  line con 0

  line aux 0

  line vty 0 4

  login

  !

  end

  

  Default IP Routing Running-config

  

  RouterA#sh run

  Building configuration...

  

  Current configuration:

  !

  version 11.2

  no service password-encryption

  no service udp-small-servers

  no service tcp-small-servers

  !

  hostname RouterA

  !

  !

  !

  interface Ethernet0

  ip address 172.16.10.1 255.255.255.0

  !

  interface Serial0

  ip address 172.16.20.1 255.255.255.0

  no fair-queue

  !

  interface Serial1

  no ip address

  shutdown

  !

  

  !

  ip classless

  ip route 0.0.0.0 0.0.0.0 172.16.20.2

  !

  !

  line con 0

  line aux 0

  line vty 0 4

  login

  !

  end

  

  RouterB#sh run

  Building configuration...

  

  Current configuration:

  !

  version 11.2

  no service password-encryption

  no service udp-small-servers

  no service tcp-small-servers

  !

  hostname RouterB

  !

  !

  !

  interface Ethernet0

  ip address 172.16.30.1 255.255.255.0

  !

  interface Serial0

  ip address 172.16.20.2 255.255.255.0

  clockrate 56000

  !

  interface Serial1

  ip address 172.16.40.1 255.255.255.0

  clockrate 56000

  !

  no ip classless

  ip route 172.16.10.0 255.255.255.0 172.16.20.1

  ip route 172.16.50.0 255.255.255.0 172.16.40.2

  !

  !

  line con 0

  line aux 0

  line vty 0 4

  login

  !

  end

  

  RouterC#sh run

  Building configuration...

  

  Current configuration:

  !

  version 11.2

  no service password-encryption

  no service udp-small-servers

  no service tcp-small-servers

  !

  hostname RouterC

  !

  !

  !

  interface Ethernet0

  ip address 172.16.50.1 255.255.255.0

  !

  interface Serial0

  ip address 172.16.40.2 255.255.255.0

  no fair-queue

  !

  interface Serial1

  no ip address

  shutdown

  !

  !

  ip classless

  ip route 0.0.0.0 0.0.0.0 172.16.40.1

  !

  !

  line c


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8225414/viewspace-951985/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    2018
  • 访问量
    8225638