How to Manage Network by Using NMCLI command in Linux

Описание к видео How to Manage Network by Using NMCLI command in Linux

Hello friends in this video we will see how we configure network by using NMCLI command in linux RHEL8 ‪@shivbks‬

nmcli is a command-line tool which is used for controlling NetworkManager. nmcli command can also be used to display network device status, create, edit, activate/deactivate, and delete network connections. Typical Uses: Scripts: Instead of manually managing the network connections it utilize NetworkMaager via nmcli.

Commands:
---------------------------------------------------------------------------------------------------------------------------NMCLI command is use for manage network in command line.
#nmcli connection help it prints help information
#nmcli help it prints help
#nmcli general status it shows overall status of Network Manager
#nmcli connection show it will display all connection
#nmcli connection show –active -it will display currently active connection
#nmcli connection status it will show your status of connection
#nmcli connection up (connection name) to make up the Ethernet connection
#nmcli connection down(connection name) to make down the Ethernet connection
#nmcli device disconnect (device name) to disconnect the Ethernet connection
#nmcli device connect(device name) to connect the Ethernet connection

Adding and deleting Dynamic Ethernet connection
[root@shivbks ~]# nmcli connection add type ethernet con-name shivbks ifname ens160
[root@shivbks ~]# nmcli connection delete shivbks

Adding a Static Ethernet Connection
[root@shivbks ~]# nmcli connection add con-name shivbks ifname ens160 type ethernet ipv4.method manual ipv4.addresses 10.0.0.1/8 ipv4.gateway 10.0.0.1

To modify or change the ip address
nmcli connection modify shivbks ipv4.addresses 20.0.0.1/8

To assign DNS address
[root@shivbks ~]# nmcli connection modify shivbks ipv4.dns 20.0.0.1

To assign IPv4 Gateway
[root@shivbks ~]# nmcli connection modify shivbks ipv4.gateway 20.0.0.1

To Modify properties of connection profile
[root@shivbks ~]# nmcli connection modify shivbks connection.id shiv

To modify connection profile
[root@shivbks ~]# nmcli connection modify shiv connection.autoconnect no

To set the permission on connection

root@shivbks ~]# nmcli connection modify shiv connection.permissions test1






#shivbks #RHEL8

Playlist:
RHEL PLAYLIST: https://www.youtube.com/watch?v=HuViw...
CCNA SWITCHING
https://www.youtube.com/watch?v=z9hnI...

EIGRP IPV6:https://www.youtube.com/watch?v=TLjVc...
IOS backup: https://www.youtube.com/watch?v=SxC2-...

Follow us
YOUTUBE:    / shivbks  
YouTube: Mobile: https://uc.xyz/2hkcAV?pub=link
Facebook:   / shivendra-ba.  .
Instagram:  / bshivendra  
Gmail ID: [email protected]

Комментарии

Информация по комментариям в разработке