Persistent Network Configuration Flashcards
nmcli
Network Manager command line interface. Command line utility for configuring network devices and connection settings. Can display all connection names, UUIDs, connection types.
nmcli dev
Physical hardware used to connect network
status: get status of all devices.
show: show device settings for interface.
nmcli con
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:
Device naming scheme
e: ethernet
w: wireless
eno1: onboard devices, index by BIOS/firmware
ens1: PCIE hotplug slots
enp2s0: specific physical locations.
p=bus, s=slot
ip
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
hostnamectl
Command to configure hostname. Displays hostname by default.
set-hostname “”:
Legacy networking tools
ifconfig, ifup, ifdown, route.
Part of net-tools package.
ifconfig
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.
route
Display routing table, add and delete routes, deprecated for ip route.
add gw
del: delete
-n: see IP address.