switch to DCHP from static ip

0 views
Skip to first unread message

al plant

unread,
Aug 1, 2014, 9:49:48 PM8/1/14
to freebsd-...@freebsd.org
Aloha,

The Telcom here in Honolulu has brought in FiberOptic lines in my
neighborhood since the old copper was really bad speed. Cost was reduced
and speed is now excellent.

I need a how-to for moving an APSfilter print server on my static IP
lan to working with a DHCP network. The Telcom installed a PACE
wireless and told me I can add as many computers as I need using a
Netgear Gigabit switch.

I have installed one desktop on the switch and it has worked fine so far.

I never ised DHCP befor so any help would be appreciated.

/etc/rc.conf
-------------
lpd_enable="YES"
FreeBSD 8.* hostname="mano.intra.net"
ifconfig-re0="192.168.1.50 netmask 255.255.255.0"

--------------
For desktop I used >
ifconfig-re0="DHCP" to replace IP address. I seems to find the network fine. Now I cant find any information about putting a print server on the lan.

Thanks,
~ Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 ~
Supporting FreeBSD - UNIX Computer O/S
email: n...@hdk5.net
."All that's really worth doing is what we do for others" - Lewis Carrol


_______________________________________________
freebsd-...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Warren Block

unread,
Aug 1, 2014, 10:13:51 PM8/1/14
to al plant, freebsd-...@freebsd.org
On Fri, 1 Aug 2014, al plant wrote:

> Aloha,
>
> The Telcom here in Honolulu has brought in FiberOptic lines in my
> neighborhood since the old copper was really bad speed. Cost was reduced and
> speed is now excellent.
>
> I need a how-to for moving an APSfilter print server on my static IP lan to
> working with a DHCP network. The Telcom installed a PACE wireless and told me
> I can add as many computers as I need using a Netgear Gigabit switch.
>
> I have installed one desktop on the switch and it has worked fine so far.
>
> I never ised DHCP befor so any help would be appreciated.
>
> /etc/rc.conf
> -------------
> lpd_enable="YES"
> FreeBSD 8.* hostname="mano.intra.net"
> ifconfig-re0="192.168.1.50 netmask 255.255.255.0"
>
> --------------
> For desktop I used >
> ifconfig-re0="DHCP" to replace IP address. I seems to find the network fine.
> Now I cant find any information about putting a print server on the lan.

Figure what netblock is used by DHCP, probably the same one already
being used (192.168.1.1/24), figure out what range of those addresses
are not handed out by the DHCP server, and use one of those addresses
for the print server.

For example, if the DHCP server is providing addresses from
192.168.1.100-150, give the print server a static address of, say,
192.168.1.200.

Technically, you can probably continue to use the same address. A
decent DHCP server will ping an address before handing it out, to make
sure that address is not already being used. In practice, the firmware
in routers can be terrible and should be replaced, if possible, with
third-party firmware for sanity and safety.

Expert level for bonus points: set the DHCP server to hand out a fixed
address to the print server based on MAC address. The router might have
a web interface to set this up.

Summary: continue to use a static IP address for the print server.
Just make sure that address is inside the same netblock as the DHCP
addresses, but preferably outside the range of dynamic addresses.

al plant

unread,
Aug 1, 2014, 10:30:14 PM8/1/14
to Warren Block, alp...@att.net, freebsd-...@freebsd.org
Aloha Warren,

Thanks,

The PACE box is on 192.168.200.1.

I will check with Hawaii telcom for instructions on this unit. The mfg's
website is very unhelpful.

BTW:

Thanks for all the helpful tips you have posted on the list.

~ Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 ~
Supporting FreeBSD - UNIX Computer O/S
email: n...@hdk5.net
."All that's really worth doing is what we do for others" - Lewis Carrol


Roland Smith

unread,
Aug 2, 2014, 4:03:57 AM8/2/14
to al plant, alp...@att.net, freebsd-...@freebsd.org
On Fri, Aug 01, 2014 at 04:30:05PM -1000, al plant wrote:
> Warren Block wrote:
> > On Fri, 1 Aug 2014, al plant wrote:
> >
> >> Aloha,
> >>
> >> The Telcom here in Honolulu has brought in FiberOptic lines in my
> >> neighborhood since the old copper was really bad speed. Cost was
> >> reduced and speed is now excellent.
> >>
> >> I need a how-to for moving an APSfilter print server on my static IP
> >> lan to working with a DHCP network. The Telcom installed a PACE
> >> wireless and told me I can add as many computers as I need using a
> >> Netgear Gigabit switch.
> >>
> >> I have installed one desktop on the switch and it has worked fine so
> >> far.
> >>
> >> I never ised DHCP befor so any help would be appreciated.
> >>
> >> /etc/rc.conf
> >> -------------
> >> lpd_enable="YES"
> >> FreeBSD 8.* hostname="mano.intra.net"
> >> ifconfig-re0="192.168.1.50 netmask 255.255.255.0"
> >>
> >> --------------
> >> For desktop I used >
> >> ifconfig-re0="DHCP" to replace IP address. I seems to find the
> >> network fine. Now I cant find any information about putting a print
> >> server on the lan.
> >
<snip>
> > Summary: continue to use a static IP address for the print server.
> > Just make sure that address is inside the same netblock as the DHCP
> > addresses, but preferably outside the range of dynamic addresses.
> > _______________________________________________
> > freebsd-...@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questi...@freebsd.org"
> >
> >
<snip>
> The PACE box is on 192.168.200.1.
>
> I will check with Hawaii telcom for instructions on this unit. The mfg's
> website is very unhelpful.
>

