PDA

View Full Version : network config w/subdomain


onajide
2008-08-10, 05:45 PM CDT
I've searched here for 45 min. and didn't see a related answer to my question. I'm trying to set up a box at home using Fedora 9 on a new HDD using command line only. I did not install the desktop because I want to reflect my data center server at home.

I cannot find any docs that speak to my desire of having a static IP as a subdomain on my box at home. For instance: dev.domain.com. I've searched everywhere I know although, I'm new at this.

What files need to be changed and what are the config settings, please?

Any help is appreciated.

zackf
2008-08-10, 07:07 PM CDT
/etc/sysconfig/network/ifcfg-eth0 is where you would set your Static IP/Subnet/Network and so forth

Dont' forget to set ONBOOT=yes so it activates on reboot.

onajide
2008-08-10, 07:25 PM CDT
Thanks. I did all that, several times with different ways I attempted to configure my settings. I just read the MAN pages about resolv.conf which was helpful in the sense of telling me what each 'parameter' was (if that's the correct terminology). What I need to know is what the settings should be to set up my box as a home server although, more advanced readers may think that is a given. For me, a beginner, it is not. I've been working on this one thing almost three weeks (off and on using several config documents with none of them having the same info). I'm obviously missing something, a step, or procedure or, whatever it is.

varinder
2008-08-10, 07:46 PM CDT
as i understand from ur posting is that
you want to setup a new server /host with doamin dev.domain.com

do put entry by this name in /etc/sysconfig/network-scripts/ifcfg-eth0

and also put an entry in /etc/hosts to resolve the name

hopfully it will help

zackf
2008-08-10, 08:32 PM CDT
you can also use system-config-network in command line.

onajide
2008-08-11, 10:23 AM CDT
you can also use system-config-network in command line.

Thank you zackf. I did that before coming to the forums and again after you posted it. What I got both times is the blue tools screen that flashes VERY quickly, "loading hardware" and then returns to the command prompt.

onajide
2008-08-11, 10:27 AM CDT
Some of the values below were changed after you guys responded to this post.
These are the files and what values I entered:

/etc/sysconfig/network-scripts/ifcfg-eth0

# AMDtek NC100 Network Everywhere Fast Ethernet 10/100
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:04:5a:57:9d:e6
ONBOOT=yes
IPADDR=123.456.789.0
NETMASK=255.255.255.248
GATEWAY=123.456.789.0
DNS1=dev.domain.com
TYPE=ethernet

/etc/sysconfig/network

NETWORKING=yes
HOSTNAME=dev.domain.com

[file changed to below:]

NETWORKING=yes
HOSTNAME=dev.domain.com
GATEWAY=0.0.0.0

/etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost localhost
::1 localhost6.localdomain6 localhost6
123.456.789.0 dev.domain.com

[after changes used: /etc/rc.d/init.d/network restart]