- 论坛徽章:
- 0
|
我配置了一个3640作internet路由器,打算启用NAT和DHCP,但是DHCP总是不生效,不知道为什么?同样的配置在3660上就可以。
以下是配置信息:
Router#sho run
Building configuration...
Current configuration : 1533 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
enable secret 5 $1$7aO0$Vd8zOrOXzfS6noyRGBuo0.
enable password cisc0
!
ip subnet-zero
!
!
no ip dhcp conflict logging
ip dhcp excluded-address 192.168.200.1 192.168.200.10
ip dhcp excluded-address 192.168.200.251 192.168.200.254
!
ip dhcp pool 1
network 192.168.200.0 255.255.255.0
default-router 192.168.200.2
dns-server 202.106.0.20
lease 7
!
!
!
!
interface BRI1/0
no ip address
shutdown
!
interface Ethernet1/0
ip address 222.116.21.13 255.255.255.128
ip nat outside
half-duplex
!
interface Ethernet1/1
ip address 192.168.200.2 255.255.255.0
ip nat inside
ip dhcp relay information trusted
half-duplex
!
interface BRI2/0
no ip address
shutdown
!
interface BRI2/1
no ip address
shutdown
!
interface BRI2/2
no ip address
shutdown
!
interface BRI2/3
no ip address
shutdown
!
interface BRI2/4
no ip address
shutdown
!
interface BRI2/5
no ip address
shutdown
!
interface BRI2/6
no ip address
shutdown
!
interface BRI2/7
no ip address
shutdown
!
ip nat pool bbb 222.116.21.13 222.116.21.13 netmask 255.255.255.128
ip nat inside source list 1 pool bbb overload
ip classless
ip route 0.0.0.0 0.0.0.0 222.116.21.1
no ip http server
no ip pim bidir-enable
!
!
access-list 1 permit 192.168.200.0 0.0.0.255
!
line con 0
line aux 0
line vty 0 4
access-class 1 in
password cisc0
login
!
!
end
Router# |
|