Re: DHCP Question

2011-06-14 Thread Chuck Swiger
On Jun 14, 2011, at 11:19 AM, jh...@socket.net wrote:
 I am working with a vendor and they are wanting me to send them ip 
 addresses via option 74 in DHCP (irc-server).  After I defined this in my 
 dhcpd.conf file, the option is still not being sent.  However, I am not 
 receiving a request for this option. 

I'm not sure why someone would care about setting an IRC server via DHCPd,
but I won't second-guess the requirement.

 I have done a bunch of Googling this morning/afternoon, and have not been 
 able to find a way to send the option whether it is requested or not. 

You want:

   option dhcp-parameter-request-list uint16;

 This  option,  when  sent  by the client, specifies which options the
 client wishes the server to  return.Normally,  in  the  ISC  DHCP
 client, this is done using the request statement.   If this option is
 not specified by the client, the DHCP  server  will  normally  return
 every  option  that  is  valid in scope and that fits into the reply.
 When this option is specified on the server, the server  returns  the
 specified  options.This  can  be  used  to force a client to take
 options that it hasn't requested, and it can also be used  to  tailor
 the response of the DHCP server for clients that may need a more lim-
 ited set of options than those the server would normally return.

Regards,
-- 
-Chuck

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


Re: Re: DHCP Question

2011-06-14 Thread jhall


From : Chuck Swiger cswi...@mac.com
To : jh...@socket.net
Subject : Re: DHCP Question
Date : Tue, 14 Jun 2011 11:28:00 -0700

 You want:
 
option dhcp-parameter-request-list uint16;
 
  This  option,  when  sent  by the client, specifies which 
options the 
  client wishes the server to  return.Normally,  in  the  ISC 
 DHCP 
  client, this is done using the request statement.   If this 
option is 
  not specified by the client, the DHCP  server  will  normally  
return 
  every  option  that  is  valid in scope and that fits into the 
reply. 
  When this option is specified on the server, the server  
returns  the 
  specified  options.This  can  be  used  to force a client 
to take 
  options that it hasn't requested, and it can also be used  to  
tailor 
  the response of the DHCP server for clients that may need a 
more lim- 
  ited set of options than those the server would normally 
return. 
 
 Regards,
 -- 
 -Chuck

They are not using the option for the IRC Server, but to point to the 
nodes where the Virutal Desktops are. 

Thank you for all  your help.  That did the trick!


Jay
Thank you!  That did the trick.

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


Re: DHCP Question

2008-04-04 Thread Preston Hagar
On Wed, Mar 19, 2008 at 9:36 PM,  [EMAIL PROTECTED] wrote:
 I am in the process of moving my phone system DHCP from my Mitel 3300 to a
  FreeBSD so I can parse the DHCP file.  In order to make Mitel's option 125
  work correctly, I have to specify some vendor specific options.  I believe
  this is option 124 if I understand the Mitel documentation correctly.


We have a Mitel 3300 and use OpenBSD servers with the ISC DHCP server.
 We have 5212 and 5224 IP phones and 5550 IP consoles.  The consoles
are the trickiest  of all to get working with DHCP.  Below are the
sections from our DHCP config that relate to the Mitel. A few things
to note about it.  10.1.254.254 is our name server and dhcp server.
10.1.5.1 is the IP of our Mitel 3300 controller/server.  the
/sysro/e2t8260 is the path of our e2t. The two most key components to
get it to work are the option-128 and option-129.  You need to set
these as the hex representation of the IP address of your Mitel
controller, so in our case, 10.1.5.1 became 0A:01:05:01.  It won't
work otherwise.  10.1.254.255 is our VPN gateway to our other office.
The vendor-class-identifier for mitel phones is always null (at least
for the 5212, 5224, and 5550 consoles).  We use this to separate the
Mitel phones into a separate class so they are in their own IP block.
We originally just used the vendor-class-identifier thing, but then
started to find NICs that had vendor-class-identifier = null, so I
noticed that all of our Mitel device MAC addresses start with
1:08:00:0f., so we use that to separate them as well.  It is a bad
hack, but it works for us.  Anyway, with this config, we have 5212,
5224, and 5550 consoles getting their addresses with DHCP. Feel free
to contact me if you have any questions.

