LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-31-2011, 10:31 AM   #76
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040

You need to define your gateway and a nameserver, so you can resolve domain names.
If the gui too is not working, you can edit directly /etc/sysconfig/network-scripts/ifcfg-eth0 to assign IP etc to your nic, /etc/sysconfig/network to define the gateway and /etc/resolv.conf to add one or more nameservers
For details have a look here

Regards
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-31-2011, 01:42 PM   #77
Zahar2011
Member
 
Registered: Mar 2011
Distribution: rhel 6.0
Posts: 37

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by bathory View Post
You need to define your gateway and a nameserver, so you can resolve domain names.
If the gui too is not working, you can edit directly /etc/sysconfig/network-scripts/ifcfg-eth0 to assign IP etc to your nic, /etc/sysconfig/network to define the gateway and /etc/resolv.conf to add one or more nameservers
For details have a look here

Regards
Can u please guide me step by step how to make the necessary changes?. The website you refered me says The /etc/sysconfig/networking/ directory is used by the Network Administration Tool (system-config-network) and its contents should not be edited manually. I just dont want to tamper with the whole thing and go back to square one. Bear with me i'm very new in linux.
 
Old 03-31-2011, 04:37 PM   #78
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Quote:
Can u please guide me step by step how to make the necessary changes?. The website you refered me says The /etc/sysconfig/networking/ directory is used by the Network Administration Tool (system-config-network) and its contents should not be edited manually. I just dont want to tamper with the whole thing and go back to square one. Bear with me i'm very new in linux.
You can always make backups of the files you edit, so you can revert back if something goes wrong. Anyway try the following:

/etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=60:EB:69:A0:45:1B 
IPADDR=192.168.1.102
NETMASK=255.255.255.192
ONBOOT=yes
/etc/sysconfig/network
Code:
NETWORKING=yes
GATEWAY=192.168.1.1
Note: change the gateway IP to match your router, or whatever device you use to access the internet

/etc/resolv.conf
Code:
nameserver 8.8.8.8
nameserver 208.67.222.222
Here I've used google and opendns name servers, but you can use your ISP's name servers if you want

Then restart the network service and test:
Code:
/etc/init.d/network restart
BTW you can use google to search for example "how to setup network on RHEL" and don't wait for us to answer

Regards
 
Old 03-31-2011, 05:41 PM   #79
Zahar2011
Member
 
Registered: Mar 2011
Distribution: rhel 6.0
Posts: 37

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by bathory View Post
You can always make backups of the files you edit, so you can revert back if something goes wrong. Anyway try the following:

/etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=60:EB:69:A0:45:1B 
IPADDR=192.168.1.102
NETMASK=255.255.255.192
ONBOOT=yes
/etc/sysconfig/network
Code:
NETWORKING=yes
GATEWAY=192.168.1.1
Note: change the gateway IP to match your router, or whatever device you use to access the internet

/etc/resolv.conf
Code:
nameserver 8.8.8.8
nameserver 208.67.222.222
Here I've used google and opendns name servers, but you can use your ISP's name servers if you want

Then restart the network service and test:
Code:
/etc/init.d/network restart
BTW you can use google to search for example "how to setup network on RHEL" and don't wait for us to answer

Regards
Thanks for your reply. Well i do both, i search the internet and also wait for your reply.It is just that i haven't yet found better than what i get from this forum.
Anyway i have no ifcfg-eth0 as you can see below: the ifcfg-lo that i have below is text file not a directory

[root@localhost network-scripts]# ls
ifcfg-lo ifdown-ppp ifup-ippp ifup-sit
ifdown ifdown-routes ifup-ipv6 ifup-tunnel
ifdown-bnep ifdown-sit ifup-isdn ifup-wireless
ifdown-eth ifdown-tunnel ifup-plip init.ipv6-global
ifdown-ippp ifup ifup-plusb net.hotplug
ifdown-ipv6 ifup-aliases ifup-post network-functions
ifdown-isdn ifup-bnep ifup-ppp network-functions-ipv6
ifdown-post ifup-eth ifup-routes

Moreover i have no resolv.conf under /etc
 
Old 03-31-2011, 05:52 PM   #80
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
If they don't exist, you can create them.
They are supposed to be created by the system-config-network) gui tool
 
  


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] Installing Ethernet Driver gives me Error Hassan989 Linux - Software 4 03-22-2011 02:34 PM
Installing Ethernet Driver gives me Error Hassan989 Linux - Hardware 3 03-22-2011 11:03 AM
error while installing bcm4400 RPM ethernet driver ksr Red Hat 1 10-08-2004 02:33 PM
installing GDAM returns GTK error b_s Linux - Software 1 08-31-2003 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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