三层交换之动态dhcp的获取与分配!(H3C)

1.实验拓扑图:

clip_image002

2.三层交换配置:

[Quidway]vlan 10

[Quidway-vlan10]port e0/1

[Quidway-vlan10]vlan 100

[Quidway-vlan100]port e0/24

[Quidway-vlan100]int vlan 10

[Quidway-Vlan-interface10]ip add 192.168.10.254 ?

X.X.X.X IP mask

[Quidway-Vlan-interface10]ip add 192.168.10.254 255.255.255.0

[Quidway-Vlan-interface10]int vlan 100

[Quidway-Vlan-interface100]ip add 192.168.100.254 255.255.255.0

<Quidway>sys

进入系统视图, 键入Ctrl+Z退回到用户视图.

[Quidway]dhcp-server ?

INTEGER<0-19> DHCP 服务器的组号

detect 检测伪DHCP服务器

[Quidway]dhcp-server 1 ?

ip 指定IP地址

[Quidway]dhcp-server 1 ip ?

X.X.X.X DHCP 服务器组的第一个IP地址

[Quidway]dhcp-server 1 ip 192.168.100.100 ?

X.X.X.X DHCP 服务器组的第二个IP地址 //可设备份dhcp服务器

<cr>

[Quidway]dhcp-server 1 ip 192.168.100.100

[Quidway]int vlan 10

[Quidway-Vlan-interface10]d?

description dhcp-server display

[Quidway-Vlan-interface10]dhcp-server ?

INTEGER<0-19> DHCP 服务器的组号

[Quidway-Vlan-interface10]dhcp-server 1

3.DHCP服务器配置:

用防火墙作为dhcp服务器:

<H3C>display version

H3C Comware Software

Comware software, Version 3.40, Release 5102P02

Copyright (c) 2004-2009 Hangzhou H3C Technologies Co., Ltd.

All rights reserved.

Without the owner's prior written consent, no decompiling

nor reverse-engineering shall be allowed.

H3C SecPath F100-C uptime is 0 week, 0 day, 0 hour, 32 minutes

CPU type: Mips IDT RC32365 150MHz

64M bytes SDRAM Memory

8M bytes Flash Memory

Pcb Version:2.0

Logic Version:1.0

BootROM Version:1.17

[SLOT 0] 5FE (Hardware)2.0, (Driver)2.0, (Cpld)1.0

[SLOT 1] 1SE (Hardware)1.0, (Driver)1.0, (Cpld)1.0

进入系统视图, 键入Ctrl+Z退回到用户视图.

[H3C]dhcp enable

DHCP任务已经启动!

[H3C]dhcp ?

enable DHCP服务开启

relay DHCP中继

select 设置接口的DHCP报文处理模式

server DHCP服务器

[H3C]dhcp server ?

accounting 发送开始/停止计费信息

bims-server BIMS 服务器

detect 当地DHCP服务器自动检测

dns-list DNS 服务器

domain-name 域名

expired 动态用户的地址租约时间

forbidden-ip 被保留的地址范围

ip-pool 地址池

nbns-list NetBIOS(WINS)名字服务器

netbios-type NetBIOS节点类型

option 原DHCP options

ping 指定运行DHCP时PING的参数

relay DHCP中继

voice-config 184选项

[H3C]dhcp server ip-pool ?

STRING<1-35> 全局地址池名称

[H3C]dhcp server ip-pool gjp

[H3C-dhcp-pool-gjp]network 192.168.10.0    //分配的地址范围

[H3C-dhcp-pool-gjp]gateway-list 192.168.10.254 //分配的网关

[H3C-dhcp-pool-gjp]dns-list 222.85.85.85    //分配的DNS

[H3C-dhcp-pool-gjp]quit

[H3C]ip route-static 0.0.0.0 0 192.168.100.254   //默认网关

[H3C]ping 192.168.100.254

PING 192.168.100.254: 56 字节,按CTRL_C 中断.

答复从 192.168.100.254: 字节数=56 顺序号=1 生存时间=255 时间 = 13 毫秒

答复从 192.168.100.254: 字节数=56 顺序号=2 生存时间=255 时间 = 5 毫秒

答复从 192.168.100.254: 字节数=56 顺序号=3 生存时间=255 时间 = 7 毫秒

4. 客户机动态获取ip

用一台pc 自动获取ip,在dos下,执行:ipconfig /release 释放已获得的ip,用ipconfig /renew 重新获取新的ip !

5.查看客户机获取IP的情况:

[H3C]display dhcp server ?

conflict DHCP 地址冲突

expired DHCP 超期地址

free-ip 空闲地址

ip-in-use DHCP 地址绑定

statistics DHCP服务器统计信息

tree 打印地址池树结构

[H3C]display dhcp server ip-in-use ?

all 所有信息

interface 接口

ip 特定IP

pool 地址池

[H3C]display dhcp server ip-in-use all

Global pool:

IP address Client-identifier/ Lease expiration Type

Hardware address

192.168.10.1 0026-9e81-2692 Sep 9 2012 10:51:32 AM Auto:COMMITTED

Interface pool:

IP address Client-identifier/ Lease expiration Type

Hardware address

--- total 1 entry ---

你可能感兴趣的:(border,Alt,target,blank,交换)