La connessione internet del mio PC desktop, vista da Mageia

Sab, 30/04/2016 - 16:20
Ritratto di Sargon6

La connessione internet del mio PC desktop, vista da Mageia

Inviato da Sargon6 0 commenti

La connessione internet del mio PC desktop, vista da Mageia
I comandi

lspci -knn | grep -iA3 net  # Verifica la presenza di schede di rete integrate e relativo driver
lspci -knn | grep -iA3 less # Verifica la presenza di schede WiFi integrate e relativo driver
lsusb # Cerca TUTTE le periferiche USB, comprese le periferiche WiFi-USB
/sbin/arp
dmesg |grep -i ready # Visualizza il risultato dei tentativi di connettersi a Internet
rfkill list all      # Elenca tutte le periferiche WiFi-USB e verifica se sono bloccate via software o via hardware  
cat /etc/resolv.conf # informazioni sui server DNS configurati
ping -c 5 192.168.1.1 # raggiungibilità del proprio gateway (“router ADSL”)
ping -c 5 8.8.8.8 # raggiungibilità di un host su Internet (senza risoluzione via server DNS)
ping -c 5 google.it # raggiungibilità di un host su Internet (con risoluzione via server DNS)
su   # Diventa SuperUtente
[su~]# iwlist wlp0s2f1u2 scan | grep -i ssid # scansione delle reti WIFI nelle vicinanze
[su~]# iw wlp0s2f1u2 scan | grep -i ssid
[su~]# iwlist scan # Elenco Reti Wifi disponibili e relative caratteristiche

l'output

bash-4.3$ lspci -knn | grep -iA3 net  # Verifica la presenza di schede di rete integrate e relativo driver
00:07.0 Bridge [0680]: NVIDIA Corporation MCP61 Ethernet [10de:03ef] (rev a2)
        Subsystem: ASRock Incorporation 939NF6G-VSTA Board [1849:03ef]
        Kernel driver in use: forcedeth
        Kernel modules: forcedeth
bash-4.3$
bash-4.3$ lspci -knn | grep -iA3 less # Verifica la presenza di schede WiFi integrate e relativo driver
bash-4.3$
bash-4.3$ lsusb # Cerca TUTTE le periferiche USB, comprese le periferiche WiFi-USB
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 07d1:3c0a D-Link System DWA-140 RangeBooster N Adapter(rev.B2) [Ralink RT3072]
Bus 001 Device 006: ID 045e:0024 Microsoft Corp. Trackball Explorer
Bus 001 Device 005: ID 0603:00f2 Novatek Microelectronics Corp. Keyboard (Labtec Ultra Flat Keyboard)
Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 002: ID 0409:0058 NEC Corp. HighSpeed Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
bash-4.3$
bash-4.3$ /sbin/arp
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.1.1              ether   30:b5:c2:92:85:11   C                     wlp0s2f1u2
bash-4.3$ 
bash-4.3$ dmesg |grep -i ready # Visualizza il risultato dei tentativi di connettersi a Internet
[   33.508618] IPv6: ADDRCONF(NETDEV_UP): enp0s7: link is not ready
[   34.007183] IPv6: ADDRCONF(NETDEV_UP): wlp0s2f1u2: link is not ready
[   34.507042] IPv6: ADDRCONF(NETDEV_UP): wlp0s2f1u2: link is not ready
[   36.052651] IPv6: ADDRCONF(NETDEV_CHANGE): wlp0s2f1u2: link becomes ready
bash-4.3$ 
bash-4.3$ rfkill list all      # Elenca tutte le periferiche WiFi-USB e verifica se sono bloccate via software o via hardware  
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
bash-4.3$ 
bash-4.3$ cat /etc/resolv.conf # informazioni sui server DNS configurati
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.1.1
nameserver 0.0.0.0
bash-4.3$ 
bash-4.3$ ping -c 5 192.168.1.1 # raggiungibilità del proprio gateway (“router ADSL”)
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.17 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=400 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=1.13 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=1.28 ms
 
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 4 received, 20% packet loss, time 4003ms
rtt min/avg/max/mdev = 1.137/101.025/400.505/172.904 ms
bash-4.3$ 
bash-4.3$ ping -c 5 8.8.8.8 # raggiungibilità di un host su Internet (senza risoluzione via server DNS)
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=44 time=42.6 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=44 time=39.3 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=44 time=39.1 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=44 time=42.1 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=44 time=41.0 ms
 
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 39.172/40.880/42.607/1.412 ms
bash-4.3$ 
bash-4.3$ ping -c 5 google.it # raggiungibilità di un host su Internet (con risoluzione via server DNS)
PING google.it (216.58.208.195) 56(84) bytes of data.
64 bytes from par10s21-in-f195.1e100.net (216.58.208.195): icmp_seq=1 ttl=52 time=51.7 ms
64 bytes from par10s21-in-f195.1e100.net (216.58.208.195): icmp_seq=2 ttl=52 time=40.8 ms
64 bytes from par10s21-in-f195.1e100.net (216.58.208.195): icmp_seq=3 ttl=52 time=42.4 ms
64 bytes from par10s21-in-f195.1e100.net (216.58.208.195): icmp_seq=4 ttl=52 time=41.1 ms
64 bytes from par10s21-in-f195.1e100.net (216.58.208.195): icmp_seq=5 ttl=52 time=41.1 ms
 
