2017/04/14

Modify network settings under command line on Linux / Debian.

It tells you how to modify network settings under command line on Linux / Debian.

[command]
vi /etc/network/interfaces

[modify]
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
address 192.168.56.100
netmask 255.255.255.0
gateway 192.168.56.1

---------------------------------------------------------------

restart network and apply the settings.
[command]
/etc/init.d/networking restart

No comments:

Post a Comment