[gentoo-user] Re: Re: Asking dhcp for a static address

2006-01-06 Thread Peter
On Fri, 06 Jan 2006 14:34:07 +0100, Sergio Polini wrote:

 
 (i.e., my gateway address, which is different ;-) to /etc/resolv.conf? My
 resolv.conf after a dhcp connession is:
 
 domain fastwebnet.it
 nameserver 213.156.54.80
 nameserver 213.156.54.81
 
 (Fastweb is my provider).
 
 What should my resolv.conf look like? Thanks.
 Sergio

So, you do NOT have a router? Then keep dhcp. If your ISP has assigned you
a static IP, then you should ask them for specifics. Most do not assign
static IP though. Sorry I could not help more. I use a router and each PC
is assigned a specific IP within the local net. However, the ROUTER gets
the Dynamic IP from our ISP.

Sorry I could not help more. dhcp is really great!


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Re: Asking dhcp for a static address

2006-01-06 Thread Martins Steinbergs
On Friday 06 January 2006 19:33, Peter wrote:
 On Fri, 06 Jan 2006 14:34:07 +0100, Sergio Polini wrote:
  (i.e., my gateway address, which is different ;-) to /etc/resolv.conf? My
  resolv.conf after a dhcp connession is:
 
  domain fastwebnet.it
  nameserver 213.156.54.80
  nameserver 213.156.54.81
 
  (Fastweb is my provider).
 
  What should my resolv.conf look like? Thanks.
  Sergio

 So, you do NOT have a router? Then keep dhcp. If your ISP has assigned you
 a static IP, then you should ask them for specifics. Most do not assign
 static IP though. Sorry I could not help more. I use a router and each PC
 is assigned a specific IP within the local net. However, the ROUTER gets
 the Dynamic IP from our ISP.

 Sorry I could not help more. dhcp is really great!

for static generaly there is needed only 2 sections in /etc/conf.d/net
config_eth0 with static ip, netmask and brodcast
routes_eth0 with gateway ip

no need for dhcp, see net.example


m
-- 
Linux 2.6.14-gentoo-r6 AMD Athlon(tm) 64 Processor 3200+
 20:49:23 up 1 day, 0 min,  4 users,  load average: 0.00, 0.10, 0.79


pgpA6JKQX7wRN.pgp
Description: PGP signature


Re: [gentoo-user] Re: Re: Asking dhcp for a static address

2006-01-06 Thread Stroller


On 6 Jan 2006, at 17:33, Peter wrote:

On Fri, 06 Jan 2006 14:34:07 +0100, Sergio Polini wrote:


(i.e., my gateway address, which is different ;-) to /etc/ 
resolv.conf? My

resolv.conf after a dhcp connession is:

domain fastwebnet.it
nameserver 213.156.54.80
nameserver 213.156.54.81

(Fastweb is my provider).

What should my resolv.conf look like? Thanks.
Sergio


So, you do NOT have a router? Then keep dhcp. If your ISP has  
assigned you
a static IP, then you should ask them for specifics. Most do not  
assign

static IP though.


If it's the ISP issuing a static IP then he won't need to (use the -s  
flag) to ask for it. They'll issue it to him if he uses a standard  
DHCP request to ask for just any old IP. DHCP servers can be  
configured to always issue the same IP to a given MAC address and  
ADSL ISPs in the UK issue static IPs via DHCP according to PPP  
authentication info. There's surely no need for him to specify it.


Stroller.
--
gentoo-user@gentoo.org mailing list