Hello,
First post here on this lists. I know about the the IP set of commands, BUT my concern is about the ifconfig one.
I have 2 Debian 10 Buster systems and I have the same behavior - reading the man page did not give the specific options
dada@Jradebian:~$
sudo ifconfig
enp0s31f6
[sudo] password for
dada:
enp0s31f6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu
1500
inet 192..168.0.187 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::9afa:9bff:fed8:9776 prefixlen 64 scopeid 0x20<link>
ether 98:fa:9b:d8:97:76 txqueuelen 1000 (Ethernet)
RX packets 128087 bytes 129259424 (123.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 60117 bytes 11913581 (11..3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xec200000-ec220000
Not sure here but the command sudo ifconfig <interface_name> STATS seems to reset the IP address
dada@Jradebian:~$
dada@Jradebian:~$
dada@Jradebian:~$
dada@Jradebian:~$ sudo ifconfig enp0s31f6 stats
dada@Jradebian:~$
dada@Jradebian:~$
dada@Jradebian:~$ sudo ifconfig enp0s31f6
enp0s31f6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 54.36..162.17 netmask 255.0.0.0 broadcast 54.255.255.255
inet6 fe80::9afa:9bff:fed8:9776 prefixlen 64 scopeid 0x20<link>
ether 98:fa:9b:d8:97:76 txqueuelen 1000 (Ethernet)
RX packets 128151 bytes 129273250 (123.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 60132 bytes 11918134 (11.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xec200000-ec220000
I have experienced the same issue on a FreeBSD based product close to the 10.x release
So
the main question: Why the stats did not generate error like no such
options ? Why the IP is reset to a public IP here belonging to OVH?
Best regards
Kanto