频 道 直 达 - 新闻 - 读书 - 培训 - 教程 - 前沿 - 组网 - 系统应用 - 安全 - 编程 - 存储 - 操作系统 - 数据库 - 服务器 - 专题 - 产品 - 案例库 - 技术圈 - 博客 - BBS
51CTO.COM_中国领先的IT技术网站
找资料:

NAT+DHCP+HSRP+ACL+NTP配置实例

作者: 出处:51CTO.com整理  (  ) 砖  (  ) 好  评论 ( ) 条  进入论坛
更新时间:2005-12-19 10:36
关 键 词:配置
阅读提示:本文是NAT+DHCP+HSRP+ACL+NTP配置实例

sh run
Building configuration...
Current configuration : 1664 bytes
!
! Last configuration change at 10:58:23 UTC Wed Dec 22 2004
! NVRAM config last updated at 10:58:53 UTC Wed Dec 22 2004
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
enable secret 5 $1$FOJx$EaWLKlAfIHWh/JpXKMIaO/
!
ip subnet-zero
!
!
ip dhcp excluded-address 1.1.1.1
ip dhcp excluded-address 1.1.1.10
ip dhcp excluded-address 1.1.1.254
!
ip dhcp pool wuyou
--More--   network 1.1.1.0 255.255.255.0
dns-server 211.90.88.129 212.102.4.141
default-router 1.1.1.10
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.0
ip broadcast-address 2.2.2.255
!
interface FastEthernet0/0
ip address 222.1.8.200 255.255.0.0
ip broadcast-address 222.1.255.255
ip nat outside
duplex auto
--More--   speed auto
!
interface FastEthernet0/1
ip address 1.1.1.1 255.255.255.0
ip broadcast-address 1.1.1.255
ip nat inside
duplex auto
speed auto
standby timers 100 101 advertise 100
standby priority 200
standby preempt
standby track Loopback0 100
standby 1 ip 1.1.1.10
!
ip nat pool abc 222.1.8.200 222.1.8.250 netmask 255.255.0.0
ip nat inside source list 10 pool abc overload
ip classless
ip route 0.0.0.0 0.0.0.0 222.1.5.101
ip route 1.1.1.0 255.255.255.0 FastEthernet0/1
no ip http server
ip pim bidir-enable
!
!
--More--  access-list 10 permit 1.1.1.0 0.0.0.255
access-list 101 deny ip 222.1.0.0 0.0.255.255 1.1.1.0 0.0.0.255 log
access-list 101 permit ip any any
!
dial-peer cor custom
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
ntp authentication-key 1 md5 00071A150754 7
ntp authenticate
ntp trusted-key 1
ntp master 1
--More--  !
end
Router#telnet 1.1.1.254
Trying 1.1.1.254 ... Open
User Access Verification
Password:
Switch>en
Password:
Switch#sh run
Building configuration...
Current configuration:
!
! Last configuration change at 09:04:49 UTC Wed Dec 22 2004
! NVRAM config last updated at 15:37:59 UTC Tue Dec 21 2004
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
enable password cisco
!
!
!
!
!
!
ip subnet-zero
!
--More--  !
!
interface FastEthernet0/1
port security
spanning-tree portfast
!
interface FastEthernet0/2
spanning-tree portfast
!
interface FastEthernet0/3
spanning-tree portfast
!
interface FastEthernet0/4
spanning-tree portfast
!
interface FastEthernet0/5
spanning-tree portfast
!
interface FastEthernet0/6
spanning-tree portfast
!
interface FastEthernet0/7
spanning-tree portfast
--More--  !
interface FastEthernet0/8
spanning-tree portfast
!
interface FastEthernet0/9
spanning-tree portfast
!
interface FastEthernet0/10
spanning-tree portfast
!
interface FastEthernet0/11
spanning-tree portfast
!
interface FastEthernet0/12
spanning-tree portfast
!
interface FastEthernet0/13
spanning-tree portfast
!
interface FastEthernet0/14
spanning-tree portfast
!
interface FastEthernet0/15
--More--   spanning-tree portfast
!
interface FastEthernet0/16
spanning-tree portfast
!
interface FastEthernet0/17
spanning-tree portfast
!
interface FastEthernet0/18
spanning-tree portfast
!
interface FastEthernet0/19
spanning-tree portfast
!
interface FastEthernet0/20
spanning-tree portfast
!
interface FastEthernet0/21
spanning-tree portfast
!
interface FastEthernet0/22
spanning-tree portfast
!
--More--  interface FastEthernet0/23
spanning-tree portfast
!
interface FastEthernet0/24
spanning-tree portfast
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface VLAN1
ip address 1.1.1.254 255.255.255.0
ip access-group 101 in
ip helper-address 1.1.1.10
ip directed-broadcast
no ip route-cache
!
interface VLAN2
no ip directed-broadcast
no ip route-cache
shutdown
!
mac-address-table secure 0000.e8af.67f8 FastEthernet0/1 vlan 1
--More--  !
line con 0
transport input none
stopbits 1
line vty 0 4
password cisco
login
line vty 5 15
login
!
ntp authentication-key 1 md5 13061E010803 7
ntp authenticate
ntp trusted-key 1
ntp clock-period 11259402
ntp server 1.1.1.10 key 1
end
Switch#


发表
查看
我也说两句

匿名发表

(如果看不清请点击图片进行更换)


中 国 领 先 的 IT 技 术 网 站 ·
技 术 成 就 梦 想
·Windows XP远程桌面连接图解(.. (查看30702次)
·Windows Vista 初步 (查看20844次)
·Solaris基础知识入门 (查看19036次)
·Linux的安装 (查看16857次)
·Windows操作系统安装 (查看15831次)
订阅技术快讯
电子杂志下载
名称:网络安全精品应用黄皮书
简介:《2007精品网络安全黄皮书》包括了9个大类24个小类, 800余篇文章,内容包含了熊猫烧香病毒、DDOS攻击、ARP病等热点问题的介绍及解决方案。从病毒查杀、防范、系统、数据等各方面的安全设置到黑客技术的了解、防范,涉及到了安全应用的全部领域, 由浅至深内容全面。
名称:Vista精品应用黄皮书
简介:《Vista精品应用黄皮书》囊括了Vista的各方面内容。此次的精简版,是将里面的内容做了提取,便于用户下载和使用。内容包含了各种Vista的安装与实施、技巧与解析以及各种Vista相关学习文档和相关软件的安全下载。该电子书是了解和应用Vista人员必备的工具手册,并且也是第一本
名称:2006中国IT论坛精品集合
简介:本书由“51CTO论坛推广联盟”制作完成。书中所有内容均来自各联盟成员的论坛(网站)。制作本书的目的是为了集中大家的优势资源,将更多更精彩的内容带给广大技术爱好者。本书是联盟成立以来制作的第一本书。
关键字阅读
频道精选
主编信箱 热线:010-66476606 告诉我们您想看的:专题 文章
关于我们 | 诚聘英才 | 联系我们 | 网站大事 | 意见反馈 | 网站地图
Copyright©2005-2007 51CTO.COM 版权所有