LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2009, 03:38 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 489

Rep: Reputation: 36
network could not start


My box is centos 5.2 x86 on vmware.
Suddenly after restarting centos could not start connect internet.
So I checked "ifconfig" as follows:

Quote:
[root:localhost:~]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2661 errors:0 dropped:0 overruns:0 frame:0
TX packets:2661 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3765296 (3.5 MiB) TX bytes:3765296 (3.5 MiB)
How can I solve this problem?

Any helpful comment would be appreciated.
 
Old 06-02-2009, 03:55 AM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
lets see the contents of /etc/sysconfig/network-scripts/ifcfg-*
 
Old 06-02-2009, 03:59 AM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
"the contents of /etc/sysconfig/network-scripts/ifcfg-lo" is
Quote:
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback
 
Old 06-02-2009, 04:15 AM   #4
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
for starters, you need to have a config file for eth0. This should get you the basics and let the system bring up the interface:

as root...
Code:
sed "s/=lo$/=eth0/; s/=127.0.0.1/=192.168.0.1/; s/=255.0.0.0/=255.255.255.0/; s/=127.0.0.0/=192.168.0.0/; s/=127.255.255.255/=192.168.0.255/; s/=loopback/=eth0/" /etc/sysconfig/network-scripts/ifcfg-lo > /etc/sysconfig/network-scripts/ifcfg-eth0
Now you'll have to figure out what ip addressing VMware expects on that interface...

Last edited by JulianTosh; 06-02-2009 at 04:16 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I'd like to be a network operator... or something - where to start? Virtuality General 8 12-11-2007 02:16 PM
Start Software over the Network tobiasw Linux - Networking 2 10-21-2006 08:06 AM
Start with no network aeruzcar Linux - General 1 06-23-2005 02:43 PM
Can I gett KPPP to start when I start a browser on a network machine? duffboygrim Linux - Networking 0 03-25-2004 04:49 PM
network doesn't start at boot ritturaj Linux - Newbie 3 02-08-2004 02:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration