During network construction, its planning is particularly important. For the configuration of cisco 2600 dhcp, we have made a simple design here. If there is no document to plan the DHCP you want to do. Even if it is just a piece of paper, it is recommended that you plan it first, or there will be problems when configuring it later. Although I can find a lot of DHCP on the Internet, it is much more detailed than mine, but I actually implemented it.
Plan: Use 221.10.170.5 as the public IP address for export. 192.168.1.0 implements Intranet and dynamic NAT for address translation. You can use DHCP to automatically allocate addresses!
Cisco 2600 dhcp configuration command:
- 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#
The above is the specific configuration of cisco 2600 dhcp. My vro is used for experiments, so if you want to attack my vro, it is useless. The siling statement is made here. This DHCP is very streamlined.