ifconfig: SIOCGIFFLAGS: No such device
1.
tux@slitaz:~$ uname -a
Linux slitaz 4.9.30-slitaz #2 SMP Fri Jun 16 13:58:14 Europe 2017 i686 GNU/Linux
2.
tux@slitaz:~$ grep -A 2 ifconfig /var/log/boot.log
ifconfig: SIOCGIFFLAGS: No such device
Starting udhcpc client on: eth0...
udhcpc: SIOCGIFINDEX: No such device
tux@slitaz:~$ grep -A 2 ifconfig /var/log/boot.log
ifconfig: SIOCGIFFLAGS: No such device
Starting udhcpc client on: eth0...
udhcpc: SIOCGIFINDEX: No such device
tux@slitaz:~$ dmesg | grep eth
[ 9.913492] r8169 0000:02:00.0 eth0: RTL8168g/8111g at 0xf8337000, 44:8a:5b:9c:00:c8, XID 0c000800 IRQ 26
[ 9.913493] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 11.070631] r8169 0000:02:00.0 enp2s0: renamed from eth0
[ 9.913492] r8169 0000:02:00.0 eth0: RTL8168g/8111g at 0xf8337000, 44:8a:5b:9c:00:c8, XID 0c000800 IRQ 26
[ 9.913493] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 11.070631] r8169 0000:02:00.0 enp2s0: renamed from eth0
3.
tux@slitaz:~$ su -c 'ifconfig enp2s0 up'
Password:
tux@slitaz:~$ su -c 'ifconfig enp2s0 up'
Password:
tux@slitaz:~$ su -c 'udhcpc -i enp2s0'
Password:
udhcpc: started, v1.26.2
udhcpc: sending discover
udhcpc: sending select for 192.168.1.34
udhcpc: lease of 192.168.1.34 obtained, lease time 86400
deleting routers
adding dns 8.8.8.8
adding dns 192.168.1.1
Password:
udhcpc: started, v1.26.2
udhcpc: sending discover
udhcpc: sending select for 192.168.1.34
udhcpc: lease of 192.168.1.34 obtained, lease time 86400
deleting routers
adding dns 8.8.8.8
adding dns 192.168.1.1
4.
tux@slitaz:~$ nslookup cook.slitaz.org
Server: 8.8.8.8
Address 1: 8.8.8.8 google-public-dns-a.google.com
tux@slitaz:~$ nslookup cook.slitaz.org
Server: 8.8.8.8
Address 1: 8.8.8.8 google-public-dns-a.google.com
Name: cook.slitaz.org
Address 1: 212.233.61.5 dsl-212-233-61-5.internet.lu
tux@slitaz:~$
Address 1: 212.233.61.5 dsl-212-233-61-5.internet.lu
tux@slitaz:~$