LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2013, 01:12 AM   #1
branddonchau
Member
 
Registered: Mar 2013
Posts: 36

Rep: Reputation: Disabled
Question Network card query


Hi all,

I suppose my F15 system has this file "ifcfg-eth0" under "/etc/sysconfig/network-scripts" directory and this file allow me to config my network (e.g IP and Netmask), but i don't see this file, so is it meaning my F15 can't detect my network card? Thanks.

Brgds/Brandon Chau
 
Old 03-28-2013, 01:34 AM   #2
jitendra.sharma
Member
 
Registered: Mar 2013
Location: ahmedabad
Distribution: CentOS, Ubuntu, Debian
Posts: 92
Blog Entries: 1

Rep: Reputation: Disabled
perhaps it will help you.......
http://www.linuxquestions.org/questi...ng-nic-854478/
 
Old 03-28-2013, 02:43 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Try this HOWTO http://www.linuxtopia.org/online_boo...nterfaces-eth0
 
Old 03-28-2013, 03:33 AM   #4
branddonchau
Member
 
Registered: Mar 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
Hi jitendra.sharma,

Thanks , i run the "lspci" command , i see my Ethernet controller ,
but still don;t see the "ifcfg-eth0" file,
so how should i do for the next step? Thanks.

"lspci" result


01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

Last edited by branddonchau; 03-28-2013 at 04:51 AM.
 
Old 03-28-2013, 04:50 AM   #5
branddonchau
Member
 
Registered: Mar 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
Hi all,

i just downloaded the driver (r8101-1.023.00.tar.bz2) and unzip , then run the command ./autorun.sh
; Finally i see installation completed and reboot PC, but i still can't see the network card , someone can help?
Thanks.

r8101-1.023.00/
r8101-1.023.00/src/
r8101-1.023.00/src/rtltool.h
r8101-1.023.00/src/rtl_eeprom.h
r8101-1.023.00/src/r8101.h
r8101-1.023.00/src/r8101_n.c
r8101-1.023.00/src/rtl_ethtool.h
r8101-1.023.00/src/rtl_eeprom.c
r8101-1.023.00/src/Makefile_linux24x
r8101-1.023.00/src/Makefile
r8101-1.023.00/src/rtltool.c
r8101-1.023.00/autorun.sh
r8101-1.023.00/readme
r8101-1.023.00/Makefile

Last edited by branddonchau; 03-28-2013 at 05:30 AM.
 
Old 04-01-2013, 02:03 AM   #6
jitendra.sharma
Member
 
Registered: Mar 2013
Location: ahmedabad
Distribution: CentOS, Ubuntu, Debian
Posts: 92
Blog Entries: 1

Rep: Reputation: Disabled
branddonchau that means your Ethernetcard is detecting properly.
You can just create a file at /etc/sysconfig/network-scripts/ifcfg-eth0 with contents similar to:

DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.0.199
NETMASK=255.255.255.0
GATEWAY=192.168.0.1

for more details you can follow this link:-
http://www.linuxquestions.org/questi...ng-nic-854478/

Last edited by jitendra.sharma; 04-01-2013 at 02:21 AM.
 
Old 04-01-2013, 03:39 AM   #7
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 516

Rep: Reputation: 139Reputation: 139
Code:
# system-config-network
 
Old 04-02-2013, 01:35 AM   #8
branddonchau
Member
 
Registered: Mar 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
Hi jitendra.sharma, mddesai,

1. I created a new "ifcfg-eth0" file under /etc/sysconfig/network-scripts/ already,
and then i used cmd "system-config-network" to config my IP and dns
after reboot pc , i tried to ping my gateway , screen appear
connect : Network is unreachable

2. A file "ifcfg-em1" under /etc/sysconfig/network-scripts/ ,
it seems contain my network card default config. The default config as below. I also modified the "ifcfg-em1" file as like as "ifcfg-eth0" and reboot PC , still not works @@ , What should i do ?

DEVICE=em1
HWADDR=00:26:18:68:7D:80
ONBOOT=no
NM_CONTROLLED=yes
BOOTPROTO=dhcp
TYPE=Ethernet
IPV6INIT=no
USERCTL=no

Brgds/Brandon Chau

Last edited by branddonchau; 04-02-2013 at 01:39 AM.
 
Old 04-02-2013, 01:43 AM   #9
jitendra.sharma
Member
 
Registered: Mar 2013
Location: ahmedabad
Distribution: CentOS, Ubuntu, Debian
Posts: 92
Blog Entries: 1

