commands Flashcards
(28 cards)
iproute/iproute2
Provides the command “ip” to control links, addresses, routes, and so on.
Provides the command “ss” to explore network sockets
net-tools
iproute’s predecessor.
Provides the command “ifconfig” to configure interfaces.
Provides the command netstat to explore network sockets
wpa_supplicant
Required for working with wifi networks.
dhclient
Tool to configure interfaces using Dynamic Host Configuration Protocol
dhcpcd
It is a daemon of dhclient and is replacing dhclient
ifupdown
Series of shell scripts to start (ifup) and stop (ifdown) interfaces
These are getting phased out by most linux distros
NetworkManager
Widespread network manager among distros.
Graphical and text-based configurations tools to manage connections
Can use ifconfig or ip, as appropriate
systemd-networkd
module for the systemd system management suite of software often used on modern distros where there isn't a desktop environment Provides the networkctl took to monitor interface information
udev
Software responsible for recognizing network hardware and making it available to the system.
Uses predictable network interface names
lspci and lsusb
show information about PCI and USB devices
lshw
command to show useful information about system hardware
ethtool
Command that can show more specific information about Ethernet adapters
sudo ethtool enp0s3
iwconfig/iwlist
similar to ifconfig but for wireless networking interfaces.
Can only connect to WEP networks and not WPA networks.
wpa_supplicant
tool to connect to WPA2 networks, which offer more security
networkctl status (optional: [interface])
See entire network configuration for a interface
ifconfig [interface] up/down
sets an interface up or down
ifconfig [interface] [ipaddress with cidr]
sets an ip address for an interface
route add default gw [ip address]
add default gateway
ip address add [ip address with cidr] dev [interface]
Set ip address to the specificed interface of the device.
Sets up automatic routes within local system
ip link set up/down [interface]
Set the device to up or down so it can/can’t be used.
ip route add default via [ip address] (optional: dev [interface])
add route for default gateway
can you add two ip addresses to an interface?
yes you can
ip address delete [ip address with cider] dev [interface]
delete an ip address from a specific interface on the device
echo “nameserver [server address]”»_space; /etc/resolv.conf
Place where DNS resolver will be at