Click to See Complete Forum and Search --> : Some very basic Linux networking Q's


reflector
07-21-2002, 03:04 AM
Hi! I have an old P133 that I just installed with Mandrake 8.1.

1) I put the IP in /etc/hosts and set eth0 to the IP using ifconfig eth0 x.x.x.x, and it works fine, but when I reboot, eth0 goes back to 10.0.0.10, which is I guess the default IP that Mandrake gives it. How do I get the new IP to stick?

2) What do I do to get an ftp server to run?

3) What do I do to get a telnet server to run?

I thought that the answer to 2) and 3) was editing /etc/inetd.conf, but there is no such file.

I'm not running x, so hopefully someone can point me to some info that's not based on using a GUI configurator.

Thanks for any help!

zchas39
07-21-2002, 04:32 AM
try looking for /etc/xinetd.conf

xinetd is a newer more functional version of inetd.

it may be that your system has xinetd running

hope this helps

i don't know why you are having the first problem

cowanrl
07-21-2002, 10:56 AM
If you configure or change an interface with ifconfig, it's only temporary. When you reboot, those changes are lost.
In most distros, the file that contains the configuration info for eth0 is /etc/sysconfig/network-scripts/ifcfg-eth0. If you look at that file, you should see a line where the IP address is being assigned. Just change it to the address you want and save the file. You'll need to bring the interface down, then back up or reboot to make the change.

If you're relatively new to linux, go to:

http://www.tldp.org/HOWTO/Networking-Overview-HOWTO.html

and look through some of the HOWTOs on networking. You should find info on setting up telnet and ftp.

DMR
07-21-2002, 07:41 PM
As cowanrl said, /etc/sysconfig/network-scripts/ifcfg-eth0 is the file you want to edit to set your IP info in Mandrake. Here's are the relevant bits of that file from my Mandrake 8.0 box on a network using the 192.168.0.x range of non-routable addresses; your IP addys might be different, but the ONBOOT, BOOTPROTO, and DEVICE entries need to be the same:DEVICE="eth0"
BOOTPROTO="none"
IPADDR="192.168.0.2"
NETMASK="255.255.255.0"
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT="yes"