Quelle interface à l'adresse IP 192.168.1.41 ?
Bonjour
Je cherche quelle est l'interface avec l'IP 192.168.1.41 :
- Pourquoi cette adresse existe
- Où est elle définie.
Quoi que je fasse, cette adresse existe e je peux me connecter sur le BPI-R2 par cette adresse.
C'est du armbian stretch sur un banana pi-r2 ( https://www.armbian.com/bananapi-r2/#faq-section )
Je n'ai qu'une liaison vers ce matériel sur lequel je peux me connecter aussi bien par l'adresse 192.168.1.10 ou 192.168.1.41
J'ai enlevé le paquet Netwok-Manager, il ne peut donc plus me gêner.
Voici une connexion sur 192.168.1.10 suivi d'un ifconfig :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
| [troumad@localhost arbres]$ ssh root@192.168.1.10
Warning: Permanently added '[192.168.1.10]' (ECDSA) to the list of known hosts.
root@192.168.1.10's password:
X11 forwarding request failed on channel 0
____ ____ _ ____ ____
| __ ) __ _ _ __ __ _ _ __ __ _ | _ \(_) | _ \|___ \
| _ \ / _` | '_ \ / _` | '_ \ / _` | | |_) | | | |_) | __) |
| |_) | (_| | | | | (_| | | | | (_| | | __/| | | _ < / __/
|____/ \__,_|_| |_|\__,_|_| |_|\__,_| |_| |_| |_| \_\_____|
Welcome to ARMBIAN 5.67 stable Debian GNU/Linux 9 (stretch) 4.19.1-mt7623
System load: 0.39 0.25 0.09 Up time: 1 min
Memory usage: 4 % of 2010MB IP: 192.168.41.10
192.168.1.41 192.168.1.10
CPU temp: 40°C
Usage of /: 4% of 30G
[ 0 security updates available, 23 updates total: apt upgrade ]
Last check: 2018-11-18 13:18
Last login: Sun Nov 18 13:13:32 2018 from 192.168.1.15
root@bananapir2:~# ifconfig
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.41.10 netmask 255.255.255.0 broadcast 192.168.41.255
inet6 2a01:cb14:aba:d900:101d:91ff:fe7a:19f1 prefixlen 64 scopeid 0x0<global>
inet6 fe80::101d:91ff:fe7a:19f1 prefixlen 64 scopeid 0x20<link>
ether 12:1d:91:7a:19:f1 txqueuelen 1000 (Ethernet)
RX packets 207 bytes 19542 (19.0 KiB)
RX errors 0 dropped 9 overruns 0 frame 0
TX packets 185 bytes 21052 (20.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::e473:7ff:fe96:a559 prefixlen 64 scopeid 0x20<link>
ether e6:73:07:96:a5:59 txqueuelen 1000 (Ethernet)
RX packets 216 bytes 23963 (23.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 227 bytes 29036 (28.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 213
lan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether e6:73:07:96:a5:59 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lan1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether e6:73:07:96:a5:59 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lan2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether e6:73:07:96:a5:59 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lan3: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether e6:73:07:96:a5:59 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 17 bytes 1804 (1.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17 bytes 1804 (1.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wan: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255
ether 32:d1:55:7d:03:39 txqueuelen 1000 (Ethernet)
RX packets 216 bytes 20075 (19.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 199 bytes 22240 (21.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
Voici le fichier /etc/network/interfaces :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| root@bananapir2:~# grep -v \# /etc/network/interfaces
auto eth1
iface eth1 inet manual
pre-up ip link set $IFACE up
post-down ip link set $IFACE down
auto wan
allow-hotplug wan
iface wan inet dhcp
hwaddress ether 32:D1:55:7D:03:39
auto eth0
iface eth0 inet manual
pre-up ip link set $IFACE up
post-down ip link set $IFACE down
auto br0
iface br0 inet static
address 192.168.41.10
netmask 255.255.255.0
bridge_ports lan0 lan1 lan2 lan3
bridge_fd 5
bridge_stp no
source-directory /etc/network/interfaces.d |
nb :
1) Si je mets l'entrée wan plus bas, elle n'obtient pas l'IP 192.168.1.10 comme souhaité.
2) j'ai enlevé l'entrée eth1, rien n'est changé.
édit :
je viens de modifier le serveur DHCP (la box orange) pour que la mac adresse du 192.168.1.41 arrive sur le 192.168.1.40, l'adresse a bien été changée. Donc, l'adresse est attribuée par dhcp. Mais, sur le coup, la box orange déconne un peu. C'est à dire que quand je lui demande d'afficher les appareils connecté, elle ne monte que l'IP 192.168.1.10 avec la mac adresse du 192.168.1.40. En plus, elle a détecté la mac adresse du pont (présence sur le réseau de br0) sans lui donner d'adresse alors que le pont n'es pas connecté.