51CTO技术论坛 » 思科技术 » NAT+DHCP+HSRP+ACL+NTP配置实例        上一帖     下一帖    查看完整版本

页: [1] 2

pupuzmc2006-9-19 13:46
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#

[[i] 本帖最后由 pupuzmc 于 2006-9-19 21:47 编辑 [/i]]

shijianchun2006-9-20 03:49
配置实例,可以一看

best12862006-9-22 03:20
学习一下,谢谢

buffon2006-9-22 06:16
看过要顶

bj0072006-12-5 10:41
taihaole
\

yiyi198310102007-7-4 05:29
dd

ddddddddddddddddddd

hubo32032007-7-11 13:45
谢谢

zhanghaoaaaaaa2007-7-12 08:02
ddd

upccnp2007-7-13 00:35
good

vipmax2007-7-13 01:33
如此经典的教学教程全部收集

montella2007-7-13 14:56
学习一下,谢谢

huangjin_qq2007-8-6 22:16
hao

xionghl2007-8-23 07:47
收藏了

love-life2007-8-24 02:14
实例到是不错啊,我提点小意见:

楼主在有些地方加上注解就更好了,

应该有必须的功能说明

way0082007-8-24 02:30
dddddd

rruuvv2007-8-25 17:49
谢谢

wen10002007-12-31 02:36
ddddddddddddddddddddddddd

gzchlc2007-12-31 05:12
ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd

zhaojie12282007-12-31 14:39
ddddddddddddddddddddd

jccai2008-1-1 14:22
thank you !!!!!!!

jccai2008-1-1 14:23
thank you!!!!!!!!

netdog_yx2008-1-1 14:52
好东西,支持哈

zbh873302008-1-6 09:30
好东西,值得学习!
对我有帮助,谢谢

lygzhangbo2008-1-6 10:58
怎么没有图啊……????

roc56682008-1-7 02:59
看看,学习一下!!!!!

关键词: NAT       DHCP       acl       hsrp       配置       

相关文章:
[ZT]Oracle常用数据字典
Oracle 快速入门
Oracle的分区管理
lilo.conf-lilo的配置文件。

查看完整版本: NAT+DHCP+HSRP+ACL+NTP配置实例


Powered by 51CTO.COM