Re: [gentoo-user] DHCP interface?

2003-12-12 Thread Chris Bare
  restart it manually do:
  
  /etc/init.d/net.eth1 stop
  /etc/init.d/net.eth1 start
  
  That will cause it to go out and get it's new settings via dhcp.
 
 
 Ahhh Thank you.
 When I do this, (the commands your referring to above) does this tell
 it to look in ect/conf.d/net then..? And from there it knows
 whether its a static ip or to run dhcp??
 
 Thanks,
 JBanks

exactly.
-- 
Chris Bare
[EMAIL PROTECTED]

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] DHCP interface?

2003-12-12 Thread Joshua Banks

--- Chris Bare [EMAIL PROTECTED] wrote:
   restart it manually do:
   
   /etc/init.d/net.eth1 stop
   /etc/init.d/net.eth1 start
   
   That will cause it to go out and get it's new settings via dhcp.
  
  
  Ahhh Thank you.
  When I do this, (the commands your referring to above) does this
 tell
  it to look in ect/conf.d/net then..? And from there it knows
  whether its a static ip or to run dhcp??
  
  Thanks,
  JBanks
 
--- Chris Bare [EMAIL PROTECTED] wrote:

 exactly.


Thanks Chris.

JBanks

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] DHCP interface?

2003-12-12 Thread Cameron King
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thursday 11 December 2003 10:24 pm, Joshua Banks said something like...

 Ahhh Thank you.
 When I do this, (the commands your referring to above) does this tell
 it to look in ect/conf.d/net then..? And from there it knows
 whether its a static ip or to run dhcp??

 Thanks,
 JBanks

You are right here.

For future reference, you could also take a look at the script itself if 
you are looking for a particular answer.  Even if you don't understand 
the script, often there will be useful comments.  You will probably see 
in the comments at the top of your /etc/init.d/net.ethX script a 
reference to /etc/conf.d/net for configuration.

Actually, I don't know exactly when the values from conf.d/net are loaded, 
but I could only assume that it happens before the script runs (I can't 
find any place in-script where it is loaded - but I could be way off base 
here.)

Good luck.

- -- 
|  ()  Cameron King [EMAIL PROTECTED]
|  /\  Student, Harding University (CompSciBible Major)
|
+== [ ASCII Ribbon Campaign ] ===  === [ GPG 0xC60354AC ] ==+
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/2aWmhN+obMYDVKwRArL8AJoD4HYHQeZKUsb5rIPANEWyiGMZMACgnNVd
0CbXqPbKavMHyP7LiZH/OcI=
=BaGR
-END PGP SIGNATURE-


--
[EMAIL PROTECTED] mailing list



[gentoo-user] DHCP interface?

2003-12-11 Thread Joshua Banks
Reposting in the hopes that I get a bite. I've researched this but
don't seem to find anything significant that helps answer my 2
questions.

JBanks

--- Joshua Banks [EMAIL PROTECTED] wrote:
 Hello,
 
 I've just added another nic card and statically assigned the address
 and used rc-update add net.eth1 default and added the eth1
 interface/address info in /etc/conf.d/net. This works fine right now
 with a static address.
 
 2 questions:
 
 1) Eth1 will be connected to a cable modem and will need to be using
 dhcp to get its interface/gateway info. So do I just simply edit the
 /etc/conf.d/net settings when the time comes to change from static to
 dhcp and the eth1 interface will automatically revert to using dhcp
 settings or do I need to do something otherwise?
 
 2) Having added eth1 to the default run-level via rc-update, will
 switching the interface to dhcp (versus it being statically addressed
 now) have an effect or not? If so, what (if simple) do I need to do?
 
 Thanks,
 Joshua Banks
 
 __
 Do you Yahoo!?
 New Yahoo! Photos - easier uploading and sharing.
 http://photos.yahoo.com/
 
 --
 [EMAIL PROTECTED] mailing list
 


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] DHCP interface?

2003-12-11 Thread Jayson Garrell
On Thu, 2003-12-11 at 13:35, Joshua Banks wrote:
 Reposting in the hopes that I get a bite. I've researched this but
 don't seem to find anything significant that helps answer my 2
 questions.
 
 JBanks
 
 --- Joshua Banks [EMAIL PROTECTED] wrote:
  Hello,
  
  I've just added another nic card and statically assigned the address
  and used rc-update add net.eth1 default and added the eth1
  interface/address info in /etc/conf.d/net. This works fine right now
  with a static address.
  
  2 questions:
  
  1) Eth1 will be connected to a cable modem and will need to be using
  dhcp to get its interface/gateway info. So do I just simply edit the
  /etc/conf.d/net settings when the time comes to change from static to
  dhcp and the eth1 interface will automatically revert to using dhcp
  settings or do I need to do something otherwise?
  

