交換機如何配置DHCP中繼,怎樣在三層交換機上配置DHCP中繼

2021-05-14 14:21:08 字數 5385 閱讀 7734

1樓:中兵勘察海外部

你啥交換機,一般的交換機不用設定這個.....

2樓:匿名使用者

[huawei] dhcp server group dhcpgroup1

[huawei-dhcp-server-group-dhcpgroup1] dhcp-server 20.0.0.1

[huawei-dhcp-server-group-dhcpgroup1] dhcp-server 20.0.0.2

[huawei-dhcp-server-group-dhcpgroup1] quit

[huawei] vlan 10

[huawei-vlan10] quit

[huawei] dhcp enable

[huawei] inte***ce vlanif 10

[huawei-vlanif10] ip address 10.10.10.1 24

[huawei-vlanif10] dhcp select relay

[huawei-vlanif10] dhcp relay server-select dhcpgroup1

[huawei-vlanif10] quit

怎樣在三層交換機上配置dhcp中繼

3樓:匿名使用者

具體型號具體對待,實在玩不轉就諮詢廠商麼,一般像華為和思科也可以直接諮詢當地經銷商,他們也會幫忙的

4樓:匿名使用者

cisco:

ip help-address x.x.x.x //dhcp伺服器地址

h3c:

全域性:dhcp-server groupno ip ip-address[ipaddress-list]

介面:dhcp-server groupno

關於交換機做dhcp中繼

5樓:姚澄邰雪帆

關閉dhcp,由上層路由器分配ip,上級路由器的接該交換機的普通lan口

h3c交換機如何配置dhcp伺服器、dhcp中繼、dai和ipsg?

6樓:匿名使用者

我吧我做過來的配置

直源接發給你吧,但是,朋友你的bai給點分。

交換du機配置dhcp

dhcp server ip-pool 1 :配zhi置dhcp組1

network 172.15.1.0 mask 255.255.255.0 :配置地址池dao

gateway-list 172.15.1.254 :配置閘道器

dns-list 202.103.44.150 202.103.24.68 :配置dns

expired day 10 :配置dhcp過期時間(10天)

配置dhcp中繼

# dhcp-server 1 ip 192.168.3.1

inte***ce vlan-inte***ce10

ip address 172.16.10.254 255.255.255.0

dhcp-server 1

7樓:匿名使用者

什麼型號的華三裝置?

哪位懂華為交換機dhcp中繼**配置方法

8樓:

配置裝置作為dhcp中繼示例(中繼與伺服器處於同一網路)

組網需求

如圖1所示,某企業部署一臺dhcp伺服器(switchb),希望為企業內終端動態分配ip地址,終端與dhcp伺服器部署在不同網段。

圖1 配置裝置作為dhcp中繼組網圖

配置思路

配置裝置作為dhcp中繼的配置思路如下:

在switcha上配置dhcp中繼,裝置作為dhcp中繼**終端與dhcp伺服器間的dhcp報文,從而實現dhcp伺服器為終端分配ip地址。

dhcp伺服器(switchb)以s2750&s5700&s6720系列交換機為例。

操作步驟

在switcha上配置dhcp中繼。

# 配置介面加入vlan。

system-view

[huawei] sysname switcha

[switcha] vlan batch 100 200

[switcha] inte***ce gigabitethernet 0/0/2

[switcha-gigabitethernet0/0/2] port link-type hybrid

[switcha-gigabitethernet0/0/2] port hybrid pvid vlan 100

[switcha-gigabitethernet0/0/2] port hybrid untagged vlan 100

[switcha-gigabitethernet0/0/2] quit

[switcha] inte***ce gigabitethernet 0/0/1

[switcha-gigabitethernet0/0/1] port link-type hybrid

[switcha-gigabitethernet0/0/1] port hybrid pvid vlan 200

[switcha-gigabitethernet0/0/1] port hybrid untagged vlan 200

[switcha-gigabitethernet0/0/1] quit

