RES: [RESOLVIDO] Ifconfig Estranho
Com uma ajuda do pessoal do IRC (Em especial o faw) eu consegui resolver o problema.
Existia um arquivo dentro de /etc/network/if-up.d/ chamado zeroconf
Eu apaguei este arquivo e tudo voltou a ser como era antes.
Uma coisa eu achei estranho, o pessoal disse que este arquivo é para zerar a configuração, mas então porque mesmo tendo os IPS bagunçados, eu tinha conectividade com a rede?
Outra coisa, porque este arquivo foi parar lá?
A fonte de arquivo segue abaixo:
#!/bin/sh
# IPv4 link-local addresses (zeroconf) are
# only applicable on the 'inet' address family
[ "X$ADDRFAM" != "Xinet" ] && exit 0
# However there are some methods where it doesn't
# make any sense to configure an IPv4LL address
# not on loopback
[ "X$METHOD" = "Xloopback" ] && exit 0
# not on ppp or wvdial either
[ "X$METHOD" = "Xppp" ] && exit 0
[ "X$METHOD" = "Xwvdial" ] && exit 0
# The administrator may have blacklisted interfaces
# or only want zeroconf in a fallback situation
[ -f /etc/default/zeroconf ] &&
. /etc/default/zeroconf
[ -n "$DISABLE" ] && exit 0
for BLACK in $IFBLACKLIST; do
case $IFACE in
$BLACK)
exit 0
;;
esac
done
# should we only allocate an address if we do not already have one?
if [ -n "$FALLBACK" ]; then
/bin/ip addr show $IFACE scope global | grep -q "inet"
IP=$?
if [ $IP -eq 0 ]; then
/bin/ip route add 169.254.0.0/16 dev $IFACE
exit 0
fi
fi
# otherwise, we are good to go
/usr/sbin/zeroconf -i $IFACE
exit 0
_____________________________________________________
Keny Hayakawa Schmeling
Diretor Comercial/Administravivo
Tel: 5566-1465
Fax: 5566-6541
http://www.optinfo.com.br
kenyhs@optinfo.com.br
_/_/_/ _/_/_/ _/_/_/ _/ _/ _/ _/_/_/ _/_/_/
_/ _/ _/ _/ _/ _/ _/_/ _/ _/ _/ _/
_/ _/ _/_/_/ _/ _/ _/ _/_/ _/_/ _/ _/
_/_/_/ _/ _/ _/ _/ _/ _/ _/_/_/
TECNOLOGIA EM INFORMÁTICA LTDA.
-----Mensagem original-----
De: Keny Schmeling [mailto:kenyhs@optinfo.com.br]
Enviada em: quinta-feira, 23 de fevereiro de 2006 13:49
Para: debian-user-portuguese@lists.debian.org
Assunto: Ifconfig Estranho
Pessoal, eu atualizei meu Sarge para o Etch e uma coisa muito estranha está acontecendo com as placas de rede.
Eu tenho 3 placas, sendo:
Eth0 - IP 192.168.1.4 / 255.255.255.0
Eth1 - DHCP (Vem ip da rede 192.168.0.0)
Eth2 - IP 192.168.2.4 / 255.255.255.0
Como sou meio novato no linux, eu configuro as placas via KDE ou via WEBMIN.
O estranho é o seguinte, ao dar ifconfig, me retorna o seguinte:
eth0 Encapsulamento do Link: Ethernet Endereço de HW 00:01:6C:3C:93:FA
inet end.: 169.254.215.124 Bcast:0.0.0.0 Masc:255.255.0.0
UP BROADCASTMULTICAST MTU:1500 Métrica:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
IRQ:201 Endereço de E/S:0xd800
eth1 Encapsulamento do Link: Ethernet Endereço de HW 00:08:54:30:D8:A3
inet end.: 169.254.130.116 Bcast:0.0.0.0 Masc:255.255.0.0
endereço inet6: fe80::208:54ff:fe30:d8a3/64 Escopo:Link
UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:1000
RX bytes:4787 (4.6 KiB) TX bytes:10262 (10.0 KiB)
IRQ:209 Endereço de E/S:0xdc00
eth2 Encapsulamento do Link: Ethernet Endereço de HW 00:08:54:30:D8:99
inet end.: 169.254.140.47 Bcast:0.0.0.0 Masc:255.255.0.0
UP BROADCASTMULTICAST MTU:1500 Métrica:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
IRQ:217 Endereço de E/S:0xe000
Como vocês podem ver, os ips estão 100% diferentes.
O mais engraçado é que o dhcp na eth1 pega o ip correto, tanto que eu consigo acessar a interface pelo ip que o DHCP pegou.
O que pode estar ocorrendo?
_____________________________________________________
Keny Hayakawa Schmeling
Diretor Comercial/Administravivo
Tel: 5566-1465
Fax: 5566-6541
http://www.optinfo.com.br
kenyhs@optinfo.com.br
_/_/_/ _/_/_/ _/_/_/ _/ _/ _/ _/_/_/ _/_/_/
_/ _/ _/ _/ _/ _/ _/_/ _/ _/ _/ _/
_/ _/ _/_/_/ _/ _/ _/ _/_/ _/_/ _/ _/
_/_/_/ _/ _/ _/ _/ _/ _/ _/_/_/
TECNOLOGIA EM INFORMÁTICA LTDA.
Reply to: