commands Flashcards

(28 cards)

1
Q

iproute/iproute2

A

Provides the command “ip” to control links, addresses, routes, and so on.
Provides the command “ss” to explore network sockets

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

net-tools

A

iproute’s predecessor.
Provides the command “ifconfig” to configure interfaces.
Provides the command netstat to explore network sockets

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

wpa_supplicant

A

Required for working with wifi networks.

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

dhclient

A

Tool to configure interfaces using Dynamic Host Configuration Protocol

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

dhcpcd

A

It is a daemon of dhclient and is replacing dhclient

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

ifupdown

A

Series of shell scripts to start (ifup) and stop (ifdown) interfaces
These are getting phased out by most linux distros

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

NetworkManager

A

Widespread network manager among distros.
Graphical and text-based configurations tools to manage connections
Can use ifconfig or ip, as appropriate

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

systemd-networkd

A
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

udev

A

Software responsible for recognizing network hardware and making it available to the system.
Uses predictable network interface names

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

lspci and lsusb

A

show information about PCI and USB devices

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

lshw

A

command to show useful information about system hardware

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

ethtool

A

Command that can show more specific information about Ethernet adapters

sudo ethtool enp0s3

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

iwconfig/iwlist

A

similar to ifconfig but for wireless networking interfaces.

Can only connect to WEP networks and not WPA networks.

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

wpa_supplicant

A

tool to connect to WPA2 networks, which offer more security

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

networkctl status (optional: [interface])

A

See entire network configuration for a interface

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

ifconfig [interface] up/down

A

sets an interface up or down

17
Q

ifconfig [interface] [ipaddress with cidr]

A

sets an ip address for an interface

18
Q

route add default gw [ip address]

A

add default gateway

19
Q

ip address add [ip address with cidr] dev [interface]

A

Set ip address to the specificed interface of the device.

Sets up automatic routes within local system

20
Q

ip link set up/down [interface]

A

Set the device to up or down so it can/can’t be used.

21
Q

ip route add default via [ip address] (optional: dev [interface])

A

add route for default gateway

22
Q

can you add two ip addresses to an interface?

23
Q

ip address delete [ip address with cider] dev [interface]

A

delete an ip address from a specific interface on the device

24
Q

echo “nameserver [server address]”&raquo_space; /etc/resolv.conf

A

Place where DNS resolver will be at

25
dhclient -v [interface]
v = verbose. | Show us what is going on as interface sends dhcp request
26
systemctl status dhcpcd
show activitiy of dhcpcd
27
sudo dhcpcd -k
release dhcp address to server
28
sudo dhcpcd (optional: [interface])
Get dhcp address on all avaliable interfaces