Switch: Huawei Initial Config
Jump to navigation
Jump to search
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
- Menghapus hostname
undo sysname
Configure Username dan Password
system-view aaa local-user admin password irreversible-cipher admin@1234 local-user admin privilege level 15 local-user admin service-type ssh telnet quit
Configure Login Banner=
Menampilkan pesan di awal halaman login header harus diawali dan diakhiri dengan "%"
system-view header login information %Hanya Untuk Sysadmin Sinyalku!! Jika tidak silahkan meninggalkan halaman ini% quit
Configure TELNET
system-view telnet server enable user-interface vty 0 4 authentication-mode aaa protocol inbound telnet quit aaa local-user ibm password chiper ibm@123 local-user ibm service-type terminal telnet local-user ibm privilege level 15 local-user ibm wrong-password retry-interval 5 retry-time 3 block-time 5 quit
Configure SSH
system-view rsa local-key-pair create stelnet server enable ssh server authentication-retries 2 ssh server timeout 120 user-interface con 0 authentication-mode password set authentication password cipher ibm@1234 quit user-interface vty 0 4 user privilege level 15 protocol inbound ssh quit ssh user ibm authentication-type password ssh user ibm service-type stelnet ssh client first-time enable aaa local-user ibm service-type ssh local-user ibm privilege level 15 local-aaa-user wrong-password retry-interval 5 retry-time 3 block-time 5 quit
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 vlan 10 description Management name Management quit interface vlanif 10 ip address 192.168.10.1 255.255.255.0 description Management undo shutdwon quit
Atur Gateway
ip route-static 0.0.0.0 0.0.0.0 192.168.10.254
Configure the Trunk and Access Port
- Melihat Deskripsi Interface
dis int des display interface description
Tipe Trunk
system-view interface XGigabitEthernet0/0/1 port link-type trunk port trunk allow-pass 10 20 100 200 description Uplink undo shutdown quit
- Melihat konfigurasi Interface
display current-configuration int XGigabitEthernet0/0/1
- Menghapus VLAN ID
Asumsi yang akan dihapus adalah VLAN 200
system-view interface XGigabitEthernet0/0/1 port link-type trunk undo port trunk allow-pass 200 q
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