Created
November 17, 2016 03:44
-
-
Save phuongtailtranminh/6a9df7d8a075ef6352feab1044fe3990 to your computer and use it in GitHub Desktop.
Linux Network Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Network Interface Configurator. | |
- View network settings of an ethernet adapter: | |
ifconfig eth0 | |
- Display details of all interfaces, including disabled interfaces: | |
ifconfig -a | |
- Disable eth0 interface: | |
ifconfig eth0 down | |
- Enable eth0 interface: | |
ifconfig eth0 up | |
- Assign IP address to eth0 interface: | |
ifconfig eth0 ip_address | |
Sometimes after restored the entire system to the new machine, the interface doesn't work and it got new name. | |
In this case, use both commands: | |
ifonfig -a && ifconfig eth_name up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment