Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # nmcli dev status
- ** (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
- DEVICE TYPE STATE
- ttyUSB1 gsm disconnected
- eth0 802-3-ethernet connected
- sudo nmcli connection edit type gsm con-name "My GPRS Connection"
- nmcli> print
- ===============================================================================
- Connection profile details (My GPRS Connection)
- ===============================================================================
- connection.id: My GPRS Connection
- connection.uuid: 27b012ca-453f-482f-bc0e-c81bbab07310
- connection.interface-name: --
- connection.type: gsm
- connection.autoconnect: yes
- connection.timestamp: 0
- connection.read-only: no
- connection.permissions:
- connection.zone: --
- connection.master: --
- connection.slave-type: --
- connection.secondaries:
- connection.gateway-ping-timeout: 0
- -------------------------------------------------------------------------------
- ipv4.method: auto
- ipv4.dns:
- ipv4.dns-search:
- ipv4.addresses:
- ipv4.routes:
- ipv4.ignore-auto-routes: no
- ipv4.ignore-auto-dns: no
- ipv4.dhcp-client-id: --
- ipv4.dhcp-send-hostname: yes
- ipv4.dhcp-hostname: --
- ipv4.never-default: no
- ipv4.may-fail: yes
- -------------------------------------------------------------------------------
- ipv6.method: auto
- ipv6.dns:
- ipv6.dns-search:
- ipv6.addresses:
- ipv6.routes:
- ipv6.ignore-auto-routes: no
- ipv6.ignore-auto-dns: no
- ipv6.never-default: no
- ipv6.may-fail: yes
- ipv6.ip6-privacy: -1 (unknown)
- ipv6.dhcp-hostname: --
- -------------------------------------------------------------------------------
- gsm.number: *99#
- gsm.username: --
- gsm.password: --
- gsm.password-flags: 0 (none)
- gsm.apn: --
- gsm.network-id: --
- gsm.network-type: -1
- gsm.allowed-bands: 1 (any)
- gsm.pin: --
- gsm.pin-flags: 0 (none)
- gsm.home-only: no
- -------------------------------------------------------------------------------
- nmcli> save
- sudo nmcli device connect <interface name>
- sudo nmcli connection up "My GPRS Connection" ifname <interface name>
- $ nmcli --version
- nmcli tool, version 0.9.8.8-2.fc19
- nmcli dev wifi con "Cafe Hotspot 1" password caffeine name "My cafe"
- creates a new connection named "My cafe" and then connects it to
- "Cafe Hotspot 1" SSID using "caffeine" password. This is mainly
- useful when connecting to "Cafe Hotspot 1" for the first time.
- Next time, it is better to use 'nmcli con up id "My cafe"' so that
- the existing connection profile can be used and no additional is
- created.
- $ nmcli connection modify id 'MyCafe' 802-11-wireless.mtu 1350
Add Comment
Please, Sign In to add comment