Estou tentando configurar uma conexão ethernet entre um PC (Windows XP) e um notebook (Debian 9) usando um cabo crossover. Sem DHCP, basta definir manualmente os IPs e uma máscara de rede. O notebook possui o Controlador Fast Ethernet Qualcomm Atheros AR8152.
Se eu rodar no notebook uma máquina virtual com uma conexão em ponte e tentar conectá-la ao PC, tudo funcionará bem. Mas o sistema host ignora os pacotes recebidos de eth0
, independentemente do tipo (ARP, ICMP, TCP ...). Eu posso ver todos os pacotes recebidos no Wireshark com o promisc mode habilitado.
iptables -L
não tem regras /proc/sys/net/ipv4/conf/eth0/arp_accept
não ajuda ifconfig eth0
mostra que não há pacotes descartados lo
Então, como posso descobrir o que são os pacotes descontinuados?
Detalhes da configuração
bodqhrohro@localhost:/data/text/lectures/sc$ sudo ifconfig eth0: flags=4163 mtu 1500 inet 172.16.0.5 netmask 255.240.0.0 broadcast 172.31.255.255 inet6 fe80::de0e:a1ff:fede:2aa prefixlen 64 scopeid 0x20 ether dc:0e:a1:de:02:aa txqueuelen 1000 (Ethernet) RX packets 787 bytes 70998 (69.3 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 250 bytes 22898 (22.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 1 collisions 0 lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1 (Local Loopback) RX packets 454522 bytes 71984295 (68.6 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 454522 bytes 71984295 (68.6 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 bodqhrohro@localhost:/data/text/lectures/sc$ ip addr show 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether dc:0e:a1:de:02:aa brd ff:ff:ff:ff:ff:ff inet 172.16.0.5/12 brd 172.31.255.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::de0e:a1ff:fede:2aa/64 scope link valid_lft forever preferred_lft forever 4: wlan0: mtu 1500 qdisc mq state DOWN group default qlen 1000 link/ether e0:06:e6:a9:83:38 brd ff:ff:ff:ff:ff:ff 94: wwp0s18f0u5i1: mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether ba:41:f1:73:9c:2f brd ff:ff:ff:ff:ff:ff bodqhrohro@localhost:/data/text/lectures/sc$ sudo brctl show bridge name bridge id STP enabled interfaces bodqhrohro@localhost:/data/text/lectures/sc$
E da máquina XP (em russo embora)
C:\Documents and Settings\UserXP>ipconfig /all Настройка протокола IP для Windows Имя компьютера . . . . . . . . . : XP Основной DNS-суффикс . . . . . . : Тип узла. . . . . . . . . . . . . : неизвестный IP-маршрутизация включена . . . . : нет WINS-прокси включен . . . . . . . : да Подключение по локальной сети 2 - Ethernet адаптер: DNS-суффикс этого подключения . . : Описание . . . . . . . . . . . . : NVIDIA nForce Networking Controller Физический адрес. . . . . . . . . : 6C-F0-49-9D-C1-6D Dhcp включен. . . . . . . . . . . : нет IP-адрес . . . . . . . . . . . . : 172.16.0.1 Маска подсети . . . . . . . . . . : 255.240.0.0 IP-адрес . . . . . . . . . . . . : fe80::6ef0:49ff:fe9d:c16d%4 Основной шлюз . . . . . . . . . . : DNS-серверы . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1