niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » NetBSD
ifconfig and dynamic ip
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
Author Message
Mr K
*nix forums beginner


Joined: 08 Mar 2005
Posts: 9

PostPosted: Sat Jun 24, 2006 8:54 pm    Post subject: Re: ifconfig and dynamic ip Reply with quote

Ok, Thanks guys for your answers, now I have a clue to follow, let see what
is going on.

--



Mr K
http://4x4.no-ip.com
(Powered By NetBSD for Cobalt)



"Mr K" <cleivas@cox.net> escribió en el mensaje
news:eIJmg.198$Gv.3@fed1read09...
Quote:
Hi:

I have this stupid question but I look into the documentation, google, etc
and I can't get the answer, how the hell can I make a NIC to have a
dynamic ip address (ifconfig file), I found that in OpenBSD you have to
put "dhcp none none" to the ifconfig.if file but how you do that on
NetBSD??.

My idea is to make a router using NetBSD and PF but my ISP provide me with
a dynamic ip address

Thanks, and sorry for the trivial question.


Mr K
http://4x4.no-ip.com
(Powered By NetBSD for Cobalt)



Back to top
David Lord
*nix forums Guru Wannabe


Joined: 03 Mar 2005
Posts: 113

PostPosted: Sat Jun 24, 2006 7:31 am    Post subject: Re: ifconfig and dynamic ip Reply with quote

On Friday, in article <JIZmg.269$Gv.12@fed1read09>
cleivas@cox.net "Mr K" wrote:

Quote:
Hi:

Are you talking about this example from ifconfig.if??


The following illustrates dynamic configuration setup with dhclient(Cool
and rtsol(Cool:

up
# autoconfigure IPv4 address
!dhclient $int
# autoconfigure IPv6 address. Be sure to set $ip6mode to
autohost.
!rtsol $int

You probably don't need ipv6 or rtsol though, and don't try to
mix use of dhclient from both rc.conf and ifconfig.if.

Possibly you might also need additions to dhclient.conf.


David
Back to top
Mr K
*nix forums beginner


Joined: 08 Mar 2005
Posts: 9

PostPosted: Fri Jun 23, 2006 10:13 pm    Post subject: Re: ifconfig and dynamic ip Reply with quote

Hi:

Are you talking about this example from ifconfig.if??


The following illustrates dynamic configuration setup with dhclient(Cool
and rtsol(Cool:

up
# autoconfigure IPv4 address
!dhclient $int
# autoconfigure IPv6 address. Be sure to set $ip6mode to
autohost.
!rtsol $int

Thanks


Mr K
http://4x4.no-ip.com
(Powered By NetBSD for Cobalt)



"David Lord" <snews@lordynet.demon.co.uk> escribió en el mensaje
news:20060623.1208.5694snz@lordynet.demon.co.uk...
Quote:
On Thursday, in article <eIJmg.198$Gv.3@fed1read09
cleivas@cox.net "Mr K" wrote:

Hi:

I have this stupid question but I look into the documentation, google,
etc
and I can't get the answer, how the hell can I make a NIC to have a
dynamic
ip address (ifconfig file), I found that in OpenBSD you have to put "dhcp
none none" to the ifconfig.if file but how you do that on NetBSD??.

My idea is to make a router using NetBSD and PF but my ISP provide me
with a
dynamic ip address

'man ifconfig.if'

There is an example in there.

David

--
The Reply-To: is valid for at least 30 days after posting date
David Lord - david@lordynet.demon.co.uk
Back to top
David Lord
*nix forums Guru Wannabe


Joined: 03 Mar 2005
Posts: 113

PostPosted: Fri Jun 23, 2006 12:08 pm    Post subject: Re: ifconfig and dynamic ip Reply with quote

On Thursday, in article <eIJmg.198$Gv.3@fed1read09>
cleivas@cox.net "Mr K" wrote:

Quote:
Hi:

I have this stupid question but I look into the documentation, google, etc
and I can't get the answer, how the hell can I make a NIC to have a dynamic
ip address (ifconfig file), I found that in OpenBSD you have to put "dhcp
none none" to the ifconfig.if file but how you do that on NetBSD??.

My idea is to make a router using NetBSD and PF but my ISP provide me with a
dynamic ip address

'man ifconfig.if'

There is an example in there.

David

--
The Reply-To: is valid for at least 30 days after posting date
David Lord - david@lordynet.demon.co.uk
Back to top
gdt@work.lexort.com
*nix forums beginner


Joined: 09 May 2006
Posts: 4

PostPosted: Fri Jun 23, 2006 11:44 am    Post subject: Re: ifconfig and dynamic ip Reply with quote

two ways (from memory, not tested):

In e.g. /etc/ifconfig.fxp0

!/sbin/dhclient fxp0


Or in rc.conf

dhclient=YES
dhclient_flags="fxp0"

(by default, dhclient will autoconfig all broadcast interfaces, which
sounds like not what you want).

--
Greg Troxel <gdt@work.lexort.com>
Back to top
Mr K
*nix forums beginner


Joined: 08 Mar 2005
Posts: 9

PostPosted: Fri Jun 23, 2006 4:01 am    Post subject: ifconfig and dynamic ip Reply with quote

Hi:

I have this stupid question but I look into the documentation, google, etc
and I can't get the answer, how the hell can I make a NIC to have a dynamic
ip address (ifconfig file), I found that in OpenBSD you have to put "dhcp
none none" to the ifconfig.if file but how you do that on NetBSD??.

My idea is to make a router using NetBSD and PF but my ISP provide me with a
dynamic ip address

Thanks, and sorry for the trivial question.


Mr K
http://4x4.no-ip.com
(Powered By NetBSD for Cobalt)
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
The time now is Fri Nov 21, 2008 6:07 am | All times are GMT
navigation Forum index » *nix » BSD » NetBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Dynamic IP Issues, when Sever is on Fixed. spode Postfix 2 Tue Aug 14, 2007 2:10 pm
No new posts WG: WG: Vacation exim 4 dynamic ip problem Daniel Müller Exim 1 Tue Jul 18, 2006 1:02 pm
No new posts MDaemon and dynamic screening John Oxley Exim 1 Tue Jul 18, 2006 12:12 pm
No new posts WG: Vacation exim 4 dynamic ip problem Daniel Müller Exim 0 Tue Jul 18, 2006 7:05 am
No new posts dynamic char * help machikelxol@gmail.com C++ 8 Tue Jul 18, 2006 3:13 am

Loans | Mortgage | Mobile Phone deals | Remortgages | Advertising
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.6768s ][ Queries: 20 (0.4875s) ][ GZIP on - Debug on ]