Home routers generally have a web server running on their internal network.
You can use it to check and change (parts of) the configuration such as DHCP.
So try pointing your browser to 192.168.200.1. More often than not the default
login name / password combination is admin / admin.

Roland
--
R.F.Smith http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 5753 3324 1661 B0FE 8D93 FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0)

Michael Powell

unread,
Aug 2, 2014, 1:35:26 PM8/2/14
to freebsd-...@freebsd.org
[snip]
>> >
>> >
> <snip>
>> The PACE box is on 192.168.200.1.
>>
>> I will check with Hawaii telcom for instructions on this unit. The mfg's
>> website is very unhelpful.
>>
>
> Home routers generally have a web server running on their internal
> network. You can use it to check and change (parts of) the configuration
> such as DHCP. So try pointing your browser to 192.168.200.1. More often
> than not the default login name / password combination is admin / admin.
>
> Roland

I have my fbsd gateway box set for a static IP so I can configure it on the
router as the "DMZ" machine, which is orthogonal to the print server thing.
In order to get the IP in the same network I alter the DHCP scope in the
router. Once in the router web config, look for the section that configures
the DHCP server and there will be a starting address such as 192.168.200.2
and an ending address usually like 192.168.200.254. The 192.168.200.1 is
reserved for the router itself. Notice it is already outside the DHCP scope.
Simply increment the scope start address up one to 192.168.200.3 and you
will have freed an IP in the same network for use with a static IP. Of
course, adjust example for what matches the IP ranges in use by the router,
for example many are on 192.168.1.1 so instead of my DHCP scope beginning at
192.168.1.2 I changed it to begin at 192.168.1.3, allowing 192.168.1.2 to be
used as a static IP on the WAN-facing nic in my gateway machine.

-Mike

al plant

unread,
Aug 2, 2014, 4:24:10 PM8/2/14
to night...@hotmail.com, freebsd-...@freebsd.org
Thanks,

--



~ Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 ~
Supporting FreeBSD - UNIX Computer O/S
email: n...@hdk5.net
."All that's really worth doing is what we do for others" - Lewis Carrol


Polytropon

unread,
Aug 2, 2014, 5:07:44 PM8/2/14
to Roland Smith, alp...@att.net, freebsd-...@freebsd.org, al plant
On Sat, 2 Aug 2014 10:03:40 +0200, Roland Smith wrote:
> Home routers generally have a web server running on their internal network.
> You can use it to check and change (parts of) the configuration such as DHCP.
> So try pointing your browser to 192.168.200.1. More often than not the default
> login name / password combination is admin / admin.

Allow me an addition:

Some home routers with a web interface allow you to also
define fixed (local) addresses depending on the MAC address,
so the DHCP server will issue the same IP every time a
given device connects. However, not all routers support
that function - I have already met models where you can
select the local IP range (192.168.x.[y-z]), but you
cannot set fixed addresses...

Regarding the admin access: On some models, the factory
setting is printed on the back, or it comes with the docu-
mentation provided by the ISP which "normal people"
immediately throw away after receiving their new shiny
equipment. ;-)



--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

Al Plant

unread,
Aug 2, 2014, 5:29:45 PM8/2/14
to Polytropon, Roland Smith, alp...@att.net, freebsd-...@freebsd.org
Polytropon wrote:
> On Sat, 2 Aug 2014 10:03:40 +0200, Roland Smith wrote:
>> Home routers generally have a web server running on their internal network.
>> You can use it to check and change (parts of) the configuration such as DHCP.
>> So try pointing your browser to 192.168.200.1. More often than not the default
>> login name / password combination is admin / admin.
>
> Allow me an addition:
>
> Some home routers with a web interface allow you to also
> define fixed (local) addresses depending on the MAC address,
> so the DHCP server will issue the same IP every time a
> given device connects. However, not all routers support
> that function - I have already met models where you can
> select the local IP range (192.168.x.[y-z]), but you
> cannot set fixed addresses...
>
> Regarding the admin access: On some models, the factory
> setting is printed on the back, or it comes with the docu-
> mentation provided by the ISP which "normal people"
> immediately throw away after receiving their new shiny
> equipment. ;-)
>
>
>
#####

From the telcom. Thay did not leave any documentation. I got some from
PACE website and from the FreeBSD Gurus. For which I am thankful.

This PACE 5168NV router is labled as : http://192.168.200.1 For
configuration purposes.
:)


~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740
+ http://hawaiidakine.com + http://freebsdinfo.org +
+ http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* +
< email: n...@hdk5.net >
"All that's really worth doing is what we do for others."- Lewis Carrol

al plant

unread,
Aug 7, 2014, 6:30:04 PM8/7/14
to al plant, Warren Block, alp...@att.net, freebsd-...@freebsd.org
###
Thanks to all for suggestions and guidance and examples. I have the
hardwired FreeBSD printer and a couple of boxes up and working off the
Pace Router. (along with 3 wireless "I pads" and MS lap top and 1 pc.
###

Al

~ Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 ~
Supporting FreeBSD - UNIX Computer O/S
email: n...@hdk5.net
."All that's really worth doing is what we do for others" - Lewis Carrol


Reply all
Reply to author
Forward
0 new messages