====== HP/H3C/Huawei Switch Basic Config ======
只要是使用 Huawei CLI 介面皆可適用
===== Basic Config =====
* 基本設定(關於 IPv6 的部分請確認 firmware 有支援 v6 設定)
#
sysname ChangThisToSwitchName
#
dns resolve
dns server 8.8.8.8
dns server 8.8.4.4
dns server ipv6 2001:4860:4860::8888
#
ipv6 route-static :: 0 2001:288:FFFF:FFFF::1
#
interface Vlan-interface1
ip address 10.1.1.1 255.255.255.0
ipv6 address 2001:288:FFFF:FFFF:10:1:1:1/64
#
ntp-service unicast-server clock.stdtime.gov.tw
#
snmp-agent community read DontUserPublic
snmp-agent sys-info version v2c
#
ssh-server source-interface Vlan-interface1
#
telnet-server source-interface Vlan-interface1
#
ip route-static 0.0.0.0 0.0.0.0 10.1.1.254 preference 60
#
* Static Link-Agregationg
link-aggregation group 1 mode manual
interface Ethernet1/0/1
port link-aggregation group 1
#
interface Ethernet1/0/2
port link-aggregation group 1
#