[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-GigabitEthernet1/0/1]nat outbound
[H3C]iproute-static 0.0.0.0 0 123.232.115.10
配置ACL 3000,定義規(guī)則:允許IP流量。
[H3C]acladvanced 3000
[H3C-acl-ipv4-adv-3000]rule permit ip
[H3C-acl-ipv4-adv-3000]qu
向安全域Untrust中添加接口GigabitEthernet1/0/1
[H3C]security-zone name Untrust
[H3C-security-zone-Untrust]import interfaceGigabitEthernet 1/0/1
[H3C-security-zone-Untrust]qu
向安全域Trust中添加接口GigabitEthernet1/0/3
[H3C]security-zone name Trust
[H3C-security-zone-Trust]import interfaceGigabitEthernet 1/0/3
[H3C-security-zone-Trust]qu
[H3C]zone-pair security source Trustdestination local
[H3C-zone-pair-security-Trust-Local]packet-filter3000
[H3C-zone-pair-security-Trust-Local]qu
[H3C]zone-pairsecurity source local destination Trust
[H3C-zone-pair-security-Local-Trust]packet-filter3000
[H3C-zone-pair-security-Local-Trust]qu
[H3C]zone-pair security source Trustdestination Untrust
[H3C-zone-pair-security-Trust-Untrust]packet-filter3000
[H3C-zone-pair-security-Trust-Untrust]qu
如果設(shè)備上多個(gè)端口加入同一個(gè)安全域,那么還需要加一條下面命令,否則同一個(gè)端口下面的終端之間是不能互通的。
[H3C]security-zone intra-zone default permit
DHCP配置:
[H3C]dhcp enable
[H3C]dhcp serverip-pool 10
[H3C-dhcp-pool-10]network192.168.10.20 mask 255.255.255.0
[H3C-dhcp-pool-10]gateway-list 192.168.10.1
[H3C-dhcp-pool-10]dns-list 202.102.152.3202.102.128.68
定義各DHCP地址池禁止分配的IP地址(開始~結(jié)束)
[H3C-dhcp-pool-10]dhcp server forbidden-ip 192.168.10.1 192.168.10.100
http配置:
[H3C]ip httpenable
[H3C]ip https enable
[H3C]local-useradmin
[H3C-luser-manage-admin]service-typehttp https
[H3C-luser-manage-admin]password simple 123456
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。