--- google.it ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 40.864/43.453/51.727/4.177 ms
bash-4.3$ 
bash-4.3$ su   # Diventa SuperUtente
Password: 
[root@localhost mageia5k0]> iwlist wlp0s2f1u2 scan | grep -i ssid # scansione delle reti WIFI nelle vicinanze
                    ESSID:"TP-LINK_2.4GHz_928511"
                    ESSID:"FASTWEB2013"
                    ESSID:"Extender Netgear"
                    ESSID:"FASTWEB-1-iNeBPCl6TyeG"
[root@localhost mageia5k0]>
[root@localhost mageia5k0]> iw wlp0s2f1u2 scan | grep -i ssid
        SSID: TP-LINK_2.4GHz_928511
        SSID: FASTWEB2013
        SSID: Extender Netgear
        SSID: FASTWEB-1-iNeBPCl6TyeG
        SSID: WIND WiFi-8f4c
[root@localhost mageia5k0]>
[root@localhost mageia5k0]> iwlist scan # Elenco Reti Wifi disponibili e relative caratteristiche
enp0s7    Interface doesn't support scanning.
 
wlp0s2f1u2  Scan completed :
          Cell 01 - Address: 30:B5:C2:92:85:11
                    Channel:9
                    Frequency:2.452 GHz (Channel 9)
                    Quality=70/70  Signal level=-33 dBm  
                    Encryption key:on
                    ESSID:"TP-LINK_2.4GHz_928511"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=00000012d397e6e7
                    Extra: Last beacon: 190ms ago
                    IE: Unknown: 001554502D4C494E4B5F322E3447487A5F393238353131
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 030109
                    IE: Unknown: 2A0100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32043048606C
                    IE: Unknown: 2D1AEF111BFFFFFF00000000000000000001000000000406E6470D00
                    IE: Unknown: 3D1609080000000000000000000000000000000000000000
                    IE: Unknown: 4A0E14000A002C01C800140005001900
                    IE: Unknown: 7F080100000000000040
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
                    IE: Unknown: DD0900037F01010000FF7F
                    IE: Unknown: DD920050F204104A0001101044000101103B000103104700100000000000001000000030B5C29285101021000754502D4C494E4B1023000941726368657220443710240003312E301042000C3330423543323932383531311054000800060050F204000110110009417263686572204437100800020086103C000100104900140024E26002000101600000020001600100020001
          Cell 02 - Address: 00:14:7F:09:89:B6
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=33/70  Signal level=-77 dBm  
                    Encryption key:on
                    ESSID:"FASTWEB2013"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000000681ec6229b
                    Extra: Last beacon: 4380ms ago
                    IE: Unknown: 000B4641535457454232303133
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030101
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: Unknown: 32040C121860
                    IE: Unknown: DD060010180200F0
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
          Cell 03 - Address: E4:F4:C6:DB:49:44
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=21/70  Signal level=-89 dBm  
                    Encryption key:on
                    ESSID:"Extender Netgear"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                              18 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000000c3cae97df
                    Extra: Last beacon: 770ms ago
                    IE: Unknown: 0010457874656E646572204E657467656172
                    IE: Unknown: 010882848B961224486C
                    IE: Unknown: 03010B
                    IE: Unknown: 2A0100
                    IE: Unknown: 32040C183060
                    IE: Unknown: 2D1AEC0117FFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D160B000400000000000000000000000000000000000000
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
                    IE: Unknown: 0B05010010127A
                    IE: Unknown: DD07000C4303000000
                    IE: Unknown: 0706444520010D10
                    IE: Unknown: DD8D0050F204104A0001101044000102103B000103104700102880288028801880A880E4F4C6DB4944102100044E54475210230008574E3330303052501024000256321042000C6534663463366462343934341054000800060050F204000110110017574E333030305250763228576972656C6573732041502910080002210C103C0001011049000600372A000120
          Cell 04 - Address: 0C:37:DC:27:8F:4C
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=17/70  Signal level=-93 dBm  
                    Encryption key:on
                    ESSID:"WIND WiFi-8f4c"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                              11 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=000000259266f180
                    Extra: Last beacon: 26820ms ago
                    IE: Unknown: 000E57494E4420576946692D38663463
                    IE: Unknown: 010882848B0C12961824
                    IE: Unknown: 030106
                    IE: Unknown: 050400010002
                    IE: Unknown: 0706495420010D14
                    IE: Unknown: 2A0100
                    IE: Unknown: 32043048606C
                    IE: Unknown: 2D1A2C0000FF00000000000000000000008000000000000000000000
                    IE: Unknown: 3D1606000100000000000000000000000000000000000000
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
 
lo        Interface doesn't support scanning.
 
[root@localhost mageia5k0]>