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 09-24-2009, 07:30 PM   #1
scucci
Member
 
Registered: Sep 2009
Posts: 31

Rep: Reputation: 15
Static Ethernet Settings


Hello all - I have a few questions regarding the configuration of a static Ethernet connection. I'm running CentOS 5.

1. Why isn’t the IFCONIFG command persistent? And is there a way to make this consistent using IFCONFIG?
- I edited the file /etc/sysconfig/network-scripts to make it consistent after a reboot. Is this the recommended way?
- There was also these variables in the file IPV6INIT=yes and IPV6_AUTOCONF=yes. (Does this mean that you’re using IPV6 or that its enabled for it?)

2. I added a few DNS servers to the /etc/resolv.conf file. Is there a way to give a priority or a weight?

3. I setup the default gateway two ways, but I’m not sure which one is correct:
- I edited the /etc/sysconfig/network and added the GATEWAY=192.168.1.1 to the file.
- I also added the command “route add default gw 192.168.1.1 eth0”. Which one is the correct or recommended way to do this?

Thanks

Scucci

Last edited by scucci; 09-24-2009 at 07:31 PM. Reason: forgot to put version
 
Old 09-24-2009, 09:44 PM   #2
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 09:35 PM.
 
Old 09-24-2009, 10:46 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,326

Rep: Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364
If you want to disable IPv6, edit /etc/modprobe.conf

alias net-pf-10 off
alias ipv6 off


and remove refs to ipv6 in the network/ifcfg scripts.

Finally, reboot.
 
Old 09-25-2009, 08:00 AM   #4
scucci
Member
 
Registered: Sep 2009
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Smartpatrol View Post
/etc/sysconfig/network is not the only place for the default gateway but its better of a few choices.
By adding the route command as well as editing the file cause issues issues? Is it recomended to do one and not the other?
 
Old 09-26-2009, 09:14 PM   #5
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
Nope

...

Last edited by Smartpatrol; 03-11-2010 at 09:35 PM.
 
Old 09-27-2009, 01:37 PM   #6
scucci
Member
 
Registered: Sep 2009
Posts: 31

Original Poster
Rep: Reputation: 15
I guess what I was trying to say was, which one would take precedence if both were configured?
 
Old 09-27-2009, 01:57 PM   #7
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 90
I'm pretty sure the one in /etc/sysconfig/network-scripts has priority.
 
  


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
static ip settings not working in fedora 4 lauren Linux - Networking 4 01-25-2006 06:45 AM
Static Network settings scott4957 Linux - Wireless Networking 2 11-16-2005 09:58 AM
how to config. network settings for having a static ip with a router kkeith Linux - Newbie 2 10-19-2005 05:00 AM
Static IP settings carlosinfl Linux - Networking 4 07-01-2004 06:29 AM
vnc and static settings... pablovschby Linux - Networking 15 12-07-2003 03:27 PM


All times are GMT -5. The time now is 12:39 PM.

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