The ethernet card is called eth in Ubuntu. Eth0 is Ethernet card 1, Eth1 is Ethernet card 2, Eth2 is Ethernet card 3, and so on.
In this article, I am going to show how I normally use ifconfig command to manage eth0 with ifconfig command.
Example 1 - Use ifconfig to bring up ethernet card:
luzar@ubuntu:~$ sudo ifconfig eth0 192.168.1.5 up
The example above shows how to bring up the first ethernet card, eth0.
Example 2 - Use ifconfig to bring down ethernet card:
luzar@ubuntu:~$ sudo ifconfig eth0 192.168.1.5 down
The example above shows how to bring down the first ethernet card, eth0.
No comments:
Post a Comment
Please keep comment relevant and strictly no spam will be tolerated. Thank you.