IPConfig, IFConfig, & IP Commands Flashcards
(16 cards)
ipconfig
Windows: Brief display of current TCP / IP network configuration values, & refreshes DHCP & DNS settings for client / server
ipconfig /all
Windows: Full display of current TCP / IP network configuration values, & refreshes DHCP & DNS settings for client / server
ipconfig /release
Windows: Release the IP address lease the device holds, including current IP address & network configurations, assigned from a DHCP server.
ipconfig /renew
Windows: Force device to request a new IP address from a DHCP server, after releasing.
ifconfig
Linux/MacOS: Display IP address information status of currently active interfaces (no brief version)
ifconfig [device name]
Linux/MacOS: Single interface information
ifconfig -a
Linux/MacOS: All available interfaces, including down or inactive interfaces
ifconfig -v
Linux/MacOS: Verbose, more-detailed version of interface information, including IPv6 timers & hardware addresses
ifconfig [device name] down
Linux/MacOS: Turn off Network Interface Card (NIC)
ifconfig [device name] up
Linux/MacOS: Turn on / activate Network Interface Card (NIC)
ip
Linux/MacOS: Assigns an address to a network interface or configures network interface parameters.
ip a
Linux/MacOS: Show all interfaces and their associated IP addresses, v4 & v6
ip a add [IP address] dev [device name]
Linux/MacOS: Assign a static IP address
ip a del [ip address] dev [device name]
Linux/MacOS: Remove a static IP address
ip link set dev [device name] address [MAC address]
Linux/MacOS: Change MAC address
ip link set dev [device name] promisc on
Linux/MacOS: Sets promiscuous mode, device listens to all traffic on network, not just intended traffic. Use to set up packet sniffer / capture