Solved

My Linux Box is Not Up Since DHCP was Disabled

Posted on 2004-08-05
11
225 Views
Last Modified: 2010-04-20
hello
I got all my windows computers working fine with DHCP disabled
but now my linux box is not up anymore when I scan all the
computers in the LAN I only see the windows and my mac
I got the help from here, to setup windows tcp/ip configuration
http://www.experts-exchange.com/Networking/Q_21080938.html
but I dont know how to do it on Fedora with Ensim pro 4
thanks.
0
Comment
Question by:Xtry
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 3
11 Comments
 
LVL 20

Expert Comment

by:Gns
ID: 11726225
Are we to take it that you've initially set your linux box to use DHCP too, and that you now want to reconfig to static IPs? If so, you should run
redhat-config-network
as root to change it (redhat-config-network-tui if on the textmode console).

Or what was your question?

Can you ping the linux machine from the windows machines?

-- Glenn
0
 

Author Comment

by:Xtry
ID: 11726274
when I ping the linux machine I dont get any Response!
0
 
LVL 20

Expert Comment

by:Gns
ID: 11726342
Ah, so either network isn't "up", there is a major error in the network config (for it or on the router) or there is something more HW-ish the matter (bad/marginal cabling or somesuch)...
If you log in to the linux machine, open a terminal (assuming you use GUI logins) and do
su
... to become root and do
ifconfig
... Is the eth0 interface there at all? Configured? Does the configuration look... OK?

-- Glenn
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:Xtry
ID: 11734704
I need to set the IP in eth0, can you tell me how to do it
0
 
LVL 20

Expert Comment

by:Gns
ID: 11735209
Did you try running "redhat-config-network" as noted above?
It should be fairly easy to configure there... If you have the "eth0" interface to choose, do so, then press Edit, choose to set it statically ... and fill in the blanks:-).

If you like, you can edit the config file(s) directly... But using the tool (either the -tui or GUI version) is very simple.

-- Glenn
0
 
LVL 20

Expert Comment

by:Gns
ID: 11735255
On a "redhatish" system the files are /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-eth0

In the first you need set the IP address of the gateway and hostname... Something like
HOSTNAME=apmx03.ap1.se
NETWORKING=yes
GATEWAY=192.168.1.1

In the latter you have the actual interface settings, somewhat like:
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.104
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
MII_NOT_SUPPORTED=no

Make sure the IP address is unique.

-- Glenn
0
 
LVL 20

Expert Comment

by:Gns
ID: 11735272
Oh, and after editing the files to suit you, do
ifdown eth0
ifup eth0
loggen on as root (which you'll need be anyway, to be able to edit the files:-).

Not difficult, but using the tool might be construed as being simpler still;-).

-- Glenn
0
 

Author Comment

by:Xtry
ID: 11735593
well I did everything you told me now I cant login since I did "ifdown eth0"
0
 

Expert Comment

by:KraLord
ID: 11740321
hello there xtry,

you need to set an ip to the box try doing this
ifconfig eth0 inet 192.168.1.102 netmask 255.255.255.0 broadcast 192.168.1.255 up
then shutdown -r now
0
 
LVL 20

Accepted Solution

by:
Gns earned 500 total points
ID: 11748522
If you we're logging in remotely, true... Otherwise... no;-).

I'm sorry I didn't say "only do this locally"... Thought it was obvious:-).

If it is your GUI login screen acting up w/o network up, just <Ctrl>-<Alt>-<F1> and log in to a textmode console... and continue with the "ifup eth0"...

What KraLord say is generally true, fo r settingit once, BUT that will not survive a reboot.... and it doesn't really fit with the "redhatish" tools.... Those scripts will (eventually) run exactly that type of ifconfig command.... and will manage automatic start/stop etc through the initscript(s) (which basically do ifup/ifdown).

Just hang in there:-)

-- Glenn
0
 
LVL 20

Expert Comment

by:Gns
ID: 11748544
Oh, missed the shutdown -r now KraLord.... With nothing but what you've said, that will effectively "erase" the ifcinfig... making your advice kind of.... wrong:)

-- Glenn
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question