Alat darah lngkap mcu ruang urine #6

Open
opened 2025-12-05 14:22:12 +07:00 by stephenk · 0 comments
Owner

IP nya tidak UP ketika alat off .. ini sdh sy setting ulang

  1. Perbarui /usr/local/bin/fix-net.sh (manual fix)

Buat/replace file dengan isi ini:

sudo tee /usr/local/bin/fix-net.sh > /dev/null <<'EOF'
#!/bin/bash

interface dan connection name sesuai output nmcli

IF=enp2s0
CON="Wired connection 1"

flush ARP / neighbour untuk interface

ip neigh flush dev "$IF"

flush route cache

ip route flush cache

(re-)bring up the connection (harus pakai nama koneksi)

nmcli connection up "$CON"

tampilkan status singkat

echo "Ran fix-net.sh: IF=$IF CON=$CON"
ip neigh show | sed -n '1,20p'
EOF

sudo chmod +x /usr/local/bin/fix-net.sh

Jalankan:

sudo /usr/local/bin/fix-net.sh

IP nya tidak UP ketika alat off .. ini sdh sy setting ulang 1) Perbarui /usr/local/bin/fix-net.sh (manual fix) Buat/replace file dengan isi ini: sudo tee /usr/local/bin/fix-net.sh > /dev/null <<'EOF' #!/bin/bash # interface dan connection name sesuai output nmcli IF=enp2s0 CON="Wired connection 1" # flush ARP / neighbour untuk interface ip neigh flush dev "$IF" # flush route cache ip route flush cache # (re-)bring up the connection (harus pakai nama koneksi) nmcli connection up "$CON" # tampilkan status singkat echo "Ran fix-net.sh: IF=$IF CON=$CON" ip neigh show | sed -n '1,20p' EOF sudo chmod +x /usr/local/bin/fix-net.sh Jalankan: sudo /usr/local/bin/fix-net.sh
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stephenk/Issue_KD#6