网络建设中,它的规划尤为重要。那么对于cisco 2600 dhcp的配置工作,我们在这里做了一个简单的设计。如果没有一个文档来规划下你想要做的DHCP。即使是随便的一张纸,siling在此也建议你最好先规划下 ,要不在配置到后面的时候是要出问题的。虽然在网上可以找到很多DHCP,比我的这要详细得多,但是我这是真正的实现了的。
规划:用221.10.170.5的公网IP做出口。192.168.1.0做内网,做一个动态的NAT来实现地址转换。在用一个DHCP来实现地址的自动分配!
cisco 2600 dhcp具体配置命令:
NIC327#show run
Building configuration...
Current configuration : 901 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname NIC327
!
!
ip subnet-zero
!
!
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool net327
network 192.168.1.0 255.255.255.0
dns-server 221.10.251.197
!
!
!
!
interface FastEthernet0/0
ip address 221.10.170.5 255.255.255.248
ip nat outside
speed 10
full-duplex
!
interface Serial0/0
no ip address
shutdown
no fair-queue
!
interface FastEthernet0/1
ip address 192.168.1.1 255.255.255.0
ip nat inside
speed 100
full-duplex
!
interface Serial0/1
no ip address
shutdown
!
ip nat pool net327 221.10.170.5 221.10.170.5 netmask 255.255.255.248
ip nat inside source list 1 pool net327 overload
no ip classless
ip route 0.0.0.0 0.0.0.0 221.10.170.1
ip http server
!
access-list 1 permit 192.168.1.0 0.0.0.255
!
line con 0
line aux 0
line vty 0 4
login
!
end
NIC327#
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
- 28.
- 29.
- 30.
- 31.
- 32.
- 33.
- 34.
- 35.
- 36.
- 37.
- 38.
- 39.
- 40.
- 41.
- 42.
- 43.
- 44.
- 45.
- 46.
- 47.
- 48.
- 49.
- 50.
- 51.
- 52.
- 53.
- 54.
- 55.
- 56.
- 57.
- 58.
- 59.
- 60.
- 61.
- 62.
以上就是cisco 2600 dhcp的具体配置内容。我这个路由器是用来做实验的,所以如果你想攻击我的路由器,那是在做无用功的。siling在此先做声明。这个DHCP是很精简的了。