H3C ——DHCP配置实列

实现场景

公司网络想实现一部分VLAN使用dhcp服务器动态分配ip地址,另一部分使用核心交换机做dhcp服务器为客户端分配ip地址,本实列信息如下:

VLAN50为管理vlan,vlan41—vlan45使用核心交换作为dhcp服务器,vlan46—vlan48使用dhcp服务器10.100.44.2分配ip地址。

配置信息:

<H3C>dis cu

#

version 5.20, Release 2202

#

sysname H3C

#

dhcprelay server-group 1 ip 10.100.44.2(配置DHCP服务器地址)

#

irfmac-address persistent timer

irfauto-update enable

undoirf link-delay

#

domain default enable system

#

telnet server enable

#

undoip ttl-expires

#

vlan 1

#

vlan 41 to 48

#

vlan 50 to 58

#

vlan 100

#

vlan 200

#

vlan 600

#

vlan 800

#

radius scheme system

server-type extended

primary authentication 127.0.0.1 1645

primary accounting 127.0.0.1 1646

user-name-format without-domain

#

domain system

access-limit disable

state active

idle-cut disable

self-service-url disable

domain trc.beyond

access-limit disable

state active

idle-cut disable

self-service-url disable

#

dhcp server ip-pool 41(创建DHCP地址池)

network 10.100.41.0 mask 255.255.255.0(配置DHCP动态地址分配范围)

gateway-list 10.100.41.1(配置DHCP客户端网关地址)

dns-list 10.100.44.2 114.114.114.114(配置DHCP客户端DNS相关信息)

#

dhcp server ip-pool 42

network 10.100.42.0 mask 255.255.255.0

gateway-list 10.100.42.1

dns-list 10.100.44.2 114.114.114.114

#

dhcp server ip-pool 43

network 10.100.43.0 mask 255.255.255.0

gateway-list 10.100.43.1

dns-list 10.100.44.2 114.114.114.114

#

dhcp server ip-pool 44

network 10.100.44.0 mask 255.255.255.0

gateway-list 10.100.44.1

dns-list 10.100.44.2 114.114.114.114

#

dhcp server ip-pool 45

network 10.100.45.0 mask 255.255.255.0

gateway-list 10.100.45.1

dns-list 10.100.44.2 114.114.114.114

#

dhcp server ip-pool -pool

#

user-group system

#

local-user admin

password cipher =HKQ#]ZB:0;Q=^Q`MAF4<1!!

authorization-attribute level 3

service-type telnet

local-user super

password cipher =HKQ#]ZB:0;Q=^Q`MAF4<1!!

authorization-attribute level 3

service-type telnet

#

interface NULL0

#

interface Vlan-interface41

ipaddress 10.100.41.1 255.255.255.0

#

interface Vlan-interface42

ipaddress 10.100.42.1 255.255.255.0

#

interface Vlan-interface43

ipaddress 10.100.43.1 255.255.255.0

#

interface Vlan-interface44

ipaddress 10.100.44.1 255.255.255.0

#

interface Vlan-interface45

ipaddress 10.100.45.1 255.255.255.0

#

interface Vlan-interface46

ipaddress 10.100.46.1 255.255.255.0(配置VLAN接口地址)

dhcpselect relay(配置VLAN接口46工作在DHCP中继模式)

dhcprelay server-select 1(配置VLAN接口46对应DHCP服务器组1)

#

interface Vlan-interface47

ipaddress 10.100.47.1 255.255.255.0

dhcpselect relay

dhcprelay server-select 1

#

interface Vlan-interface48

ipaddress 10.100.48.1 255.255.255.0

dhcpselect relay

dhcprelay server-select 1

#

interface Vlan-interface50

ipaddress 10.100.50.40 255.255.255.0

#

interface GigabitEthernet1/0/1

portaccess vlan 41

#

interface GigabitEthernet1/0/2

portaccess vlan 41

#

interface GigabitEthernet1/0/3

portaccess vlan 41

#

interface GigabitEthernet1/0/4

portaccess vlan 41

#

interface GigabitEthernet1/0/5

portaccess vlan 41

#

interface GigabitEthernet1/0/6

portaccess vlan 42

#

interface GigabitEthernet1/0/7

portaccess vlan 42

#

interface GigabitEthernet1/0/8

portaccess vlan 42

#

interface GigabitEthernet1/0/9

portaccess vlan 42

#

interface GigabitEthernet1/0/10

portaccess vlan 42

#

interface GigabitEthernet1/0/11

portaccess vlan 43

#

interface GigabitEthernet1/0/12

portaccess vlan 43

#

interface GigabitEthernet1/0/13

portaccess vlan 43

#

interface GigabitEthernet1/0/14

portaccess vlan 43

#

interface GigabitEthernet1/0/15

portaccess vlan 43

#

interface GigabitEthernet1/0/16

portaccess vlan 44

#

interface GigabitEthernet1/0/17

portaccess vlan 44

#

interface GigabitEthernet1/0/18

portaccess vlan 44

#

interface GigabitEthernet1/0/19

portaccess vlan 44

#

interface GigabitEthernet1/0/20

portaccess vlan 44

#

interface GigabitEthernet1/0/21

portaccess vlan 45

#

interface GigabitEthernet1/0/22

portaccess vlan 800

#

interface GigabitEthernet1/0/23

portaccess vlan 50

#

interface GigabitEthernet1/0/24

portlink-type trunk

porttrunk permit vlan all

porttrunk pvid vlan 50

#

interface GigabitEthernet1/0/25

shutdown

#

interface GigabitEthernet1/0/26

shutdown

#

interface GigabitEthernet1/0/27

shutdown

#

interface GigabitEthernet1/0/28

shutdown

#

iproute-static 0.0.0.0 0.0.0.0 10.100.50.130

iproute-static 10.100.51.0 255.255.255.0 10.100.50.2

iproute-static 10.100.52.0 255.255.255.0 10.100.50.2

iproute-static 10.100.53.0 255.255.255.0 10.100.50.2

iproute-static 10.100.54.0 255.255.255.0 10.100.50.2

iproute-static 10.100.55.0 255.255.255.0 10.100.50.2

iproute-static 10.100.56.0 255.255.255.0 10.100.50.10

iproute-static 10.100.57.0 255.255.255.0 10.100.50.10

iproute-static 10.100.58.0 255.255.255.0 10.100.50.10

#

dhcpenable(全局使能DHCP)

#

user-interface aux 0 8

user-interface vty 0 4

userprivilege level 3

setauthentication password cipher =HKQ#]ZB:0;Q=^Q`MAF4<1!!

protocol inbound telnet

#

return

时间: 2024-10-12 16:37:44

H3C ——DHCP配置实列的相关文章

H3C DHCP配置

DHCP 服务器中的地址池以"树"状结构进行组织.树根是自然网段的地址,每个分支是该网段的子网地址,叶节点是手工绑定的客户机地址.这种树状结构实现了配置的继承性,即子网(儿子节点)配置继承了自然网段(父节点)的配置,每个客户机(孙子节点)的配置同样继承了子网(儿子节点)配置的参数.因此,对于一些通用的参数(如域名),只需要在自然网段或者子网上进行配置即可(地址租用有效期限是不具有继承关系的)display dhcp server tree 命令用来显示DHCP 地址池的树状结构信息,并

H3C路由器配置示列一

说明: 如上图所示,192.168.0.0网段是总公司的网络,192.168.3.0和192.168.4.0网段是当前自己分公司的网络,且192.168.3.0是内网不能访问互联网,192.168.4.0网段是可以访问互联网的 要求: 目前需要192.168.3.0网段可以访问互联网,应该怎么做菜可以使得192.168.3.0网段可以访问互联网?[路由器R3是H3C路由器] 解决方法如下: 在两个交换机之间搭建一根网线,使得连成局域网(但是这局域网有两个网段),如果想192.168.3.0网段可

h3c acl配置一列

acl number 3004 rule 0 permit ip source 10.2.1.4 0 rule 1 deny ip source 192.168.1.91 0 rule 2 deny ip source 192.168.9.6 0 rule 3 deny ip source 192.168.1.94 0 rule 4 deny ip source 10.1.3.240 0 rule 5 permit ip source 10.2.1.40 0 rule 7 deny ip sou

H3C交换机配置DHCP

H3C>system-view 进入系统视图 [H3C]dhcp server ip-pool h3c 创建DHCP 地址池 [H3C-dhcp-pool-h3c]network 192.168.1.0 mask 255.255.255.0 指定可以分配的地址段 [H3C-dhcp-pool-h3c]gateway-list 192.168.1.1 指定网关,与lan口的地址一致 [H3C-dhcp-pool-h3c]dns-list 202.202.202.202 指定DNS server地址

使用H3C模拟器配置DHCP相关项目

试验1:使用DHCP协议自动给PC机分配IP地址.试验拓扑图如下:使用路由器作为DHCP服务器实验配置如下:(1) # 配置接口的 IP 地址.<H3C> system-view[H3C] interface g 0/0[[H3C-GigabitEthernet0/0]] ip address 192.168.1.254 24[[H3C-GigabitEthernet0/0]] quit(2)# 启用 DHCP 服务.[H3C] dhcp enable(3) # 配置不参与自动分配的 IP 地

H3C DHCP

DHCP的基本配置: 拓扑见QQ收藏: DHCP服务器的配置:[DHCP Server]int g0/0[DHCP Server-GigabitEthernet0/0]ip add 12.1.1.1 24[DHCP Server-GigabitEthernet0/0]un sh[DHCP Server]dhcp enable   开启DHCP功能[DHCP Server]dhcp server ip-pool H3C   定义地址池名为H3C [DHCP Server-dhcp-pool-H3C

H3C DHCP中继

ip relay-address ip-address   配置以太网口进行透传转发的辅助地址对于DHCP 中继来说,IP 辅助地址指定的是DHCP 服务器的地址配置辅助IP 地址后,从该接口上收到的广播报文,会发送到该服务器上去能够配置IP 辅助地址的接口应当支持广播方式每个接口最多可配置20 个辅助地址 ip relay protocol udp [ port ]  配置透传转发协议及其使用的端口号 在同一个设备上可以指定多组DHCP中继服务器 一个DHCP中继服务器组中可包含多个中继服务器

H3C防火墙配置

<H3C>sys [H3C]int g1/0/1 [H3C-GigabitEthernet1/0/1]ipadd 123.232.115.11 24 [H3C-GigabitEthernet1/0/1]qu [H3C]int g1/0/3 [H3C-GigabitEthernet1/0/3]ipadd 192.168.10.1 24 [H3C-GigabitEthernet1/0/3]qu [H3C]interfaceGigabitEthernet 1/0/1 [H3C-GigabitEthe

huawei DHCP 配置

常见的DHCP组网方式可分为两类:一种是DHCP服务器和客户端都在一个子网内,直接进行DHCP 协议的交互:第二种是DHCP 服务器和客户端分别处于不同的子网中,则必须通过DHCP 中继代理实现IP 地址的分配.无论那种情况下,DHCP 的配置都是相同的.1. 组网需求DHCP 服务器为同一网段中的客户端动态分配IP 地址,地址池网段10.1.1.0/24 分为两个网段:10.1.1.0/25 和10.1.1.128/25.DHCP 服务器两个Ethernet 接口地址分别为10.1.1.1/2