烽火路由器常用配置案例分析

上传人:飞*** 文档编号:35806071 上传时间:2018-03-20 格式:DOC 页数:9 大小:67KB
返回 下载 相关 举报
烽火路由器常用配置案例分析_第1页
第1页 / 共9页
烽火路由器常用配置案例分析_第2页
第2页 / 共9页
烽火路由器常用配置案例分析_第3页
第3页 / 共9页
烽火路由器常用配置案例分析_第4页
第4页 / 共9页
烽火路由器常用配置案例分析_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《烽火路由器常用配置案例分析》由会员分享,可在线阅读,更多相关《烽火路由器常用配置案例分析(9页珍藏版)》请在金锄头文库上搜索。

1、1烽火路由器常用配置简介及案例分析烽火路由器常用配置简介及案例分析一、配置命令简介:一、配置命令简介:1,Route(config)#hostname /此为路由器名称配置2,Route(config)#aaa authentication login default local Route(config)#aaa authentication enable default none/“login”及“telnet”用户登陆权限配置3,Route(config)#username t password 0 w /用户名及密码配置4,Route(config)#interface FastEth

2、ernet0/0 /接口模式下命令配置Route(config-fa-0/0)#ip address 222.160.140.10 255.255.255.248-配置上联接口地址(必配)Route(config)#ip nat outside-地址转换外部接口(必配)Route(config)#interface FastEthernet1/0Route(config-fa-1/0)#ip address 10.18.11.1 255.255.255.0-配置内部接口地址(必配)Route(config-fa-1/0)#ip nat inside-地址转换内部接口(必配)Route(conf

3、ig)#interface FastEthernet2/0Route(config-fa-2/0)#ip address 10.18.12.1 255.255.255.0Route(config-fa-2/0)#ip nat inside5,Route(config)#ip route default 222.160.140.9-配置缺省路由,指向上联设备网关的地址6,Route(config)#ip nat pool pool1 222.160.140.10 222.160.140.10 255.255.255.248/配置地址转换的地址池,如果没有多的公网地址,那么可以用上联口地址配置多个

4、地址转换池。Route(config)#ip nat pool pool2 222.160.140.10 222.160.140.10 255.255.255.2487,Route(config)#ip nat inside source list list1 pool pool1 overload/将地址转换池加入到标准访问控制表中Route(config)#ip nat inside source list list2 pool pool2 overload 8,Rouer_config#ip nat service privateservice(将外部地址-公网 映给私网)Rouer_c

5、onfig#ip nat inside source static 1.1.1.1(内部地址)A.A.A.A (外部地址) ip nat inside source static tcp 192.168.0.1 23 211.98.68.54 23 通过这个命令指定定制的端口映射(如只走 TCP 端口)9,Route(config)#ip access-list standard list1Router_config_std_nacl#permit 10.18.11.0 255.255.255.0Route(config)#ip access-list standard list2Router

6、_config_std_nacl#permit 10.18.12.0 255.255.255.010,Route(config)#ip dhcpd pool p1-网段的划分,每个地址池代表一个小区的地址范围。并且必须只与一个接口发生关联。Route(config-pool-p1)#network 10.18.11.0 255.255.255.0Route(config-pool-p1)#range 10.18.11.3 10.18.11.254Route(config-pool-p1)#default-router 10.18.11.1-fast 1/0 内部接口的地址Route(confi

7、g-pool-p1)#dns-server 202.98.0.68 202.98.5.68Route(config-pool-p1)#lease 0 3 0Route(config)#ip dhcpd pool p2Route(config-pool-p1)#network 10.18.12.0 255.255.255.0Route(config-pool-p1)#range 10.18.12.3 10.18.12.254Route(config-pool-p1)#default-router 10.18.12.1-fast 2/0 内部接口的地址Route(config-pool-p1)#d

8、ns-server 202.98.0.68 202.98.5.68Route(config-pool-p1)#lease 0 3 0Route(config)#ip dhcpd enable-必须启用 DHCP 协议后,DHCP 的所有配置才会起作用2二、常用配置案例二、常用配置案例1.单 IP 上网配置:Router#sho runBuilding configuration.Current configuration:!version 1.3.3Fservice timestamps log dateservice timestamps debug dateno service passw

9、ord-encryption!gbsc group default!aaa authentication login default enable aaa 的 login 认证(必配)aaa authentication enable default enable aaa 的 ena 认证(必配)!username admin password 0 adminenable password 0 admin level 15 建立一个用户名:admin 和密码:admin!interface Loopback1 虚拟 loopback 口上配置外网 IPip address 211.140.19

10、5.15 255.255.255.255 no ip directed-broadcast!interface FastEthernet0/0 下联内部局域网的接口配置ip address 192.168.0.1 255.255.255.0 内网 IP 的配置,也是内网的网关 IPno ip directed-broadcastip nat inside 配置为内部转换接口(必配)!interface FastEthernet0/1no ip addressno ip directed-broadcast!interface Serial0/2no ip addressno ip direct

11、ed-broadcast!interface Serial0/3no ip addressno ip directed-broadcast!interface Serial1/0:0 互联接口 E1 口配置ip address 10.60.63.30 255.255.255.252 互联本端 IPno ip directed-broadcast3encapsulation ppp PPP 封装协议设置,端口默认 HDLC(必配)ip nat outside 配置为外部转换接口(必配)!interface Async0/0no ip addressno ip directed-broadcast

12、!ip route default 10.60.63.29 默认路由配置,一般是对端路由器接口 IP!ip access-list standard list1 下联内部网络的访问控制列表设置permit 192.168.0.0 255.255.255.0!ip nat pool pool1 211.140.195.15 211.140.195.15 255.255.255.240 地址池的配置,如果只有一个外网地址,开始和结束 IP 为同一个 IPip nat inside source list list1 pool pool1 overload 将访问控制列表允许的 IP 绑定到地址池上

13、进行 NAT 重载!2. 2 个公网 IP,一个网段 MAS,一个网段邮件服务器:Router#sho runBuilding configuration.Current configuration:!version 1.3.3Fservice timestamps log dateservice timestamps debug dateno service password-encryption!gbsc group default!aaa authentication login default local enableaaa authentication enable default

14、enable!username fenghuo password 0 fenghuo!interface Loopback1ip address 211.140.198.115 255.255.255.255no ip directed-broadcast!interface Loopback2ip address 211.140.202.49 255.255.255.255no ip directed-broadcast!interface FastEthernet0/0ip address 192.168.135.30 255.255.255.04no ip directed-broadc

15、astip nat inside!interface FastEthernet0/1ip address 192.168.0.1 255.255.255.0no ip directed-broadcastip nat inside!interface Serial0/2no ip addressno ip directed-broadcast!interface Serial0/3no ip addressno ip directed-broadcast!interface Serial1/0:0ip address 10.60.7.222 255.255.255.252no ip direc

16、ted-broadcastencapsulation pppip nat outside!interface Async0/0no ip addressno ip directed-broadcast!ip route default 10.60.7.221!ip access-list standard 1permit 192.168.135.0 255.255.255.0!ip access-list standard 2permit 192.168.0.0 255.255.255.0!ip nat service peekip nat service privateserviceip nat outside destination static tcp 211.14

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

最新文档


当前位置:首页 > 行业资料 > 教育/培训

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