ensp dhcp配置實驗

2021-10-09 04:29:04 字數 2325 閱讀 7347

dhcp工作過程(如圖)

dhcp配置(如圖)

1,基於全域性配置dhcp

[huawei]dhcp enable                        開啟dhcp

[huawei]ip pool caiwubu 設定位址組名字

[huawei-ip-pool-caiwubu]network 192.168.1.0 mask 24 設定網段,設定掩碼

[huawei-ip-pool-caiwubu]gateway-list 192.168.1.254 設定閘道器

[huawei-ip-pool-caiwubu]dns-list 222.172.200.68 設定dsn

[huawei-ip-pool-caiwubu]lease day 3 設定更新租期

[huawei]inte***ce g0/0/0

[huawei-gigabitethernet0/0/0]ip add 192.168.1.254 24

huawei-gigabitethernet0/0/0]dhcp select global 在介面上啟用dhcp

2,基於介面配置dhcp

[huawei]dhcp enable 

[huawei]inte***ce g0/0/0

[huawei-gigabitethernet0/0/0]ip add 192.168.1.254 24

[huawei-gigabitethernet0/0/0]dhcp select inte***ce

[huawei-gigabitethernet0/0/0]dhcp server dns-list 222.172.200.68

[huawei-gigabitethernet0/0/0]dhcp server lease day 3

[huawei-gigabitethernet0/0/0]dhcp server excluded-ip-address 192.168.1.200

dhcp中繼配置(如圖)

3,配置dhcp中繼

r1配置

[huawei]dhcp enable

[huawei]inte***ce g0/0/0

[huawei-gigabitethernet0/0/0]ip add 10.10.10.1 24

[huawei-gigabitethernet0/0/0]dhcp select global

[[huawei]ip route-static 0.0.0.0 0 10.10.10.2

[huawei]ip pool caiwubu

[huawei-ip-pool-caiwubu]network 192.168.1.0 mask 255.255.255.0

[huawei-ip-pool-caiwubu]gateway-list 192.168.1.254

[huawei-ip-pool-caiwubu]dns-list 222.172.200.68

[huawei-ip-pool-caiwubu]excluded-ip-address 192.168.1.200

r2配置

[huawei]inte***ce g0/0/0

[huawei-gigabitethernet0/0/0]ip address 10.10.10.2 24

[huawei]inte***ce g0/0/1

[huawei-gigabitethernet0/0/1]ip address 192.168.1.254 24

huawei]dhcp enable

[huawei]inte***ce g0/0/1

awei-gigabitethernet0/0/1]dhcp relay server-ip 10.10.10.1

DHCP配置實驗

r1 router enable router configure terminal router config no ip domain lookup router config line console 0 router config line exec timeout 0 0 router c...

網路配置實驗

1.centos6 虛擬機器遷移後網絡卡名更改 2.ip位址指定 3.配置閘道器 1 修改配置檔案 etc sysconfig network scripts ifcfg eth0中gateway 指定。etc sysconfig network中新增gateway 兩項衝突時,以前者為準。2 重啟...

Hive配置實驗

wget解壓包 tar xvf apache hive 2.3.5 bin.tar.gz將解壓後的hive資料夾放到hadoop資料夾下 cd cloud hadoop 3.2.0 mv apache hive 2.3.5 bin 設定環境變數 vim bash profile新增以下內容 expo...