Guest User

Untitled

a guest
Feb 27th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | None | 0 0
  1. # nmcli dev status
  2.  
  3. ** (process:2379): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: Permissions request failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files
  4. DEVICE TYPE STATE
  5. ttyUSB1 gsm disconnected
  6. eth0 802-3-ethernet connected
  7.  
  8. sudo nmcli connection edit type gsm con-name "My GPRS Connection"
  9.  
  10. nmcli> print
  11. ===============================================================================
  12. Connection profile details (My GPRS Connection)
  13. ===============================================================================
  14. connection.id: My GPRS Connection
  15. connection.uuid: 27b012ca-453f-482f-bc0e-c81bbab07310
  16. connection.interface-name: --
  17. connection.type: gsm
  18. connection.autoconnect: yes
  19. connection.timestamp: 0
  20. connection.read-only: no
  21. connection.permissions:
  22. connection.zone: --
  23. connection.master: --
  24. connection.slave-type: --
  25. connection.secondaries:
  26. connection.gateway-ping-timeout: 0
  27. -------------------------------------------------------------------------------
  28. ipv4.method: auto
  29. ipv4.dns:
  30. ipv4.dns-search:
  31. ipv4.addresses:
  32. ipv4.routes:
  33. ipv4.ignore-auto-routes: no
  34. ipv4.ignore-auto-dns: no
  35. ipv4.dhcp-client-id: --
  36. ipv4.dhcp-send-hostname: yes
  37. ipv4.dhcp-hostname: --
  38. ipv4.never-default: no
  39. ipv4.may-fail: yes
  40. -------------------------------------------------------------------------------
  41. ipv6.method: auto
  42. ipv6.dns:
  43. ipv6.dns-search:
  44. ipv6.addresses:
  45. ipv6.routes:
  46. ipv6.ignore-auto-routes: no
  47. ipv6.ignore-auto-dns: no
  48. ipv6.never-default: no
  49. ipv6.may-fail: yes
  50. ipv6.ip6-privacy: -1 (unknown)
  51. ipv6.dhcp-hostname: --
  52. -------------------------------------------------------------------------------
  53. gsm.number: *99#
  54. gsm.username: --
  55. gsm.password: --
  56. gsm.password-flags: 0 (none)
  57. gsm.apn: --
  58. gsm.network-id: --
  59. gsm.network-type: -1
  60. gsm.allowed-bands: 1 (any)
  61. gsm.pin: --
  62. gsm.pin-flags: 0 (none)
  63. gsm.home-only: no
  64. -------------------------------------------------------------------------------
  65.  
  66. nmcli> save
  67.  
  68. sudo nmcli device connect <interface name>
  69.  
  70. sudo nmcli connection up "My GPRS Connection" ifname <interface name>
  71.  
  72. $ nmcli --version
  73. nmcli tool, version 0.9.8.8-2.fc19
  74.  
  75. nmcli dev wifi con "Cafe Hotspot 1" password caffeine name "My cafe"
  76.  
  77. creates a new connection named "My cafe" and then connects it to
  78. "Cafe Hotspot 1" SSID using "caffeine" password. This is mainly
  79. useful when connecting to "Cafe Hotspot 1" for the first time.
  80. Next time, it is better to use 'nmcli con up id "My cafe"' so that
  81. the existing connection profile can be used and no additional is
  82. created.
  83.  
  84. $ nmcli connection modify id 'MyCafe' 802-11-wireless.mtu 1350
Add Comment
Please, Sign In to add comment