# MITEL E2T TFTP boot
host mitele2t {
   hardware ethernet 08:00:0f:1d:7e:e7;
   fixed-address 10.1.5.2;
   next-server 10.1.5.1;
   filename /sysro/E2T8260;
}
# 
# 
# 
# THESE DEFINITIONS MUST BE PRESERVED AS IS. The 5550 Mitel
# consoles will not work unless these options are EXACTLY
# as below.
# 
# 
# 
option option-128 code 128 = string;
option option-129 code 129 = string;
option option-130 code 130 = text;
option option-66 code 66 = string;
option option-67 code 67 = string;

subnet 10.1.0.0 netmask 255.255.0.0 {

  class mitel-phone {
match if option vendor-class-identifier = null
and substring(pick-first-value(option
dhcp-client-identifier,hardware), 0, 4) = 1:08:00:0f;
  }

  pool {
allow members of mitel-phone;
range 10.1.6.1 10.1.7.254;
option routers 10.1.254.254;
option option-66  10.1.5.1;
option option-67  /sysro/e2t8260;
option option-128 0A:01:05:01;
option option-129 0A:01:05:01;
#option tftp-server-name 10.1.1.1;
option option-130 MITEL IP PHONE;
  }

  pool {
deny members of mitel-phone;
range 10.1.3.100 10.1.4.255;
option routers 10.1.254.254;
  }

  option broadcast-address 10.1.255.255;
  option subnet-mask 255.255.0.0;

  option netbios-name-servers 10.1.254.254;
  option netbios-dd-server 10.1.254.254;
  option netbios-node-type 8;
  option netbios-scope ;

}

Hope this helps.

Preston
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DHCP Question

2008-03-20 Thread Chuck Swiger

Hi, Jay--

On Mar 19, 2008, at 7:36 PM, [EMAIL PROTECTED] wrote:
I am in the process of moving my phone system DHCP from my Mitel  
3300 to a
FreeBSD so I can parse the DHCP file.  In order to make Mitel's  
option 125
work correctly, I have to specify some vendor specific options.  I  
believe

this is option 124 if I understand the Mitel documentation correctly.

[ ... ]


Can someone point me in the right direction?


For the ISC DHCP server, here's an example for setting option 252 for  
auto-proxy config:


option wpad-url code 252 = text;

subnet _yournetwork_ netmask _yournetmask_ {
option wpad-url http://proxy/proxy.pac;;
...
}

You'd need to choose your own option name for option code 124, and a  
type (probably string), and then set whatever config you need in that  
option statement...


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DHCP question

2006-08-24 Thread Robert Huff

Walt Pawley writes:

  I need to monitor and record that IP address and initiate a
  series of processes if/when the IP address changes.
  
  You could schedule a script that uses 'curl' or 'fetch' to
  acquire the status page from the router and parse the upstream
  IP address from it and compare it with a saved address.

How about:

netstat -rn -f inet | grep default | awk '{print $2}'



Robert Huff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DHCP question

2006-08-24 Thread Walt Pawley
At 4:20 AM -0700 8/23/06, Vizion wrote:

My home network is connected by my Linksys Broadband Router
model RT31P2 to an upstream Cable company supplied Motorola
SB5100 cable modem.

A single IP address is allocated via DHCP to the Linksys to
which my private network is attached. The IP address is rarely
changed.

I need to monitor and record that IP address and initiate a
series of processes if/when the IP address changes.

Suggestions please... and thanks in advance for any replies

David,

You could schedule a script that uses 'curl' or 'fetch' to
acquire the status page from the router and parse the upstream
IP address from it and compare it with a saved address.
-- 

Walter M. Pawley [EMAIL PROTECTED]
Wump Research  Company
676 River Bend Road, Roseburg, OR 97470
 541-672-8975
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DHCP question

2006-08-24 Thread Walt Pawley
At 5:03 PM -0400 8/24/06, Robert Huff wrote:

  I need to monitor and record that IP address and initiate a
  series of processes if/when the IP address changes.

  You could schedule a script that uses 'curl' or 'fetch' to
  acquire the status page from the router and parse the upstream
  IP address from it and compare it with a saved address.

   How about:

   netstat -rn -f inet | grep default | awk '{print $2}'

Wouldn't that just get his router's internal NAT address?
-- 

Walter M. Pawley [EMAIL PROTECTED]
Wump Research  Company
676 River Bend Road, Roseburg, OR 97470
 541-672-8975
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DHCP question

2006-08-23 Thread Nagy László Zsolt

Vizion írta:

My home network is connected by my Linksys Broadband Router model RT31P2 to an 
upstream Cable company supplied Motorola SB5100 cable modem.

A single IP address is allocated via DHCP to the Linksys to which my private 
network is attached. The IP address is rarely changed.

I need to monitor and record that IP address and initiate a series of processes 
if/when the IP address changes.

Suggestions please... and thanks in advance for any replies
  
I do not have a ready-to-use solution, but you might try to download 
this site with lynx:



www.whatismyip.com

and extract your 'public' IP address from that page.

Best,

  Laszlo

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DHCP question

2006-08-23 Thread Gerard Seibert
Vizion wrote:

 My home network is connected by my Linksys Broadband Router model
 RT31P2 to an upstream Cable company supplied Motorola SB5100 cable
 modem.
 
 A single IP address is allocated via DHCP to the Linksys to which my
 private network is attached. The IP address is rarely changed.
 
 I need to monitor and record that IP address and initiate a series of
 processes if/when the IP address changes.
 
 Suggestions please... and thanks in advance for any replies

Might 'ddclient' be what you are referring to? Its in the ports.


-- 
Gerard Seibert
[EMAIL PROTECTED]


Consider everything in the nature of a hanging fixture a weakness, and
naked radiators an abomination

 Frank Lloyd Wright
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dhcp question

2003-11-05 Thread Rob
If you're running dhcpd(8) on two interfaces, the command should
probably be

/usr/sbin/dhcpd -q rl1 rl2

Have you checked /var/log/messages for errors?

- Original Message -
From: Your Name [EMAIL PROTECTED]
Subject: dhcp question



 --
 Hi all

 I would like to configure 2 network cards to have dhcp server function
 but it doesnt'work

 NIC rl0 is WAN port
 NIC rl1 is for 192.168.0.1 network
 NIC rl2 is for 10.0.0.1 network

 I put dhcpd.sh in the /usr/local/etc/rc.d

 #!/bin/sh
 /usr/sbin/dhcpd rl1 -q
 /usr/sbin/dhcpd rl2 -q


 Those rl1 and rl2 are using NAT to go to outside

 In the /etc/dhcpd.conf

 I configured the network

 authoritative;
 subnet 192.168.0.0 netmask 255.255.255.0 {
   range 192.168.0.100 192.168.0.150;
   option domain-name abc.com;
   option domain-name-servers 24.141.32.200;

   default-lease-time 600;
   max-lease-time 7200;
   option routers 192.168.0.1;
   option broadcast-address 192.168.0.255;
   default-lease-time 600;
   max-lease-time 7200;
 }

 subnet 10.0.0.0 netmask 255.0.0.0 {
   range 10.0.0.100 10.0.0.150;
   option domain-name abc.com;
   option domain-name-servers 24.141.32.200;

   default-lease-time 600;
   max-lease-time 7200;
   option routers 10.0.0.1;
   option broadcast-address 10.255.255.255;
   default-lease-time 600;
   max-lease-time 7200;
 }

 Thank you









 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]