HCL模擬器配置DHCP

2021-09-27 04:57:38 字數 3624 閱讀 3417

實驗1:

實驗拓撲

配置步驟(在路由器上配置)

(1) # 配置介面的 ip 位址。

system-view

[h3c] inte***ce g 0/0

[[h3c-gigabitethernet0/0]] ip address 192.168.1.254 24

[[h3c-gigabitethernet0/0]] quit

(2)# 啟用 dhcp 服務。

[h3c] dhcp enable

(4)# 配置 dhcp 位址池 0,採用動態繫結方式分配 ip 位址。

可分配的網段為 192.168.1.0/24,租約有效期限為 10 天,dns 伺服器位址為 192.168.1.10。

[h3c] dhcp server ip-pool 0

[h3c-dhcp-pool-0] network 192.168.1.0 mask 255.255.255.0

[h3c-dhcp-pool-0] expired day 10

[h3c-dhcp-pool-0] dns-list 192.168.1.10

[h3c-dhcp-pool-0] gateway-list 192.168.1.254

[h3c-dhcp-pool-0] quit

實驗2:

實驗拓撲

這個任務主要是做dhcp中繼。

dhcp伺服器在路由器上,而swa上有3個vlan,分屬於3個不同網段,

dhcp的請求報文是廣播,因此必須在swa上設定中繼才能夠傳到路由器。

配置步驟

(1) # 配置路由器。

system-view

[h3c] inte***ce g 0/0

[[h3c-gigabitethernet0/0]] ip address 10.1.1.2 30

[[h3c-gigabitethernet0/0]] quit

[h3c] dhcp enable

[h3c] dhcp server ip-pool 1

[h3c-dhcp-pool-0] network 192.168.10.0 mask 255.255.255.0

[h3c-dhcp-pool-0] dns-list 8.8.8.8

[h3c-dhcp-pool-0] gateway-list 192.168.10.254

[h3c-dhcp-pool-0] quit

[h3c] dhcp server ip-pool 2

[h3c-dhcp-pool-0] network 192.168.20.0 mask 255.255.255.0

[h3c-dhcp-pool-0] dns-list 8.8.8.8

[h3c-dhcp-pool-0] gateway-list 192.168.20.254

[h3c-dhcp-pool-0] quit

[h3c] dhcp server ip-pool 3

[h3c-dhcp-pool-0] network 192.168.30.0 mask 255.255.255.0

[h3c-dhcp-pool-0] dns-list 8.8.8.8

[h3c-dhcp-pool-0] gateway-list 192.168.30.254

[h3c-dhcp-pool-0] quit

[h3c]ip route-static 192.168.0.0 16 10.1.1.1

(2)# 配置 swa交換機。

system-view

[h3c]vlan 10

[h3c-vlan10]quit

[h3c]vlan 20

[h3c-vlan20]quit

[h3c]vlan 30

[h3c-vlan30]quit

[h3c]inter range g 1/0/1 to g 1/0/5

[h3c-if-range]port link-type access

[h3c-if-range]port access vlan 10

[h3c-if-range]quit

[h3c]inter range g 1/0/6 to g 1/0/10

[h3c-if-range]port link-type access

[h3c-if-range]port access vlan 20

[h3c-if-range]quit

[h3c]inter range g 1/0/11 to g 1/0/15

[h3c-if-range]port link-type access

[h3c-if-range]port access vlan 30

[h3c-if-range]quit

[h3c]inter vlan 10

[h3c-vlan-inte***ce10]ip add 192.168.10.254 24

[h3c-vlan-inte***ce10]quit

[h3c]inter vlan 20

[h3c-vlan-inte***ce20]ip add 192.168.20.254 24

[h3c-vlan-inte***ce20]quit

[h3c]inter vlan 30

[h3c-vlan-inte***ce30]ip add 192.168.30.254 24

[h3c-vlan-inte***ce30]quit

[h3c]

[h3c]inter g 1/0/23

[h3c-gigabitethernet1/0/23]port link-m r

[h3c-gigabitethernet1/0/23]ip add 10.1.1.1 30

[h3c-gigabitethernet1/0/23]quit

(3)#配置dhcp中繼(swa交換機)

[h3c] dhcp enable

[h3c] inte***ce vlan-inte***ce 10

[h3c-vlan-inte***ce10] dhcp select relay

[h3c-vlan-inte***ce10] dhcp relay server-address 10.1.1.2

[h3c-vlan-inte***ce10] quit

[h3c] inte***ce vlan-inte***ce 20

[h3c-vlan-inte***ce20] dhcp select relay

[h3c-vlan-inte***ce20] dhcp relay server-address 10.1.1.2

[h3c-vlan-inte***ce20] quit

[h3c] inte***ce vlan-inte***ce 30

[h3c-vlan-inte***ce30] dhcp select relay

[h3c-vlan-inte***ce30] dhcp relay server-address 10.1.1.2

[h3c-vlan-inte***ce30] quit

使用HCL模擬器配置DHCP相關專案

實驗3 配置dhcp snooping用於隔絕不信任的埠。實驗拓撲圖如下 dhcp伺服器在路由器上,而swa上有3個vlan,分屬於3個不同網段,dhcp的請求報文是廣播,因此必須在swa上設定中繼才能夠傳到路由器。偽dhcp server已經配置好,將發布172.22.1.1 99的位址池,閘道器...

使用HCL模擬器配置vrrp

vrrp單備份組配置舉例 組網需求 host a 需要訪問 internet 上的 host b,host a 的預設閘道器為 10.1.1.111 24 當 switch a 正常工作時,host a 傳送給 host b 的報文通過 switch a 當 switch a 出現 故障時,host...

HBuilder配置模擬器

1.hbuilder點選執行 瀏覽器執行 設定web伺服器 2.點選 hbuilder 設定第三方的模擬器埠號和adb路徑 夜神模擬器 埠號 62001 海馬玩模擬器 埠號 26944 網易mumu模擬器埠號 7555 天天模擬器 埠號 6555 b.adb路徑,如我的mumu模擬器的路徑是c pr...