I want to setup my debian machine (on a network) to have a static IP. In RH I had to edit /etc/sysconfig/network-scripts/ifcfg-eth0 and put
but can't seem to find that file in debian. Well if I type locate ifcfg-eth0 it shows up but if I try to cd to it, it just says no file found or whatever.
So what is the equivalent of that in debian? Also is there a command I have to do with ifconfig to apply it? Last time I did this was a long time so I may be missing something here. But I think I remember just having to edit that file and I was good to go.
I also found a tutorial that says it's /etc/init.d/network but there's no file there, and for fun tried to create it but it did not do anything.
I keep finding lot of forums where this question was asked but it was never answered. But I did find a tutorial and it said something about it being worked on, so does it mean it's impossible to set a static IP in debian yet? I sure hope not since it will make it living hell since it will be acting as a DNS server along with many other things.
Also lot of debian tutorials keep poiting to /etc/sysconfig/networking, but why? that does not exist under debian. The whole /etc/sysconfig is non existant. Have no clue where those files are and what they're called.
Code:
DEVICE=eth0
BOOTPROTO=static
onBOOT=yes
IPADDR=192.168.1.10
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
So what is the equivalent of that in debian? Also is there a command I have to do with ifconfig to apply it? Last time I did this was a long time so I may be missing something here. But I think I remember just having to edit that file and I was good to go.
I also found a tutorial that says it's /etc/init.d/network but there's no file there, and for fun tried to create it but it did not do anything.
I keep finding lot of forums where this question was asked but it was never answered. But I did find a tutorial and it said something about it being worked on, so does it mean it's impossible to set a static IP in debian yet? I sure hope not since it will make it living hell since it will be acting as a DNS server along with many other things.
Also lot of debian tutorials keep poiting to /etc/sysconfig/networking, but why? that does not exist under debian. The whole /etc/sysconfig is non existant. Have no clue where those files are and what they're called.