[switcha] inte***ce vlanif 200

[switcha-vlanif200] ip address 10.10.20.1 24

[switcha-vlanif200] quit

# 在介面下使能dhcp中繼功能。

[switcha] dhcp enable

[switcha] inte***ce vlanif 100

[switcha-vlanif100] ip address 10.20.20.1 24

[switcha-vlanif100] dhcp select relay

[switcha-vlanif100] dhcp relay server-ip 10.10.20.2

[switcha-vlanif100] quit

在switcha上配置預設路由。

[switcha] ip route-static 0.0.0.0 0.0.0.0 10.10.20.2

在switchb上配置基於全域性地址池的dhcp伺服器功能。

# 使能dhcp服務。

system-view

[huawei] sysname switchb

[switchb] dhcp enable

# 配置介面vlanif200工作在全域性地址池模式。

[switchb] vlan 200

[switchb-vlan200] quit

[switchb] inte***ce gigabitethernet 0/0/1

[switchb-gigabitethernet0/0/1] port link-type hybrid

[switchb-gigabitethernet0/0/1] port hybrid pvid vlan 200

[switchb-gigabitethernet0/0/1] port hybrid untagged vlan 200

[switchb-gigabitethernet0/0/1] quit

[switchb] inte***ce vlanif 200

[switchb-vlanif200] ip address 10.10.20.2 24

[switchb-vlanif200] dhcp select global

[switchb-vlanif200] quit

[switchb] ip pool pool1

[switchb-ip-pool-pool1] network 10.20.20.0 mask 24

[switchb-ip-pool-pool1] gateway-list 10.20.20.1

[switchb-ip-pool-pool1] option121 ip-address 10.10.20.0 24 10.20.20.1

[switchb-ip-pool-pool1] quit

在switchb上配置預設路由。

[switchb] ip route-static 0.0.0.0 0.0.0.0 10.10.20.1

驗證配置結果。

# 在switcha上執行命令display dhcp relay inte***ce vlanif 100命令用來檢視dhcp中繼的配置資訊。

[switcha] display dhcp relay inte***ce vlanif 100

dhcp relay agent running information of inte***ce vlanif100 :

server ip address [00] : 10.10.20.2

gateway address in use : 10.20.20.1

# 在switchb上使用display ip pool name pool1命令用來檢視ip地址池的分配情況,「used」欄位表示已經分配出去的ip地址數量。

[switchb] display ip pool name pool1

pool-name      : pool1

pool-no        : 0

lease          : 1 days 0 hours 0 minutes

domain-name    : -

option-code    : 121

option-subcode : --

option-type    : hex

option-value   : 18640a1414141401

dns-server0    : -

nbns-server0   : -

netbios-type   : -

position       : local           status           : unlocked

gateway-0      : 10.20.20.1

network        : 10.20.20.0

mask           : 255.255.255.0

vpn instance   : --

start           end     total  used  idle(expired)  conflict  disable

10.20.20.1    10.20.20.254   253     1        252(0)         0        0

思科交換機DHCP某個vlan下配置還是配置後應用於某v

配置dhcp不是在某個vlan下配置,也不是應用到某個vlan下的,更不會說是埠下了。第一步 配置地址池ip dhcp pool name work ipaddress maskdefault route ipaddressdns server ipaddress ipaddress ipaddre...

h3c交換機路由器如何配置dhcp

如果你 work了192.168.1.0網段 那麼想dhcp起作用的話你裝置上就得有處於192.168.1.0網段的埠,那樣的話路由器收到dhcp請求後才會應答 另外你還需要配置預設閘道器 dns 這樣才能保證客戶端能上網 h3c 配置公司網路dhcp問題解答?怎麼配置路由器 交換機的配置 具體步驟...

交換機配置

router conf t router config hostname r1 r1 config int fastethernet 0 0 r1 config if ip address 10.1.1.1 255.255.255.0 r1 config if no shutdown r1 conf...