Rep: Reputation: Disabled
DEVICE=em1
HWADDR=00:26:18:68:7D:80
ONBOOT=no =======================> ONBOOT=yes (change this)
NM_CONTROLLED=yes
BOOTPROTO=dhcp
TYPE=Ethernet
IPV6INIT=no
USERCTL=no

and
service network restart
 
Old 04-02-2013, 02:19 AM   #10
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 516

Rep: Reputation: 139Reputation: 139
Try this:

1. restart the network service
Code:
# service network restart
2. enable eth0
Code:
# ifup eth0
3. check whether u r getting any ip address? (if you are getting any ip address, then change to ONBOOT=yes)
Code:
# ifconfig eth0
4. check hardware address (both should be same)
Code:
# cat /etc/sysconfig/network-scripts/ifcfg-eth0 | grep -i hwaddr
HWADDR=00:26:18:68:7D:80

# cat /etc/udev/rules.d/70-persistent-net.rules 
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x1186:0x1300 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:26:18:68:7D:80", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
5. and finally, if you have used 'system-config-network', make sure 'NM_CONTROLLED=yes' 'ONBOOT=yes'. and dont edit ifcfg-eth0 yourself, let Network Manager deal with it.

Last edited by mddnix; 04-02-2013 at 02:28 AM.
 
Old 04-02-2013, 02:52 AM   #11
branddonchau
Member
 
Registered: Mar 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
Hi all,

1. When i run cmd "service network restart" , screen appear
Job failed. See system logs and "systemctl status" for details.
How can i check the system logs?

2. when i run the cmd ifup eth0 , screen appear
ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Device eth0 does not seem to be present, delaying initialization.


3. i can't get any ip , 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:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:240 (240.0 b) TX bytes:240 (240.0 b)


Actually , i'm confusing why i need to config two files em1 and eth0 ? Because i just need to use one network card, Why i need to config two device setting? Who can tell me what is the relationship between em1 and eth0? Thanks.

Brgds/Brandon Chau
 
Old 04-02-2013, 03:33 AM   #12
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 516

Rep: Reputation: 139Reputation: 139
show your '/etc/udev/rules.d/70-persistent-net.rules' file
 
Old 04-02-2013, 03:41 AM   #13
branddonchau
Member
 
Registered: Mar 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
Hi mddesai,

I don't have the file "70-persistent-net.rules" under /etc/udev/rules.d/

Only have a file "70-persistent-cd.rules"

Brgds/Brandon Chau
 
Old 04-02-2013, 04:04 AM   #14
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 516

Rep: Reputation: 139Reputation: 139
Quote:
Originally Posted by branddonchau View Post
I don't have the file "70-persistent-net.rules" under /etc/udev/rules.d/

Only have a file "70-persistent-cd.rules"
Sorry!! my mistake. i thought centos and fedora config files will be same. i just saw F15 in virtualbox, and its little bit different. forget all i told before. just follow screen shots, and see happens....
Attached Thumbnails
Click image for larger version

Name:	01.jpg
Views:	15
Size:	77.7 KB
ID:	12189   Click image for larger version

Name:	02.jpg
Views:	16
Size:	77.5 KB
ID:	12190   Click image for larger version

Name:	03.jpg
Views:	15
Size:	89.3 KB
ID:	12191  
 
1 members found this post helpful.
Old 04-02-2013, 04:23 AM   #15
branddonchau
Member
 
Registered: Mar 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
Hi,

1. I don't have the network iron (two computers)as like as your screen,
so i go to application\other\network connection manually.
After i click the "add" button in the network connection screen ,
all fields are blank and i can't modify anything.

P.S How to capture the screen as like as you? I can capture the screen to you and see.

2. I just run the cmd "systemctl status network.service" and checked the error about "Job failed. See system logs and "systemctl status" for details."

network.service - LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network)
Active: failed since Tue, 02 Apr 2013 14:34:56 +0800; 1h 19min ago
Process: 1506 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/network.service

Thanks.
Brgds/Brandon Chau

Last edited by branddonchau; 04-02-2013 at 04:41 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
How to query Video card firmware version? madhi Linux - Hardware 2 06-09-2008 04:57 PM
linux shuts down built in network card then windows tells me network card is unplugge lesmoxhaybaker SUSE / openSUSE 8 08-29-2006 06:10 PM
Network Simulator query bhuvan007 Linux - Networking 1 03-04-2006 02:12 AM
how to query into nodes of network nedian123 Linux - Hardware 1 07-15-2004 05:02 PM
How to query a card for its capabilities seacow Linux - Wireless Networking 1 05-31-2004 08:34 AM


All times are GMT -5. The time now is 11:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration