Switch: Huawei Initial Config
Revision as of 20:27, 6 January 2026 by Ibm (talk | contribs) (→Configure the Trunk and Access Port)
Untuk menampilkan semua konfigurasi
display current-configuration
Untuk masuk ke mode konfig
system-view
Configure the Device Nama
Asumsi nama hostname SW-Sinyalku
sysname SW-Sinyalku
Configure the VLAN
Asumsi: ID VLAN = 10 Description = MGMT
system-view vlan 10 description MGMT quit
- Pastikan Uplink Port sudah di mode Trunk dan mengizinkan vlan 10
Asumsi interface uplink berada di XGigabitEthernet0/0/1
system-view interface XGigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 10 description **Uplink-to-Mikrolink** undo shutdown quit
- Melihat Konfigurasi Interface
display current-configuration interface XGigabitEthernet0/0/1
- Melihat status Interface
display interface XGigabitEthernet0/0/1
Configure the MGMT
Asumsi: IP Address = 192.168.10.1/24
system-view interface vlanif 10 ip address 192.168.10.1 255.255.255.0 quit
Configure the Trunk and Access Port
Tipe Trunk
system-view interface XGigabitEthernet0/0/1 port link-type trunk
Tipe Data Access
system-view interface GigabitEthernet0/0/1 port link-type access port default vlan 10 undo shutdown description kantor bendahara quit
- Melihat konfigurasi Interface
display current-configuration int gi0/0/1
Tipe Data Voice
system-view interface GigabitEthernet0/0/2 port link-type hybrid port hybrid untagged vlan 20 undo shutdown description kantor cs q
- Melihat konfigurasi Interface
dis current-configuration int gi0/0/2
Configure the default Route
ip route-static 0.0.0.0 0.0.0.0 <default gateway>
Asumsi IP Gateway = 192.168.10.254
system-view ip route-static 0.0.0.0 0.0.0.0 192.168.10.254
Configure the LACP
Create a LACP Eth-Trunk
interface Eth-Trunk <Trunk-ID> mode lacp-static
interface eth-trunk 1 mode lacp-static quit interface XGigabitEthernet0/0/2 eth-trunk 1 quit interface eth-trunk 1 port link-type trunk port trunk allow-pass vlan 10 undo shutdown quit
- Melihat status
display eth-trunk 1
- Jangan lupa untuk simpan konfigurasi yang telah dibuat
save y