You are on page 1of 3

CISCO 2800 ���� DHCP2008��08��04�� ����һ 06:58 P.M.

DHCP���÷���

1. �����Զ������IP��ַ��Χ
ip dhcp excluded-address 10.1.1.1
10.1.1.19 //����10.1.1.1��10.1.1.19��IP��ַ��� �������
2. ����DHCP��ַ��
ip dhcp pool global //������������DHCP��ַ�‫����ص‬
network 10.1.0.0
255.255.0.0//��������IP��ַ��Χ��������10.1.0.0������е�IP��ַ��ǰ�����ķ��Զ������ַ���⣩
3. ����DHCP������Ϣ
domain-name client.com//Ϊ�ͻ����������‫׺‬
dns-server 10.1.1.1 10.1.1.2//Ϊ�ͻ�������DNS������ĵ�ַ��������10.1.1.1��10.1.1.2
netbios-name-server 10.1.1.5
10.1.1.6//Ϊ�ͻ�������WINS�������ַ��������10.1.1.5��10.1.1.6
netbios-node-type h-node//Ϊ�ͻ������ý ‫�ڵ‬ģʽ��Ӱ����ƽ��͵�˳��
��h��node������
�wins
� ����������
‫� ׺‬
default-router 10.1.0.100 10.1.0.101//Ϊ�ͻ�������Ĭ�����
4. ������Լ����
lease 8//������Լʱ��Ϊ8��
5.��ʱ��������ҪΪDHCP�����������ӵ�ַ�‫���������أ‬ϣ��1 0.1.1.0/24 �����ε Ŀ ͻ �������Ϊ 1 0 .1.1.100
�������������ã�
ip dhcp pool subglobal
network 10.1.1.0 255.255.255.0// global���ӵ�ַ�‫�����أ‬global��������ѡ��
default-router 10.1.1.100 10.1.1.101 //Ϊ�ͻ�������Ĭ�����
6. ��‫�ص‬DHCP��������
no service dhcp //��DHCP����
show ip dhcp binding//��ʾ��ַ�������
show ip dhcp conflict //��ʾ��ַ��ͻ���

DHCP���ù��

ADSLrouter# config t

ADSLrouter(config)# ip dhcp pool shenyang

ADSLrouter(dhcp-config)# network 192.168.1.0 255.255.255.0

ADSLrouter(dhcp-config)# dns-server 192.168.1.1 202.96.64.68 202.96.69.38

ADSLrouter(dhcp-config)# default-router 192.168.1.1

ADSLrouter(dhcp-config)# exit

ADSLrouter(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.19


(����IP��ַ�Ρ�������DHCP����)

����ʵ��

ADSLrouter#show run
Building configuration...

Current configuration : 1528 bytes


!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname ADSLrouter
!
boot-start-marker
boot system flash:c2800nm-ipbase-mz.124-6.T11.bin
boot-end-marker
!
enable password cisco
!
no aaa new-model
!
resource policy
!
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.19
!
ip dhcp pool shenyang
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.1 202.96.64.68 202.96.69.38
lease 2
!
!
vpdn enable
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip tcp adjust-mss 1452
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface ATM0/0/0
no ip address
no atm ilmi-keepalive
bundle-enable
dsl operating-mode auto
!
interface ATM0/0/0.1 point-to-point
no snmp trap link-status
pvc 8/35
pppoe-client dial-pool-number 1
!
!
interface Dialer1
mtu 1492
ip address negotiated
ip nat outside
encapsulation ppp
dialer pool 1
ppp authentication pap chap callin
ppp chap hostname sy_jcfw210
ppp chap password 0 123456
ppp pap sent-username sy_jcfw210 password 0 123456
!
ip route 0.0.0.0 0.0.0.0 Dialer1
!
ip http server
ip nat inside source list 1 interface Dialer1 overload
!
access-list 1 permit any
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
password cisco
login
line vty 5 15
password cisco
login
!
scheduler allocate 20000 1000
!
end

ADSLrouter#

You might also like