接口模式和全局模式區別服務器
接口一旦換接口就要從新配置 全局的不用網絡
接口設置
開啓DHCP
進接口
開啓dhcp select interfaceide
全局的須要
開啓dhcp
建池和池名稱
設置網絡段blog
進入接口設置ip address 192.168.10.1 24 設置ip地址
接口上dhcp select global 設置DHCP全局模式dns
reset save
回車
輸入y
reboot
輸入n
輸入y
重啓後就恢復默認設置了
默認用戶名密碼
admin
Admin@huawei接口
<DHCP>reset save y
<DHCP>reboot n y
恢復出廠設置ip
[DHCP]undo ip pool p4it
[DHCP]int vlanif 10
[DHCP-Vlanif10]dhcp select interface //設置dhcp 接口模式
[DHCP-Vlanif10]int vlanif 20
[DHCP-Vlanif20]dhcp select interface
[DHCP-Vlanif20]int vlanif 30
[DHCP-Vlanif30]dhcp select interface
[DHCP-Vlanif30]int vlanif 40
[DHCP-Vlanif40]dhcp select interface
[DHCP-Vlanif40]q
[DHCP]dis current-configuration io
[Huawei]sysname dhcp
[dhcp]vlan batch 10 20 30 40 建立vlan
Info: This operation may take a few seconds. Please wait for a moment...done.
[dhcp]port-group 1 建立組
[dhcp-port-group-1]group-member g0/0/1 g0/0/2 加入接口
[dhcp-port-group-1]port link-type trunk 設置trunk模式
[dhcp-GigabitEthernet0/0/1]port link-type trunk
[dhcp-GigabitEthernet0/0/2]port link-type trunk
[dhcp-port-group-1]port trunk allow-pass vlan all 設置所有vlan經過class
[dhcp-GigabitEthernet0/0/1]port trunk allow-pass vlan all[dhcp-GigabitEthernet0/0/2]port trunk allow-pass vlan all[dhcp-port-group-1]q[dhcp]dhcp enable 啓用DHCPInfo: The operation may take a few seconds. Please wait for a moment.done.[dhcp]ip pool p1 建立地址池p1Info:It's successful to create an IP address pool.[dhcp-ip-pool-p1]network 192.168.10.0 mask 24 設置網絡段[dhcp-ip-pool-p1]gateway-list 192.168.10.1 設置網關[dhcp-ip-pool-p1]dns-list 1.1.1.1 設置dns服務器地址[dhcp-ip-pool-p1]lease day 1 設置租約時間[dhcp-ip-pool-p1]q[dhcp]int vlanif 10 進入vlanif 10 虛擬接口 [dhcp-Vlanif10]ip address 192.168.10.1 24 設置ip地址[dhcp-Vlanif10]dhcp select global 設置DHCP全局模式後面設置 p2 p3 p4 vlanif 20 30 40 所有設置成功 完結