Linux Networking Question And Answers.
ifconfig - Answers Command that displays IP address and other interface-related info
route - Answers Command to view or change routing related information
system-config-network-tui - Answers Command that provides a menu-driven utility for
network configuration
/etc/sysconfig/network - Answers File that contains gateway and hostname information
/etc/sysconfig/network-scripts/ - Answers Directory that contains all the interface config
files
netstat - Answers Command to display routing, listening ports and established
connections.
netstat -r - Answers Display routing table
netstat -I - Answers Display interface statistics
netstat -t - Answers Show tcp connections
netstat -u - Answers Show upd connections
netstat -a - Answers Displays all sockets(tcp, udp, or local)
netstat -p - Answers Displays process IDs
netstat -e - Answers Display extended netstat information
tcpdump - Answers Packet capture utility allows view of raw data being sent across an
interface
tcpdump -i - Answers Specify which interface tcpdump listens on
tcpdump -r - Answers Define a packet capture file to read from
tcpdump -w - Answers Define a file to write output to instead of the console
echo "Alias bond0 bonding" > /etc/modprobe.d/bond.conf - Answers Enable the bonding
kernel module for bond0
/etc/resolv.conf - Answers File containing the DNS servers
/etc/hosts - Answers File containing IP to hostname mappings
ifconfig - Answers Command that displays IP address and other interface-related info
route - Answers Command to view or change routing related information
system-config-network-tui - Answers Command that provides a menu-driven utility for
network configuration
/etc/sysconfig/network - Answers File that contains gateway and hostname information
/etc/sysconfig/network-scripts/ - Answers Directory that contains all the interface config
files
netstat - Answers Command to display routing, listening ports and established
connections.
netstat -r - Answers Display routing table
netstat -I - Answers Display interface statistics
netstat -t - Answers Show tcp connections
netstat -u - Answers Show upd connections
netstat -a - Answers Displays all sockets(tcp, udp, or local)
netstat -p - Answers Displays process IDs
netstat -e - Answers Display extended netstat information
tcpdump - Answers Packet capture utility allows view of raw data being sent across an
interface
tcpdump -i - Answers Specify which interface tcpdump listens on
tcpdump -r - Answers Define a packet capture file to read from
tcpdump -w - Answers Define a file to write output to instead of the console
echo "Alias bond0 bonding" > /etc/modprobe.d/bond.conf - Answers Enable the bonding
kernel module for bond0
/etc/resolv.conf - Answers File containing the DNS servers
/etc/hosts - Answers File containing IP to hostname mappings