免费预览已结束,剩余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(config-if)#ip address 46 配置IP地址Router(config-if)#exit 退出Router(config)#interface f0/1 进入f0/1接口Router(config-if)#ip address 配置IP地址 Router(config-if)#no shut 激活f0/1接口Router(config-if)#exit 退出Router(config)#exit 退出Router#00:58:42: %SYS-5-CONFIG_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-zero!ip inspect audit-trailip audit notify logip audit po max-events 100!interface FastEthernet0/0 ip address 46 duplex autospeed auto!interface FastEthernet0/1ip address duplex autospeed auto!interface Ethernet1/0no ip address 注意每次查看的这些不同之处ip broadcast-address shutdownhalf-duplex!ip classlessip http serverip pim bidir-enable!logging facility local3logging tacacs-server host !line con 0line aux 0line vty 0 4login! end=-2,配置路由和配置NAT内外接口(此包含了NAT转换的一些内容)Router# 输入的en和密码就省去了 _Router#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#ip route 54 配置路由信息 (此是一条缺省路由)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设置为接出口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 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 46 ip nat inside 注意0 这里duplex autospeed auto!interface FastEthernet0/1ip address ip nat outside 注意0 这里 duplex autospeed auto!interface Ethernet1/0no ip addressip broadcast-address shutdownhalf-duplex!ip classlessip route 54 注意 这里是缺省路由ip http serverip pim bidir-enable!logging facility local3logging tacacs-server host !line con 0line aux 0line vty 0 4login! end=3,配置NAT 转换的重要一句静态路由:ip route-static interface number|nexthopvaluereject|blackholeRouter# 输入的en和密码就省去了 _Router#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#ip nat inside source static 46 配置NAT地址的转换信息 Router(config)#exitRouter#show run 查看01:21:25: %SYS-5-CONFIG_I: Configured from console by consoleBuilding configuration.-Current configuration : 797 bytes!version 12.2service timestamps debug uptimeservice timestamps log uptimeno service 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/0ip address 46 ip nat outsideduplex autospeed auto!interface FastEthernet0/1ip address ip nat insideduplex autospeed auto!interface Ethernet1/0no ip addressip broadcast-address shutdownhalf-duplex!ip nat inside source static 46 -配好了ip classlessip route 54ip http serverip pim bidir-enable!logging facility local3logging tacacs-server host 1
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026尼日利亚农业科技行业市场发展潜力及投资风险评估规划分析研究报告
- 4.1维护秩序靠规则 课件 2026-2027学年统编版道德与法治 八年级上册
- 2026人工智能产业现状深度研究及发展方向与投资策略研究报告
- 2026中国医药包装机械行业市场现状供需分析及投资评估规划分析研究报告
- 2026中国智慧创业园业市场深度调研及发展趋势与投资前景预测研究报告
- 2026中国医药中间体行业市场供需调研及投资策略规划报告
- 2026中国工业气体现场制气模式经济性与客户锁定策略研究
- 110kV总降变继电保护整定单
- 2026人工智能发展现状深度研究及未来趋势估计报告
- 2026招商面试题及答案
- 2026年绵阳育才中学初一入学语文分班考试真题含答案
- 高盛-中国工业科技:全球化3.0:中国AI工业化时代-Go Global 3.0:The Age of China's AI Industrialization-20260811
- CSCO胰腺癌诊疗指南(2026版)
- 2026年广西中考语文试卷(含详细答案解析)
- 2026年云南省中考数学试卷含详细答案解析
- 月球基地能源系统优化-洞察与解读
- 学校中层管理岗位选聘与考核管理方案(2026年修订版)
- 雨污分流管道清淤与维护方案
- (2025年)哈密市伊吾县辅警考试公安基础知识考试真题库及参考答案
- GB/T 23932-2025建筑用金属面绝热夹芯板
- 货运夏季安全常识培训课件
评论
0/150
提交评论