On 12.5.2023. 16:21, Jan Klemkow wrote:
> On Thu, May 11, 2023 at 09:17:37PM +0200, Hrvoje Popovski wrote:
>> is it possible to change "ifconfig: SIOCSIFFLAGS: device not configured"
>> message that it has an interface name in it, something like:
>> ifconfig pfsync0: SIOCSIFFLAGS: device not configured <- in my case.
>>
>> I have many vlans and static routes in my setup and while testing some
>> diffs, it took me a long time to figure out which interface the message
>> was coming from.
>>
>> starting network
>> add host 10.11.2.69: gateway 10.12.253.225
>> add host 10.250.184.36: gateway 10.12.253.225
>> add host 9.9.9.9: gateway 10.12.253.225
>> add host 10.11.1.234: gateway 10.12.253.225
>> add host 10.11.1.235: gateway 10.12.253.225
>> add host 10.11.255.123: gateway 10.12.253.225
>> add net 10.101/16: gateway 10.12.253.225
>> ifconfig: SIOCSIFFLAGS: Device not configured
>> add net 16/8: gateway 192.168.100.112
>> add net a192:a168:a100:a100::/64: gateway 192:168:1000:1000::112
>> add net 48/8: gateway 192.168.111.112
>> add net a192:a168:a111:a111::/64: gateway 192:168:1111:1111::112
>> reordering: ld.so libc libcrypto sshd.
>>
>> or when I'm doing sh /etc/netstart and have aggr interface
>>
>> ifconfig: SIOCSTRUNKPORT: Device busy
>> ifconfig: SIOCSTRUNKPORT: Device busy
>>
>> to change
>> ifconfig ix0: SIOCSTRUNKPORT: Device busy
>> ifconfig ix1: SIOCSTRUNKPORT: Device busy
> I also run into this issue sometimes.  So, here is diff that prints the
> interface name in front of most of these anonym error messages.


That's it, thank you.
This will help me a lot when doing some network testing...


old
ifconfig: SIOCSIFFLAGS: Device not configured
ifconfig: SIOCSIFFLAGS: Inappropriate ioctl for device
reordering: ld.so libc libcrypto sshd.

new
ifconfig: pfsync0: SIOCSIFFLAGS: Device not configured
ifconfig: pfsync0: SIOCSIFFLAGS: Inappropriate ioctl for device
reordering: ld.so libc libcrypto sshd.




when doing sh /etc/netstart with aggr0

old
ifconfig: SIOCSTRUNKPORT: Device busy
ifconfig: SIOCSTRUNKPORT: Device busy

new
ifconfig: aggr0 ix0: SIOCSTRUNKPORT: Device busy
ifconfig: aggr0 ix1: SIOCSTRUNKPORT: Device busy

Reply via email to