思科2600路由的简单配置

上传人:ji****n 文档编号:45650149 上传时间:2018-06-18 格式:DOC 页数:7 大小:34KB
返回 下载 相关 举报
思科2600路由的简单配置_第1页
第1页 / 共7页
思科2600路由的简单配置_第2页
第2页 / 共7页
思科2600路由的简单配置_第3页
第3页 / 共7页
思科2600路由的简单配置_第4页
第4页 / 共7页
思科2600路由的简单配置_第5页
第5页 / 共7页
点击查看更多>>
资源描述

《思科2600路由的简单配置》由会员分享,可在线阅读,更多相关《思科2600路由的简单配置(7页珍藏版)》请在金锄头文库上搜索。

1、我们连接计算机和路由器,以及路由器和外网接口 注意级联线和直通线的用法!首先确定 f0/0 与 f0/1 哪个是外网接口 哪个是内网接口基本路由器配置命令1.配置 f0/0 和 f0/1 的 ip 地址Routeren 进入Password: 输入密码 输入后看不见 Router#config t 进入特权配置模式Enter configuration commands, one per line. End with CNTL/Z.Router(config)#interface f0/0 进入 f0/0 接口Router(config-if)#no shut 激活 f0/0 接口Router

2、(config-if)#ip address 172.16.0.246 255.255.255.0 配置 IP 地址Router(config-if)#exit 退出Router(config)#interface f0/1 进入 f0/1 接口Router(config-if)#ip address 192.168.0.1 255.255.255.0 配置 IP 地址 Router(config-if)#no shut 激活 f0/1 接口Router(config-if)#exit 退出Router(config)#exit 退出Router#00:58:42: %SYS-5-CONFIG

3、_I: Configured from console by consoleRouter#show run 查看运行状态Building configuration.=Current configuration : 850 bytes!version 12.2service timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname Router!logging console notificationsenable password cheng!ip subnet-ze

4、ro!ip inspect audit-trailip audit notify logip audit po max-events 100!interface FastEthernet0/0 ip address 172.16.0.246 255.255.255.0duplex autospeed auto!interface FastEthernet0/1ip address 192.168.0.1 255.255.255.0duplex autospeed auto!interface Ethernet1/0no ip address 注意每次查看的这些不同之处ip broadcast-

5、address 0.0.0.0shutdownhalf-duplex!ip classlessip http serverip pim bidir-enable!logging facility local3logging 172.18.1.3tacacs-server host 172.18.1.2!line con 0line aux 0line vty 0 4login! end=-2,配置路由和配置 NAT 内外接口(此包含了 NAT 转换的一些内容)Router# 输入的 en 和密码就省去了 _Router#config tEnter configuration commands,

6、 one per line. End with CNTL/Z.Router(config)#ip route 0.0.0.0 0.0.0.0 172.16.0.254 配置路由信息 (此是一条缺省路由)Router(config)#interface f0/0 进入 F0/0 接口Router(config-if)#ip nat inside 把 F0/0 设置为接入口(inside)Router(config-if)#exitRouter(config)#interface f0/1 进入 F0/1 接口Router(config-if)#ip nat outside 把 F0/1 设置为接

7、出口Router(config-if)#exitRouter(config)#exitRouter#sho -你一定?呵呵 这里你只要输入 show run 不用管他 只要不输错 就会成功01:21:25: %SYS-5-CONFIG_I: Configured from console by consolew runBuilding configuration.-Current configuration : 797 bytes!version 12.2service timestamps debug uptimeservice timestamps log uptimeno service

8、 password-encryption!hostname Router!logging console notificationsenable password cheng!ip subnet-zero!ip inspect audit-trailip audit notify logip audit po max-events 100!interface FastEthernet0/0 ip address 172.16.0.246 255.255.255.0ip nat inside 注意0 这里duplex autospeed auto!interface FastEthernet0/

9、1ip address 192.168.0.1 255.255.255.0ip nat outside 注意0 这里duplex autospeed auto!interface Ethernet1/0no ip addressip broadcast-address 0.0.0.0shutdownhalf-duplex!ip classlessip route 0.0.0.0 0.0.0.0 172.16.0.254 注意 这里是缺省路由ip http serverip pim bidir-enable!logging facility local3logging 172.18.1.3tac

10、acs-server host 172.18.1.2!line con 0line aux 0line vty 0 4login! end=3,配置 NAT 转换的重要一句静态路由:ipip route-staticroute-static interfaceinterface number|nexthopvaluereject|blackholenumber|nexthopvaluereject|blackholeRouter# 输入的 en 和密码就省去了 _Router#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#ip nat inside source static 192.168.1.2 172.16.0.246 配置 NAT 地址的转换信息 Router(config)#exitRouter#show run 查看01:21:25: %SYS-5-CONFIG_I: Configured from

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 中学教育 > 初中教育

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号