Files
tldr/pages.tr/linux/nmcli-connection.md
T
2026-03-11 20:56:42 +02:00

33 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# nmcli connection
> NetworkManager ile bağlantı yönetimi.
> Daha fazla bilgi için: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html#connection>.
- Tüm NetworkManager bağlantılarını listele (ad, UUID, tür ve aygıtı gösterir):
`nmcli {{[c|connection]}}`
- UUID belirterek bağlantıyı etkinleştir:
`nmcli {{[c|connection]}} {{[u|up]}} {{uuid}}`
- Bağlantıyı devre dışı bırak:
`nmcli {{[c|connection]}} {{[d|down]}} {{uuid}}`
- IPv4 ve IPv6 otomatik olarak yapılandırılan bir bağlantı oluştur:
`nmcli {{[c|connection]}} {{[a|add]}} ifname {{arayüz_adı}} type {{ethernet}} ipv4.method {{auto}} ipv6.method {{auto}}`
- Statik bir yalnızca IPv6 bağlantısı oluştur:
`nmcli {{[c|connection]}} {{[a|add]}} ifname {{arayüz_adı}} type {{ethernet}} ip6 {{2001:db8::2/64}} gw6 {{2001:db8::1}} ipv6.dns {{2001:db8::1}} ipv4.method {{ignore}}`
- Statik bir yalnızca IPv4 bağlantısı oluştur:
`nmcli {{[c|connection]}} {{[a|add]}} ifname {{arayüz_adı}} type {{ethernet}} ip4 {{10.0.0.7/8}} gw4 {{10.0.0.1}} ipv4.dns {{10.0.0.1}} ipv6.method {{ignore}}`
- Bir OVPN dosyasından OpenVPN kullanan bir VPN bağlantısı oluştur:
`nmcli {{[c|connection]}} {{[i|import]}} type {{openvpn}} file {{vpn_yapılandırması.ovpn/dosyasının/yolu}}`