Skip to content

Instantly share code, notes, and snippets.

@macielportugal
Last active October 28, 2022 13:29
Show Gist options
  • Save macielportugal/3b6f44d786520876d1b056029f5d9755 to your computer and use it in GitHub Desktop.
Save macielportugal/3b6f44d786520876d1b056029f5d9755 to your computer and use it in GitHub Desktop.
Como resolver o problema das luzes sempre acesa no telefone da Cisco 7912
Meu telefone Cisco 7912 estava com a tela em branco e as luzes sempre acesas, o telefone não realiza o boot.
Eu resolvi este problema subindo um servidor DHCP Server + tftp usando dnsmasq no arch linux
Utilizando estes links como referencia
https://wiki.archlinux.org/title/Dnsmasq_(Portugu%C3%AAs)
https://bbs.archlinux.org/viewtopic.php?id=271778
https://itblog.su/downloads/cp7912r.zup
https://github.com/staskobzar/cisco_prov/blob/master/sip/Readme7912.txt
https://github.com/staskobzar/cisco_prov/tree/master/sip
sudo vim /etc/dnsmasq.conf
### DNSMASQ ARQUIVO ###
port=0
interface=enp3s0
bind-interfaces
dhcp-range=192.168.0.2,192.168.0.100,12h
dhcp-option=3,0.0.0.0
dhcp-option=6,0.0.0.0
dhcp-option=150,192.168.0.1
dhcp-option=,192.168.1.0/24,1.2.3.4
domain=teste.com.br
enable-tftp
tftp-root=/srv/tftp
tftp-secure
### DNSMASQ ARQUIVO ###
Configurei minha interface de rede enp3s0 para o ip 192.168.0.1
Minha pasta com os arquivos TFTP
cd /srv/tftp
❯ ls -la
total 660
drwxr-xr-x 1 dnsmasq dnsmasq 102 out 28 10:03 .
drwxr-xr-x 1 root root 32 out 28 09:54 ..
-rw-r--r-- 1 777 users 334421 out 28 09:55 CP7912080000SIP060111A.sbin
-rwxrwxrwx 1 dnsmasq dnsmasq 335194 out 28 10:03 cp7912r.zup
-rw-r--r-- 1 777 users 67 out 28 09:56 gkdefault.cfg
Depois de iniciar o serviço do dnsmasq usando sudo systemctl start dnsmasq
usei o comando sudo journalctl -fxeu dnsmasq.service para debugar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment