Guest User

Untitled

a guest
Nov 23rd, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. $ cat /etc/network/interfaces
  2. # This file describes the network interfaces available on your system
  3. # and how to activate them. For more information, see interfaces(5).
  4.  
  5. source /etc/network/interfaces.d/*
  6.  
  7. # The loopback network interface
  8. auto lo
  9. iface lo inet loopback
  10.  
  11. # The primary network interface
  12. auto ens3
  13. iface ens3 inet static
  14. address 192.168.0.6
  15. netmask 255.255.255.0
  16. network 192.168.0.0
  17. broadcast 192.168.0.255
  18. gateway 192.168.0.1
  19. dns-nameservers 192.168.0.1 8.8.8.8 8.8.4.4
  20.  
  21. $ ifconfig
  22.  
  23. ens3 Link encap:Ethernet HWaddr 52:54:00:5c:7c:8b
  24. inet addr:192.168.0.6 Bcast:192.168.0.255 Mask:255.255.255.0
  25. inet6 addr: fe80::5054:ff:fe5c:7c8b/64 Scope:Link
  26. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  27. RX packets:2855 errors:0 dropped:0 overruns:0 frame:0
  28. TX packets:9564 errors:0 dropped:0 overruns:0 carrier:0
  29. collisions:54129 txqueuelen:1000
  30. RX bytes:148974 (148.9 KB) TX bytes:791122 (791.1 KB)
  31.  
  32. lo Link encap:Local Loopback
  33. inet addr:127.0.0.1 Mask:255.0.0.0
  34. inet6 addr: ::1/128 Scope:Host
  35. UP LOOPBACK RUNNING MTU:65536 Metric:1
  36. RX packets:22025 errors:0 dropped:0 overruns:0 frame:0
  37. TX packets:22025 errors:0 dropped:0 overruns:0 carrier:0
  38. collisions:0 txqueuelen:1
  39. RX bytes:2270863 (2.2 MB) TX bytes:2270863 (2.2 MB)
  40.  
  41. $ sudo apt update
  42. Err:1 http://fi.archive.ubuntu.com/ubuntu xenial InRelease
  43. Temporary failure resolving 'fi.archive.ubuntu.com'
  44. Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
  45. Temporary failure resolving 'security.ubuntu.com'
  46. Err:3 http://fi.archive.ubuntu.com/ubuntu xenial-updates InRelease
  47. Temporary failure resolving 'fi.archive.ubuntu.com'
  48. 0% [Working]^C
  49.  
  50. $ ping -v google.fi
  51. ^C
  52.  
  53. $ ping 172.217.18.3
  54. PING 172.217.18.3 (172.217.18.3) 56(84) bytes of data.
  55. ^C
  56. --- 172.217.18.3 ping statistics ---
  57. 26 packets transmitted, 0 received, 100% packet loss, time 25198ms
Add Comment
Please, Sign In to add comment