1 / 27

路由器基本配置 Basic Configuration of Router

路由器基本配置 Basic Configuration of Router. 教学目标( Objectives ). 1. 路由器功能( Function of Router ) 2. 路由器组成( Router Components ) 3. 超级终端会话属性 ( HyperTerminal Session Properties ) 4. Router 配置模式 ( Router Configuration Mode ) 5. 路由器基本配置 ( Basic Configuration of Router ).

landry
Télécharger la présentation

路由器基本配置 Basic Configuration of Router

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 路由器基本配置Basic Configuration of Router

  2. 教学目标( Objectives) • 1. 路由器功能( Function of Router ) • 2.路由器组成(Router Components) • 3.超级终端会话属性 • (HyperTerminal Session Properties) • 4. Router配置模式 • (Router Configuration Mode) 5.路由器基本配置 • (Basic Configuration of Router)

  3. Router功能(Function of Router ) • Router是第三层的网络设备(Router is layer 3 device): • 1. 路由选择和交换(Routing and Switching) • 2. 网络分段(Network Segment) • 3. 流量控制(Flow Control) • 4. 隔离广播(Isolate Broadcast) • 5. 广域网连接(WAN Connection)

  4. 路由选择和交换(Routing and Switching)

  5. 网络分段(Network Segment)

  6. 广域网连接(WAN Connection)

  7. 路由器内部组成(Router Internal Components)

  8. 2600系列路由器内部构成(Internal Components of 2600 Router)

  9. 2600系列路由器外观(External Connectors on 2600 Router)

  10. 计算机连接到控制台接口(Computer Connect to Console Port)

  11. 在计算机上配置超级终端软件(Configure HyperTerminal software on the PC)

  12. 超级终端会话属性(HyperTerminal Session Properties)

  13. Router配置模式(Router Configuration Mode) • 1.用户模式 (user mode)> • 2.特权模式 (privileged mode) # • 3.全局模式 (global config mode) router(config)# • 4.子模式(sub-mode) • 接口模式(interface mode): • router(config-if)# • 线路模式(line mode): • router(config-line)# • 路由模式(router mode): • router(config-router)# • 5.Setup模式 • 6.RXBOOT 模式 • 7.ROMMON模式

  14. Router工作模式转换(Change Router Configuration Mode) • Router> • Router>enable • Router# • Router# configure terminal • Router(config)# • Router(config)# interface fa0/0 • Router(config-if)#exit • Router(config)#router rip • Router(config-router)#end • Router# disable • Router>

  15. 工作模式切换命令注释( Notesof Changing Router Mode Command ) • 进入特权命令状态 enable 退出特权命令状态 disable 进入设置对话状态 setup 进入全局设置状态 config terminal 退出全局设置状态 end 进入端口设置状态 interface type slot/number 进入线路设置状态 line type slot/number 进入路由设置状态 router protocol 退出局部设置状态 exit

  16. 命名路由器(Name the Router) Router(config)#hostname Lab-A

  17. 配置enable密码(Configuring Enable Passwords) Lab-A(config)#enable password cisco Results in: show run enable password cisco(明文,未加密)

  18. 配置enable密码(Configuring Enable Passwords) Lab-A(config)#enable secret cisco Results in: Show run enable secret 5 $1$emBK$WxqLahy7YO(密码被加密)

  19. 配置串行口(Configuring a Serial Interface) • 1. Rouer1 # config t • 2. Router1(config)# interface s0/0(serial 0) • 进入串行口模式(Enter Serial Interface Mode) • 3. Router1(config-if)# clock rate 64000 • DCE端配置时钟(Set clock rate if a DCE cable is connected ) • 4. Router1(config-if)# ip address 192.168.100.1 255.255.255.0 • 配置接口IP地址和网络掩码(Specify the Interface Address and Subnet Mask) • 5. Router1(config-if)# no shut • 开启接口(Turn on the Interface)

  20. 配置以太口(Configuring an Ethernet Interface) • 1. Router1# config t • 2. Router1(config)# interface fa0/0(ethernet 0) • 进入以太口模式(Enter Ethernet Interface Mode) • 3. Router1(config-if)# ip address 10.1.1.1 255.255.255.0 • 配置接口IP地址和网络掩码(Specify the Interface Address and Subnet Mask) • 4. Router1(config-if)# no shut • 开启接口(Turn on the Interface)

  21. 配置接口描述(Configuring Interface Description) • 1. 接口描述可以帮助网络用户记住特定的关于接口的信息 • A description of an interface can help a network user remember specific information about the interface. • 2. 描述仅仅是对接口的一个标记。 • The description is meant solely as a comment about the interface. • Eg1 interface fa0/0 • description LAN Engineering, Bldg.2 • Eg2 interface serial 0/0description ABC network 1, Circuit 1

  22. Router 端口状态(Status of Interface)

  23. 配置登录提示信息(Configuring Login Banners) • Router1(config)#banner motd #Welcome to coreyard# • “#”:特定的分隔符号 • “#”:a space and a delimiting character

  24. Show命令(Show Command) • 1.show version这个命令可以查看IOS版本号,已启动时间 • ,flash中的IOS的文件名,router里面共有什 • 么的端口,寄存器的值等等。 • 2.show protocol显示与ip 有关的路由协议信息,各个端口的 • 情况。 • 3.show flash查看flash中的内容,IOS的长度,文件名, • 剩余空间,总共空间。 • 4.show running-config查看路由器当前的配置信息。 • 5.show interface查看路由器上的各个端口的状态信息。 • 6.show controller查看接口控制器的状态,可看到连接的是 • DTE还是DCE • 8.show history 查看history buffer 里面的命令列表 • terminal history size <size> 设置history buffer 里面保存命令的个数。最 • 大允许值为256

  25. 高级组合命令(Enhanced Editing Commands) • Ctrl+A:光标回到命令行的最开头(move to the beginning of the command line) • Ctrl+E:光标回到命令行的最后(move to theend of the command line) • Ctrl+B:光标向左移一字符位置(move back one character) • Ctrl+F:光标向右移一字符位置(move froward one character) • Ctrl+P(or 上箭头):使用上一条用过的命令(recall previous command) • Ctrl+N(or下箭头):使用下一条用过的命令 • (recall most recent command)

  26. 使用“?”(use “?”) • clock • clock ? • clock set ? • clock set 10:30:30 ? • clock set 10:30:30 20 oct ? • clock set 10:30:30 20 oct 2002? • show clock

  27. 保存、删除、查看配置文件 (Save,Delete,Show Configuration File) 1.保存配置文件(Save configuration file) copy running-config startup-config 2.删除配置文件(Delete configuration file) erase startup-config 3.查看配置文件( show configuration file ) show startup-config show running-config

More Related