才子佳人博客

我的故事我讲述

CISCO模拟路由器互连配置实例(两台互连实践篇)
 
来源:xjh  编辑:xjh  2013-10-15
1.路由器配置模式的种类及相应的提示符

用户模式: Router>

特权模式: Router井

全局配置模式: Router(config)井

路由器配置模式:Router(config-router)井

接口配置模式: Router(config-if)井

线路配置模式: Router(config-line)井

exit: 返回上一级

end: 直接返回到特权模式
2.配置路由器的名称

Router> 用户执行模式提示符

Router>enable 进入特权模式

Router井 特权模式提示符

Router井configure terminal 进入全局配置模式

Router(config)井 全局配置模式提示符 例如:路由器命名

Router(config)井hostname router1 配置路由器的名称为 router1

Router(config)井end 直接返回到特权模式

Router井 show running-config 查看正在运行的配置文件

Router(config-if)井 接口配置模式(给路由器分配ip地址)
3.给路由器配置ip地址

Router>

Router>井enable

Router井

Router井configure terminal

Router(config)井interface f0/0 进入路由器f0/0接口

Router(config-if)井

Router(config-if)井ip address 192.168.12.2 255.255.255.0 分配f0/0接口的ip地址及子网掩码

Router(config-if)井no shutdown 启用该接口,记得必须启用。

Router(config-if)井

Router(config-if)井end

Router井

Router井write 保存路由器配置,记得保存。

Router井show ip interface brief 查看路由器的接口配置情况

Router井show run 查看路由器配置情况
4.注意

直连的路由器必须处于同一网段。



R1路由器配置信息

R1————show run
Building configuration...

Current configuration : 1017 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1

interface FastEthernet0/0

ip address 192.168.12.1 255.255.255.0

duplex auto

speed auto
!
interface FastEthernet0/1

ip address 192.168.10.1 255.255.255.0

duplex auto

speed auto
!
ip forward-protocol nd
ip route 192.168.11.0 255.255.255.0 192.168.12.2


----------------------------------------------------------------

R2路由器配置信息

Connected to Dynamips VM "R2" (ID 1, type c3725) - Console port
Press ENTER to get the prompt.

R2———show run
Building configuration...

Current configuration : 1017 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2

interface FastEthernet0/0

ip address 192.168.12.2 255.255.255.0

duplex auto

speed auto
!
interface FastEthernet0/1

ip address 192.168.11.1 255.255.255.0

duplex auto

speed auto
!
ip forward-protocol nd
ip route 192.168.10.0 255.255.255.0 192.168.12.1
!


分类:网络日志| 查看评论
相关文章
文章点击排行
本年度文章点击排行
发表评论:
  • 昵称: *
  • 邮箱: *
  • 网址:
  • 评论:(最多100字)
  • 验证码: