Linux 101 : Simple commands for the network interfaces - The "ip" command -
Bringing up an interface:
And likewise for "turning off" an interface, we use:
Showing the interface details:
Assigning an address to an interface:
Assigning a static IP to an interface:
We use the file "/etc/network/interfaces" to assign a static IP address to an interface:
To change the hostname, we use the below command:
Your machine's neigbhors:
The below command replaces the "arp" command:
- STALE : the entry is correct but not 100% accurate.
- REACHABLE : the entry is valid as long as the timeout (reachability timeout) has not expired.
Comments