LinuxQuestions.org
Visit Jeremy's Blog.
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


Closed Thread
  Search this Thread
Old 10-05-2010, 09:31 PM   #1
chickonlinux
LQ Newbie
 
Registered: Oct 2010
Location: Northeast PA
Distribution: CentOS
Posts: 21

Rep: Reputation: 1
Running minimal Cent OS 4.7 - Ethernet setup issue


I have a minimal Cent OS running for a special project. I cant seem to get the ethernet up and running although the PCI NIC seems to recognized by the OS.

What are the bare essential setting for getting an ethernet connection running ?

Im not worried about security as the machine is behind a firewall router so the firewall can get turned off.

All I have is a command line and no GUI for this installed OS.
 
Old 10-06-2010, 03:03 AM   #2
Nemesiz
Member
 
Registered: Oct 2007
Posts: 43

Rep: Reputation: 2
If you want to set ethernet you can use ifconfig and ip programs to do it.
To list all network devices - #cat /proc/net/dev
To list running netrowks - #ifconfig
To turn on - #ifconfig $device up
Turn off - #ifconfig $device down
To set settings (example) - #ifconfig eth0 192.168.0.4 netmask 255.255.255.0

To set default gateway - #ip route add default via IP_OF_GATEWAY dev DEFAULT_NETWORK_DEVICE
(example) #ip route add default via 192.168.0.1 dev eth0

DNS resolves file - /etc/resolv.conf
 
Old 10-07-2010, 06:01 AM   #3
chickonlinux
LQ Newbie
 
Registered: Oct 2010
Location: Northeast PA
Distribution: CentOS
Posts: 21

Original Poster
Rep: Reputation: 1
What about iptables ? How do I make sure the nothing is getting blocked to and from the NIC ?

Quote:
Originally Posted by Nemesiz View Post
If you want to set ethernet you can use ifconfig and ip programs to do it.
To list all network devices - #cat /proc/net/dev
To list running netrowks - #ifconfig
To turn on - #ifconfig $device up
Turn off - #ifconfig $device down
To set settings (example) - #ifconfig eth0 192.168.0.4 netmask 255.255.255.0

To set default gateway - #ip route add default via IP_OF_GATEWAY dev DEFAULT_NETWORK_DEVICE
(example) #ip route add default via 192.168.0.1 dev eth0

DNS resolves file - /etc/resolv.conf
 
Old 10-10-2010, 03:43 AM   #4
sandebains
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
to view if the iptables rules are in place

# chkconfig --list | grep iptables

and

#iptables -L -v

this command gives you the details on rules, you need to run this under su

in order to clear/flush all the rules you can use

#iptables -F

I hope this info will help
 
Old 10-11-2010, 01:55 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being moved to linux-newbie so it can be merged with the original.
 
  


Closed Thread


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
Setup Home (DSL + Netgear Router) DNS (bind) for use with qmail on Cent-OS 5.3 sheps126 Linux - Server 2 04-30-2010 02:36 PM
Mail Server setup on EC2 on Cent OS 5.2 kentor Linux - Software 0 07-02-2009 03:17 PM
VLC not running as root....(Cent 5.2) spectrum007 Linux - Software 6 01-18-2009 06:59 AM
could not install broadcom netlink ethernet driver in Cent OS in lenevo G400 laptop kiritgiri Linux - Hardware 3 08-29-2008 03:36 PM
Remote Server Setup between Linux(Cent os (BSD)) & Sun Solaris vishalimpact Linux - Newbie 3 09-19-2007 02:55 AM


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