Professional Documents
Culture Documents
Unit 3 - NCLU
Unit 3 - NCLU
UNIT 3
Outline Academy
Academy
Unit Outline
NCLU Overview
NCLU Commands
Committing and Aborting Configuration
Track and Roll-Back Historical Commits
Network Command Line Utility - NCLU Academy
Provides access to networking commands directly via Bash, allowing a simple and
easy configuration and troubleshooting - no file editing needed.
3
NCLU Commands Academy
4
NCLU Help Options Academy
NCLU has a number of built-in examples to guide users through basic configuration setup
Show NCLU examples
cumulus@leaf1:mgmt:~$ net example [TAB]
acl : access-list
bgp : Border Gateway Protocol
bond : bond, port-channel, etc
bridge : a layer2 bridge
clag : Multi-Chassis Link Aggregation
5
Context Aware Recommendation Academy
6
NCLU Workflow Academy
NCLU uses the following workflow for staging and committing changes to Cumulus Linux:
Use the net add and net del commands to stage/remove configuration changes
net commit applies the changes to the relevant configuration files, such as
/etc/network/interfaces, then runs necessary follow on commands to enable the
configuration, such as ifreload -a.
If two different users try to commit changes at the same time, NCLU displays a warning
but implements the change according to the first commit received. The second user will
need to abort the commit.
7
Configuration Example Academy
<output omitted>
-auto swp1
-iface swp1
+auto swp2 Shows lines added and removed
+iface swp2
+ link-speed 10000 8
Committing Configuration Academy
-auto swp1
-iface swp1
+auto swp2
+iface swp2
+ link-speed 10000
Abort changes
cumulus@leaf1:mgmt:~$ net abort
9
Adding Commit Description Academy
When committing changes, it is possible to add describing. Then the description can be
used to rollback to that configuration.
11
Show the Configuration Academy
12
Back-up the Configuration Academy
You can then use the file to retrieve the configuration or to copy the configuration to
other switches:
13
Reset the Configuration Academy
14
Configuring User Accounts Academy
You can configure user accounts in Cumulus Linux with read-only or edit permissions
for NCLU:
NCLU read-only users:
Add the user to the netshow group.
A user in the netshow group can run NCLU net show commands, such as net
show interface or net show config, and certain general Linux commands, such
as ls, cd or man, but cannot run net add, net del or net commit commands.
NCLU read-write users:
Add the user to the netedit group.
A user in the netedit group can run NCLU configuration commands, such net
add, net del or net commit in addition to NCLU net show commands.
Add a user
cumulus@leaf1:mgmt:~$ sudo adduser ben
.
Enter new UNIX password:
Retype new UNIX password:
16
Allowing New Users to Use NCLU Show Commands Academy
Add a user
cumulus@leaf1:mgmt:~$ sudo adduser guy
.
Enter new UNIX password:
Retype new UNIX password:
Academy
Unit Summary
NCLU Overview
NCLU Commands
Committing and Aborting Configuration
Track and Roll-Back Historical Commits