section 10 networking Flashcards
Four basic components for network connectivity?
IP address
subnet mask
default gateway
DNS server IP address
What command lists nearby wireless networks?
iwlist
What command connects to or disconnects from specific wireless networks?
iwconfig
What command can apply an ip address or subnet mask to a specific hardware interface, and connect/disconnect to a wired network?
ifconfig
What command can view the default gateway?
route
Where is DNS info configured?
/etc/resolv.conf
Where is DNS info configured?
/etc/resolv.confq
What commands configure DHCP info?
dhclient
dhcpcd
three commands useful for DNS troubleshooting
host
dig
nslookup
What is netstat?
netstat -a
What is Linux’s primary security concern?
Server daemons running in the background such as apache web server, SSH, mail, etc.
Remediate by shutting down the service or uninstalling it.
how do you view your ip address?
ip address show
how do you view layer 2 info?
ip link show
How do you disable a wired interface?
ip link set eth0 down
how do you manually add an ip address?
ip addr add 192.168.0.1/24 dev eth0
(use addr instead of address)