Linux Networking Flashcards
lists all the interfaces on the local system.
ip addr list,
ip link
tracert in Windows..
is traceroute in Linux
ifconfig vs ip commands
most people accustemed using ifconfig but ip commands will replace it eventually
how to assign a non-persisting IP address
ip addr {del/add} {address/mask} dev {intf_number}
how to assign a non-persisting IP route
ip route {add/del} {network/mas} via {next_hop_ip} dev {intf_number}
displays local connection and routing information
netstat
displays local route table
netstat -r
displays interface statistics
netstat -i
displays DNS information such as A Records, MX Records, and CNAMES
dig
resolves a hostname to an IP address or vice versa and learn DNS information such as MX Records, Name Servers, CNAME, etc.
host
the primary way to show end edit routing table
ip route list
the secondary way to show and edit routing table
route
show ARP entries or set one
arp
apr -s {ip_address} {mac_address}
persistent interface route information is stored in
/etc/network/interfaces
how to change IP address from static to DHCP
delete iface eth0 inet static
add iface eth0 inet dhcp