cisco-2811-DHCP-WAN配置

DianXin#show running-config
Building configuration...

Current configuration : 1407 bytes
!
! Last configuration change at 14:41:41 UTC Sat Oct 30 2010
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname DianXin                //在配置模式下,定义主机名
!
boot-start-marker
boot-end-marker
!
enable password 123456   //开启特权模式密码
!
no aaa new-model
!
ip source-route
!
!
ip cef
ip dhcp excluded-address 192.168.2.1    //配置内网DHCP不分配的地址,也就是需要静态配置的地址
!
ip dhcp pool office-1                   //定义DHCP地址池名称为office-1
   network 192.168.2.0 255.255.255.0    //指定DHCP网段地址
   default-router 192.168.2.1           //指定默认网关
   dns-server 222.222.222.222 222.222.202.202   //配置DNS 主备
!
!
multilink bundle-name authenticated
!
!
!
license udi pid CISCO2811 sn FHK1410F32X
username cisco password 0 12345     //增加用户名密码
!
!
!
!
!
!
interface FastEthernet0/0                   //配置外网接口地址
 ip address 222.223.146.146 255.255.255.240
 ip nat outside                            //指定是outside 接口
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface FastEthernet0/1                 //配置内网接口地址
 ip address 192.168.2.1 255.255.255.0    
 ip nat inside                            //指定是内部inside 接口
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface FastEthernet0/0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet0/0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
ip forward-protocol nd
!
!
ip http server                         //允许内网访问
ip nat inside source list 1 interface FastEthernet0/0 overload   //配置内网地址转换外网接口地址
ip route 0.0.0.0 0.0.0.0 222.223.192.145                         //增加默认路由 
!
access-list 1 permit 192.168.2.0 0.0.0.255                       //访问列表
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4                                   //进入终端telnet访问
 password 123456                               //设置密码
 login                                         //验证登录
 transport input telnet                        //telnet访问
 telnet transparent
 access-class 1 in                             //设置允许telnet的访问列表
!
scheduler allocate 20000 1000
end

 

你可能感兴趣的:(职场,休闲)