ip missing using ifconfig to set the ip address
environment - two devices
one set to 192.168.200.1(A) another is 192.168.200.2(B)
set the B device ip using ifconfig
ifconfig eth0 192.168.200.2
ping the other side
ping 192.168.200.1
using B
ip missing
it would stuck at here,and I use & to background to execute ping,and to check the ip address found the B ip is missing at here.
64 bytes from 192.168.200.1: icmp_seq=16 ttl=64 time=0.079 ms
64 bytes from 192.168.200.1: icmp_seq=17 ttl=64 time=0.072 ms
64 bytes from 192.168.200.1: icmp_seq=18 ttl=64 time=0.078 ms
64 bytes from 192.168.200.1: icmp_seq=19 ttl=64 time=0.100 ms
64 bytes from 192.168.200.1: icmp_seq=20 ttl=64 time=0.079 ms
64 bytes from 192.168.200.1: icmp_seq=21 ttl=64 time=0.159 ms
64 bytes from 192.168.200.1: icmp_seq=22 ttl=64 time=0.119 ms
64 bytes from 192.168.200.1: icmp_seq=23 ttl=64 time=0.082 ms
64 bytes from 192.168.200.1: icmp_seq=24 ttl=64 time=0.098 ms
64 bytes from 192.168.200.1: icmp_seq=25 ttl=64 time=0.078 ms
64 bytes from 192.168.200.1: icmp_seq=26 ttl=64 time=0.084 ms
other information
configure the static ip under folder /etc/network/interfaces/ like
auto eth0
iface eth0 inet static
address 192.168.200.2/24
or
using the nmtui
or place the file under /etc/NetworkManager/system-connections#
using those ways,ping could work normally. ip would not miss.
just use ifconfig set the ip address would has this issue.
seems similar issue reported by other people two yeas ago #159 (closed)