|
|
|
|
|
|
| Author |
Message |
Mr K *nix forums beginner
Joined: 08 Mar 2005
Posts: 9
|
Posted: Fri Jun 23, 2006 4:01 am Post subject:
ifconfig and dynamic ip
|
|
|
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 |
|
 |
gdt@work.lexort.com *nix forums beginner
Joined: 09 May 2006
Posts: 4
|
Posted: Fri Jun 23, 2006 11:44 am Post subject:
Re: ifconfig and dynamic ip
|
|
|
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 |
|
 |
David Lord *nix forums Guru Wannabe
Joined: 03 Mar 2005
Posts: 113
|
Posted: Fri Jun 23, 2006 12:08 pm Post subject:
Re: ifconfig and dynamic ip
|
|
|
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 |
|
 |
Mr K *nix forums beginner
Joined: 08 Mar 2005
Posts: 9
|
Posted: Fri Jun 23, 2006 10:13 pm Post subject:
Re: ifconfig and dynamic ip
|
|
|
Hi:
Are you talking about this example from ifconfig.if??
The following illustrates dynamic configuration setup with dhclient(
and rtsol( :
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
|
Posted: Sat Jun 24, 2006 7:31 am Post subject:
Re: ifconfig and dynamic ip
|
|
|
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(
and rtsol( :
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
|
Posted: Sat Jun 24, 2006 8:54 pm Post subject:
Re: ifconfig and dynamic ip
|
|
|
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 |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Tue Dec 02, 2008 3:21 pm | All times are GMT
|
|
Nancy Ajram | Loan | Shopping 2007 | Books | Personal Loans
|
|
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
|
|