On Dec 18, 2004, at 2:31 PM, Antonin AMAND wrote:
[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
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]
After I set up the network file and restart the network, will the dhcp
client application continue running? if so, how do I stop ip from
running at startup?
By the way, thanks a lot for your help guys
Froinds