Network configuration commands, firewall rules, and basic troubleshooting tools used on Linux systems.
35 cards · basic cards · AI-written, checked twice. Edit anything.
- What does the ifconfig command display?
- Network interface configuration, including IP address, netmask, and MAC address.
- What is the primary purpose of the ip command?
- To view and configure network interfaces, routes, and policies on Linux systems.
- What does the route command do?
- Displays and modifies the kernel routing table.
- What information does netstat display?
- Network connections, listening ports, routing tables, and network statistics.
- What is the ss command used for?
- To display socket statistics, including active connections and listening ports.
- What is the primary purpose of ping?
- To test connectivity and measure latency between the local host and a remote host.
- What does traceroute show?
- The network path taken by packets from the local host to a destination, including each intermediate hop.
- What is nslookup used for?
- To query DNS servers and resolve domain names to IP addresses.
- What does dig do?
- Performs DNS lookups and displays detailed DNS response information.
- What is iptables?
- A command-line firewall tool that configures packet filtering rules in the Linux kernel.
- What is firewalld?
- A dynamic firewall daemon that manages firewall rules using zones and services.
- What is ufw?
- Uncomplicated Firewall, a front-end to iptables designed to be easier to use.
- How do you view the current routing table using the ip command?
- Use: ip route show
- How do you add a default route using the route command?
- Use: route add default gw <gateway-ip>
- How do you remove a route using the route command?
- Use: route delete <destination> or route del <destination>