Last modified by Yu Pang Law on 2022/12/14 04:12

4 posts


Resetting password for Huawei Switch

  1. Set up console. Setting is 9600/8-N-1
  2. Power on the switch.
  3. Press "Ctrl-B" to enter BootROM Menu. The default password for BootROM menu is
  4. Press "7. Clear password for console user" and Type "Y"
  5. Then, you should see the menu again. This time, press "1. Boot with default mode"

Dec 14 2022

Using service RPM ping probe to detect link congestion

In Junos, we can use RPM (real-time performance monitoring) to monitor link quality.

  1. give a name to the ping probe and test name
    edit services rpm probe ping-probe test test-ping
  2. set probe type
    set probe-type icmp-ping
  3. set probe count for each test and interval between each ping (in second)
    set probe-count 10
    set probe-interval 1
  4. set source and target address (must be the interconnect IPs if you want to detect link quality)
    set target address
    set source address
  5. set the thresold for sucessful probe
    set thresolds total-loss 2
    set std-dev-rtt 50000

    where std-dev value is in micro second, not millisecond (1000 micro = 1 milli)


  1. log the result in a remote monitoring (Syslog) server for generating alerts.
    set system syslog host daemon any
    set system syslog host match rmopd

    where rmopd is the daemon name for ping probe

Dec 14 2022

Setting Up VLAN for ToR Switch (Junos)

  1. Set up all VLANs and assign VLAN to access port
    set vlan VLAN01 vlaid-id 1000
    set vlan VLAN01 interface ge-0/0/0
  2. Set the Trunk Port
    set interfaces ge-0/1/3 unit 0 family ethernet-switching port-mode trunk
    set interfaces ge-0/1/3 unit 0 family ethernet-switching vlan member [ VLAN01 VLAN02 VLAN03 ]
  3. Add a description to each ports
    set interface ge-0/0/0 description "Server Name A"
    set interface ge-0/0/1 description "Server Name B"
  4. Set the port speed and duplex mode
    set interfaces ge-0/0/0 ether-options speed 100m
    set interfaces ge-0/0/0 ether-options link-mode full-duplex

Dec 14 2022

Basic ToR Switch configuration for EX2200/EX3200 Switch

  1. Set Root password
    set system root-authentication plain-text-password
  2. Set Hostname, Timezone, nameserver, NTP
    set system host-name switch01
    set system time-zone Asia/Hong_Kong
    set system name-server
    set system ntp
  3. Enable SSH
    set system services ssh root-login allow
    set system services ssh protocol-version v2
    set system services ssh connection-limit 10
    set system services ssh rate-limit 20
  4. Set up remote central syslogging
    set system syslog host any error
  5. Set up snmp
    set snmp description "Rack Number XXX"
    set snmp location "Datacenter Name and Room Number"
    set snmp contact "Network Department contact"
    set snmp community SNMP-COMMUNITY authorization read-only
    set snmp health-monitor
  6. Set up management IP address and default route
    set interfaces me0 unit 0 family inet address
    set routing-options static route next-hop
Copyrighted by