Persistent Network Configuration Flashcards

1
Q

nmcli

A

Network Manager command line interface. Command line utility for configuring network devices and connection settings. Can display all connection names, UUIDs, connection types.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

nmcli dev

A

Physical hardware used to connect network

status: get status of all devices.
show: show device settings for interface.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

nmcli con

A

network configuration setting assigned to particular device. Assigned IP Address and DNS settings to connection.
add: add connection in form con-name “” type [more info below.
For static example: ip4/ gw4
None else needed for DHCP.
]
down : take down connection.
delete: delete connection.
edit: enter application to modify connection.
mod : modify connection.
show: show all connections with name, UUID, and type. Highlighted up. For name, detailed info.
up:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Device naming scheme

A

e: ethernet
w: wireless
eno1: onboard devices, index by BIOS/firmware
ens1: PCIE hotplug slots
enp2s0: specific physical locations.
p=bus, s=slot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ip

A

Can modify IP address settings, route settings, interface statistics. From the iproute2 project.
-s addr: statistics on configured interfaces.
addr info: shows IP Address info with interface names, states, hardware addresses, IP addresses and subnets, masks, broadcast addresses.
addr add dev :
del dev :
link set :
route show: shows routing table
route default via dev

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

hostnamectl

A

Command to configure hostname. Displays hostname by default.

set-hostname “”:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Legacy networking tools

A

ifconfig, ifup, ifdown, route.

Part of net-tools package.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

ifconfig

A

Previous standard networking utility on Linux deprecated for ip. Displays for each interface: name, status, IPV4 address, subnet mask, broadcast address, IPV6 address, hardware address, interface statistics.
assigned IP Address. Can change inet address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

route

A

Display routing table, add and delete routes, deprecated for ip route.
add gw
del: delete
-n: see IP address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly