Difference between revisions of "OpenWRT: Flash Buffalo WZRHP300NH2 di Ubuntu 16.04"

From OnnoWiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Sumber: http://wiki.openwrt.org/toh/buffalo/whr-hp-g300n
 
Sumber: http://wiki.openwrt.org/toh/buffalo/whr-hp-g300n
 +
 +
Download firmware dari
 +
 +
https://downloads.openwrt.org/releases/19.07.7/targets/ar71xx/generic/
 +
https://downloads.openwrt.org/releases/19.07.7/targets/ar71xx/generic/openwrt-19.07.7-ar71xx-generic-wzr-hp-g300nh2-squashfs-tftp.bin
 +
 +
wget https://downloads.openwrt.org/releases/19.07.7/targets/ar71xx/generic/openwrt-19.07.7-ar71xx-generic-wzr-hp-g300nh2-squashfs-tftp.bin
  
 
Install
 
Install
  
 
  sudo su
 
  sudo su
  apt-get install curl
+
apt update
 +
  apt -y install curl
  
 
Buat Script
 
Buat Script
Line 14: Line 22:
 
  ifconfig enp3s0 192.168.11.2
 
  ifconfig enp3s0 192.168.11.2
 
  arp -s 192.168.11.1 02:aa:bb:cc:dd:1a
 
  arp -s 192.168.11.1 02:aa:bb:cc:dd:1a
  curl -T openwrt-19.07.0-ar71xx-generic-wzr-hp-g300nh2-squashfs-tftp.bin  tftp://192.168.11.1 &
+
  curl -T openwrt-19.07.7-ar71xx-generic-wzr-hp-g300nh2-squashfs-tftp.bin  tftp://192.168.11.1 &
  
 
Buat Script
 
Buat Script

Latest revision as of 07:42, 24 May 2021

Sumber: http://wiki.openwrt.org/toh/buffalo/whr-hp-g300n

Download firmware dari

https://downloads.openwrt.org/releases/19.07.7/targets/ar71xx/generic/
https://downloads.openwrt.org/releases/19.07.7/targets/ar71xx/generic/openwrt-19.07.7-ar71xx-generic-wzr-hp-g300nh2-squashfs-tftp.bin
wget https://downloads.openwrt.org/releases/19.07.7/targets/ar71xx/generic/openwrt-19.07.7-ar71xx-generic-wzr-hp-g300nh2-squashfs-tftp.bin

Install

sudo su
apt update
apt -y install curl

Buat Script

vi buatflashbuffalo.sh

Isi dengan

ifconfig enp3s0 192.168.11.2
arp -s 192.168.11.1 02:aa:bb:cc:dd:1a
curl -T  openwrt-19.07.7-ar71xx-generic-wzr-hp-g300nh2-squashfs-tftp.bin  tftp://192.168.11.1 &

Buat Script

vi setip.sh

Isi dengan

#!/bin/bash

while [ true ];
do
ifconfig enp3s0 192.168.11.2
arp -s 192.168.11.1 02:aa:bb:cc:dd:1a
done


Save script di tempat firmware openwrt tersebut berada.

chmod 777 pada script

chmod 777 *sh


Save script di tempat firmware openwrt tersebut berada.

  • Matikan Buffalo
  • Masukan kabel LAN PC ke LAN4 Buffalo yang pas sebelah Internet.
  • Masuk ke folder tempat image openwrt berada.
  • Jadi superuser
 sudo su
  • Jalankan
./setip.sh &
./buatflashbuffalo.sh
  • Masukan power Buffalo

Akan tampak pada layar

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6656k    0     0  100 6656k      0   336k  0:00:19  0:00:19 --:--:--  483k
100 6656k    0     0  100 6656k      0   336k  0:00:19  0:00:19 --:--:--  336k

Jika kita cek arp -n akan tampak

arp -n
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.11.1             ether   02:aa:bb:cc:dd:1a   CM                    eth0


Referensi

Pranala Menarik

Build Firmware

IPv6

Flash Firmware

Misc

UBNT