LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-07-2014, 10:06 PM   #1
Huamin
Member
 
Registered: May 2011
Posts: 562

Rep: Reputation: 12
Problem with the network


Hi,
It seems there are some problem with the network below, as I cannot connect to the network, by the machine.
https://dl.dropboxusercontent.com/u/40211031/t749.png

what to adjust?
 
Old 07-08-2014, 01:57 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

your physical network, eth0 is down. Was it working in the past? Did you change something?

Evo2.
 
Old 07-08-2014, 02:05 AM   #3
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
I did yesterday set up this OS, so no new change was ever applied to it. Thanks.
 
Old 07-08-2014, 02:44 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

ok, so you need to go ahead and configure your network. If you want information on how to do that you'll need to tell us about your setup. Eg dhcp or static? want to use network manager or /etc/sysconfig/? Using gui or command line? Otherwise please check the documentation.

Evo2.
 
Old 07-08-2014, 03:14 AM   #5
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Thanks. Here is eth0

eth0 Link encap:Ethernet HWaddr 08:00:27:BA:06:E6
inet6 addr: fe80::a00:27ff:feba:6e6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:258 (258.0 b)

I want to have one specific IP like 192.168.168.1 to eth0. what to adjust?
 
Old 07-08-2014, 03:22 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

set up your /etc/sysconfig/network-scripts/ifcfg-eth0 as shown at the start of 9.2.1 in
https://access.redhat.com/documentat...nterfaces.html

Set the value of IPADDR as appropriate.

Evo2.
 
1 members found this post helpful.
Old 07-08-2014, 10:23 PM   #7
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Thanks.
I adjust this file

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

to be

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.168.1
USERCTL=no

but I still get this

eth0 Link encap:Ethernet HWaddr 08:00:27:BA:06:E6
inet6 addr: fe80::a00:27ff:feba:6e6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:8856 (8.6 KiB)

after reboot. why?

Last edited by Huamin; 07-08-2014 at 10:42 PM.
 
Old 07-08-2014, 11:10 PM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

are you serivces configured correctly? Eg what is the output of the following?
Code:
chkconfig --list |grep -i net
Also what happens if you try to bring up that interface? Eg output of
Code:
ifup eth0
Evo2.
 
Old 07-08-2014, 11:46 PM   #9
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Problem with the network

Thanks a lot. Here are what I've got

https://dl.dropboxusercontent.com/u/40211031/out.txt
 
Old 07-09-2014, 12:07 AM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

looks like you should stop and disable NetworkManager. Eg
Code:
service NetworkManager stop
chkconfig NetworkManager off
Then try to bring up eth0 again.
Code:
ifup eth0
If there are any errors post them and the output of
Code:
ifconfig eth0
service network status
Evo2.
 
Old 07-09-2014, 01:01 AM   #11
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Thanks a lot.

Here are what I've got

[root@CentOS65x64 huamin]# service NetworkManager stop
Stopping NetworkManager daemon: [ OK ]
[root@CentOS65x64 huamin]# chkconfig NetworkManager off
[root@CentOS65x64 huamin]# ifup eth0

Determining IP information for eth0... failed.
[root@CentOS65x64 huamin]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 08:00:27:BA:06:E6
inet6 addr: fe80::a00:27ff:feba:6e6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:109 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:33374 (32.5 KiB)

[root@CentOS65x64 huamin]# service network status
Configured devices:
lo eth0 eth0_bk
Currently active devices:
lo eth0 eth1 virbr0
[root@CentOS65x64 huamin]#
 
Old 07-09-2014, 01:05 AM   #12
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I just noticed that you have BOOTPROTO=dhcp in your ifcfg-eth0 file. It should be set to none as in the first example in the documentation I linked to.

Evo2.
 
1 members found this post helpful.
Old 07-09-2014, 08:49 PM   #13
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Many thanks Evo2.

Can I have the similar file like

ifcfg-eth1

to eth1 and then put dhcp to that, as now eth1 has not been assigned with the IP properly.

Actually, this OS is running within Virtualbox, on which I've put "internal network" to Adapter 1 and "Bridged adapter" to Adapter 2, and this is why I want a specific IP to eth0.

Before the change of the file to eth0, everything was fine to eth1.

Last edited by Huamin; 07-09-2014 at 08:56 PM.
 
Old 07-09-2014, 09:10 PM   #14
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

there is nothing to stop you adding ifcfg-eth1. However, I strongly suggest you read chapter 9 of the documentation I linked to. If something there doesn't make sense or seems incomplete please ask here.

Evo2.
 
Old 07-09-2014, 09:55 PM   #15
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Hi,
Here is the current ifcfg-eth0 file

DEVICE=eth0
TYPE=Ethernet
NM_CONTROLLED=yes
BOOTPROTO=none
ONBOOT=no
NETMASK=255.255.255.0
IPADDR=192.168.168.1
USERCTL=no

but I have a problem to eth1 below

https://dl.dropboxusercontent.com/u/40211031/t756.png

what to adjust?
 
  


Reply



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
[SOLVED] problem: Wind River Linux is not detecting the network cards (network interfaces) NM04 Linux - Newbie 17 12-06-2013 08:06 AM
RHEL 6 64Bit - Network Problem - Network Card Not Recognized? red.hive Linux - Networking 7 10-20-2012 03:23 PM
Wireless network disconnects before unmounting network shares-shutdown problem grahamw Linux - Networking 2 05-10-2011 02:05 AM
Two network interfaces on Ubuntu 10.4.1 caused strange network problem iArash Linux - Networking 1 02-06-2011 04:07 AM
Slackware 10 network configuration. Problem with 8139 network card drivers ! Padmakiran Linux - Networking 8 03-27-2007 06:48 AM

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

All times are GMT -5. The time now is 10:22 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