Networking Flashcards
7 cards from real Linux practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Networking flashcards as text
Which command brings a network interface down without removing its configuration?
Answer: ip link set eth0 down
`ip link set down` disables the interface at the link layer while preserving its address configuration.
What does the `/proc/net/if_inet6` file contain?
Answer: IPv6 addresses assigned to network interfaces
`/proc/net/if_inet6` lists all IPv6 addresses currently assigned to network interfaces along with their prefix lengths and flags.
Which `nftables` command lists all current rulesets?
Answer: nft list ruleset
`nft list ruleset` displays the complete nftables configuration including all tables, chains, and rules.
What is a network namespace in Linux used for?
Answer: Isolating network stack instances for containers or processes
Linux network namespaces create isolated copies of the entire network stack, enabling containers to have their own interfaces, routes, and firewall rules.
Which command would display the MAC address of the `eth0` interface?
Answer: ip link show eth0
`ip link show ` displays link-layer information including the hardware (MAC) address of the interface.
What does the `-p` flag add to `netstat` or `ss` output?
Answer: Shows the process name and PID owning each socket
The `-p` flag appends the process name and PID responsible for each socket, useful for identifying which application owns a connection.
What is the function of the `bond0` interface type in Linux?
Answer: Aggregates multiple physical interfaces for redundancy or throughput
Linux bonding (bond0) combines multiple NICs into one logical interface, providing link aggregation for failover or increased bandwidth.