[EMAIL PROTECTED] a écrit :
Hi
I'm pretty new to Linux. I need to know how to set up my NIC with a
static IP instead of DHCP using terminal commands since I'll do it
remotely through ssh.
Thanks
Froinds
First, you need to know which interfaces you need to configure.
(root)
# ifconfig
This will display your current network config, find something like eth0
Then, edit /etc/network/interfaces
this is the configuration for my lan interface :
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
Here you go, you just have to restart your network :
# /etc/init.d/networking restart