Mudanças entre as edições de "Curso Técnico em Telecomunicações - Projeto Integrador IV (PJI4)"
Ir para navegação
Ir para pesquisar
(→Totem) |
(→Totem) |
||
Linha 22: | Linha 22: | ||
ip link set ${1} down | ip link set ${1} down | ||
iw dev ${1} interface add mesh0 type mp mesh_id Gourmet-Backhaul | iw dev ${1} interface add mesh0 type mp mesh_id Gourmet-Backhaul | ||
− | iw dev mesh0 set channel 9 | + | # iw dev mesh0 set channel 9 |
+ | iw dev mesh0 set freq 5190 HT40+ | ||
ip link set mesh0 up | ip link set mesh0 up | ||
} | } |
Edição das 20h55min de 18 de maio de 2016
Totem
- Referência: Arquivo:TCC MuriloBauer.pdf
- Script /etc/init.d/gourmet com permissões 755:
#!/bin/bash
if [ "${3}" = "" ]
then
echo "Use: ${0} map <interface_mesh> <interface_ap>"
echo " ${0} mpp <interface_mesh> <interface_internet>"
exit 1
else
TIPO=${1}
MESH=${2}
AP=${3}
INTERNET=${3}
fi
function basico(){
service network-manager stop
ip link set ${1} down
iw dev ${1} interface add mesh0 type mp mesh_id Gourmet-Backhaul
# iw dev mesh0 set channel 9
iw dev mesh0 set freq 5190 HT40+
ip link set mesh0 up
}
function map(){
brctl addbr br0
brctl addif br0 mesh0
ip link set br0 up
ip -4 address add 10.0.0.X/8 dev br0
ip -4 route add 0.0.0.0/0 via 10.0.0.1
killall -TERM hostapd
sleep 1
killall -KILL hostapd
echo "interface=${2}" > /etc/hostapd.conf
echo "bridge=br0" >> /etc/hostapd.conf
echo "driver=nl80211" >> /etc/hostapd.conf
echo "ssid=Gourmet" >> /etc/hostapd.conf
echo "channel=3" >> /etc/hostapd.conf
echo "ctrl_interface=/var/run/hostapd" >> /etc/hostapd.conf
hostapd -B /etc/hostapd.conf
}
function mpp(){
ip link set mesh0 up
ip -4 address add 10.0.0.1/8 dev mesh0
iw mesh0 set mesh_param mesh_gate_announcements 1
iw mesh0 set mesh_param mesh_hwmp_rootmode 1
restart isc-dhcp-server
ip link set ${2} up
dhclient ${2}
sysctl -w net.ipv4.conf.all.forwarding=1
iptables -t nat -F
iptables -t nat -A POSTROUTING -o ${2} -j MASQUERADE
}
case ${TIPO} in
"map")
basico ${MESH}
map ${MESH} ${AP}
;;
"mpp")
basico ${MESH}
mpp ${MESH} ${INTERNET}
;;
esac
- Para usar no servidor: adicionar a seguinte linha no começo do arquivo /etc/rc.local:
/etc/init.d/gourmet mpp wlan2 eth0
- Para usar no totem: adicionar a seguinte linha no começo do arquivo /etc/rc.local:
/etc/init.d/gourmet map wlan2 wlan0
para verificar o funcionamento da rede sem fio:
watch -n1 'iw dev mesh0 station dump | egrep "(Station|inactive|rx|tx)"; echo; iw dev mesh0 mpath dump; echo; hostapd_cli all_sta | egrep "(:|connected_time)"'
Documentação
Cronograma das Atividades
Semestre 2015-2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Planejamento da disciplina | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Conhecimentos sobre Telefonia IP para tratar no PI digraph VoIP { subgraph clusterIP { label="Redes" IP SIP DNS SDP RTP } DNS -> SIP Tarifação -> "Telefonia IP" VoIP -> "Telefonia IP" SIP -> VoIP SDP -> VoIP RTP -> VoIP IP -> SIP IP -> SDP IP -> RTP Binário -> IP Codec -> SDP Modulação -> Codec Sinais -> Modulação Criptografia -> SIP Segurança -> Criptografia QoS -> RTP "Plano de Numeração" -> Tarifação "Telefonia IP" -> Asterisk Sinalização -> SIP } </graphviz>
Atividades em dois dias por semana (divididas em duas aulas de 1:30 h/ 20 semanas por semestre;
|
Diário de bordo
Semestre 2016-1 |
---|
Semestre 2015-2 |
---|
|
Material de Aula
Programação:
- Algoritmos - Parte 01
- Exercícios - Parte 01
- Introdução ao PHP - Parte 02
- Introdução ao MySQL - Parte 03
- Atividades Adicionais - Nova opção Menu
Linux:
Comandos HTML: