Linux configuration network card tutorial

  

ifconfig -a View all NIC information of Linux

ifconfig eth0 down Turn off eth0 network card

ifconfig eth0 up Turn on eth0 network card

dhclient eth0 Let eth0 NIC get ip

in DHCP mode to set static IP, you need to edit /etc/network/interfaces file




Because it is using NAT mode in the virtual machine



Last restart network service /etc/init.d/network restart

Copyright © Windows knowledge All Rights Reserved