Just change it in /etc/conf.d/net like you mentioned. That is all that
is needed.

  2) Having added eth1 to the default run-level via rc-update, will
  switching the interface to dhcp (versus it being statically addressed
  now) have an effect or not? If so, what (if simple) do I need to do?
  

Correct. If you make the change in /etc/conf.d/net it will work as you
expect. The file /etc/conf.d/net is nothing more then a place holder for
numeric ip values. Adding it via 'rc-update add net.eth1 default' only
told gentoo to start that device at boot time, the config is where the
acual values come from.

All in all you were on the right path to begin with.

Jayson Garrell



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] DHCP interface?

2003-12-11 Thread Chris Bare
 Just change it in /etc/conf.d/net like you mentioned. That is all that
 is needed.
 
   2) Having added eth1 to the default run-level via rc-update, will
   switching the interface to dhcp (versus it being statically addressed
   now) have an effect or not? If so, what (if simple) do I need to do?
   
 
 Correct. If you make the change in /etc/conf.d/net it will work as you
 expect. The file /etc/conf.d/net is nothing more then a place holder for
 numeric ip values. Adding it via 'rc-update add net.eth1 default' only
 told gentoo to start that device at boot time, the config is where the
 acual values come from.
 

It will only work as you expect if you reboot or restart eth1 manually. To
restart it manually do:

/etc/init.d/net.eth1 stop
/etc/init.d/net.eth1 start

That will cause it to go out and get it's new settings via dhcp.
-- 
Chris Bare
[EMAIL PROTECTED]

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] DHCP interface?

2003-12-11 Thread Joshua Banks
Thanks Jayson.

JBanks
--- Jayson Garrell [EMAIL PROTECTED] wrote:
 On Thu, 2003-12-11 at 13:35, Joshua Banks wrote:
  Reposting in the hopes that I get a bite. I've researched this but
  don't seem to find anything significant that helps answer my 2
  questions.
  
  JBanks
  
  --- Joshua Banks [EMAIL PROTECTED] wrote:
   Hello,
   
   I've just added another nic card and statically assigned the
 address
   and used rc-update add net.eth1 default and added the eth1
   interface/address info in /etc/conf.d/net. This works fine right
 now
   with a static address.
   
   2 questions:
   
   1) Eth1 will be connected to a cable modem and will need to be
 using
   dhcp to get its interface/gateway info. So do I just simply edit
 the
   /etc/conf.d/net settings when the time comes to change from
 static to
   dhcp and the eth1 interface will automatically revert to using
 dhcp
   settings or do I need to do something otherwise?
   
 
 Just change it in /etc/conf.d/net like you mentioned. That is all
 that
 is needed.
 
   2) Having added eth1 to the default run-level via rc-update,
 will
   switching the interface to dhcp (versus it being statically
 addressed
   now) have an effect or not? If so, what (if simple) do I need to
 do?
   
 
 Correct. If you make the change in /etc/conf.d/net it will work as
 you
 expect. The file /etc/conf.d/net is nothing more then a place holder
 for
 numeric ip values. Adding it via 'rc-update add net.eth1 default'
 only
 told gentoo to start that device at boot time, the config is where
 the
 acual values come from.
 
 All in all you were on the right path to begin with.
 
 Jayson Garrell
 
 
 
 --
 [EMAIL PROTECTED] mailing list
 


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] DHCP interface?

2003-12-11 Thread Joshua Banks

--- Chris Bare [EMAIL PROTECTED] wrote:

 It will only work as you expect if you reboot or restart eth1
 manually. To
 restart it manually do:
 
 /etc/init.d/net.eth1 stop
 /etc/init.d/net.eth1 start
 
 That will cause it to go out and get it's new settings via dhcp.


Ahhh Thank you.
When I do this, (the commands your referring to above) does this tell
it to look in ect/conf.d/net then..? And from there it knows
whether its a static ip or to run dhcp??

Thanks,
JBanks

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

--
[EMAIL PROTECTED] mailing list