Saturday, October 22, 2005
View dhcpagent debug info (2)
1) /sbin/dhcpagent -d1 -f &
2) ifconfig elxl0 dhcp start
* -d1 : debug-level 1, -f : foreground (stderr instead of syslog)
2) ifconfig elxl0 dhcp start
* -d1 : debug-level 1, -f : foreground (stderr instead of syslog)
To assign a permanent IP address of 172.16.0.3 (2)
1) pntadm -M 172.16.0.3 -i 0100609762F09D 172.16.0.0
2) pntadm -M 172.16.0.3 -f 03 172.16.0.0
* identifier (-i) is MAC with preceeding 01
* flag (-f) 03 is Reserved which is Manual (02) + Permanent (01)
2) pntadm -M 172.16.0.3 -f 03 172.16.0.0
* identifier (-i) is MAC with preceeding 01
* flag (-f) 03 is Reserved which is Manual (02) + Permanent (01)
Let DHCP client use its own name (2)
1) /etc/default/dhcpagent :
Make sure that commented out : # REQUEST_HOSTNAME=no
2) /etc/hostname.eri0 : inet blade
Make sure that commented out : # REQUEST_HOSTNAME=no
2) /etc/hostname.eri0 : inet blade
"ICMP ECHO reply to the OFFER candidate is n.n.n.n, disabling" means (2)
1) Another DHCP server already gave out this IP
2) Client has defined this IP manually
2) Client has defined this IP manually
Friday, October 21, 2005
Configure dnet0 as DHCP client (2)
1) /etc/dhcp.dnet0
2) /etc/default/dhcpagent : RELEASE_ON_SIGTERM=yes
* leave /etc/hostname.dnet0 though, or iface won't plumb
2) /etc/default/dhcpagent : RELEASE_ON_SIGTERM=yes
* leave /etc/hostname.dnet0 though, or iface won't plumb
Thursday, October 20, 2005
Set subnet to 255.255.255.0 of macro 172.16.0.0
dhtadm -M -m 172.16.0.0 -e 'Subnet=255.255.255.0'
* note no colons around Subnet=
* note no colons around Subnet=
Add macro 172.16.0.0 supplying mask 255.255.0.0
dhtadm -A -m 172.16.0.0 -d ':Subnet=255.255.0.0:'
* note the colons around Subnet=
* note the colons around Subnet=
Table flags (6)
00 : Dynamic
01 : Permanent
02 : Manual
03 : Manual + Permanent
04 : Unusable
06 : Manual + Unusable <- the only way to block a client from DHCP
01 : Permanent
02 : Manual
03 : Manual + Permanent
04 : Unusable
06 : Manual + Unusable <- the only way to block a client from DHCP
Create a DHCP table for 172.16.0.0 network (2)
1) pntadm -C 172.16.0.0
2) dhcpconfig -N 172.16.0.0
* dhcpconfig adds a default macro in dhcptab
2) dhcpconfig -N 172.16.0.0
* dhcpconfig adds a default macro in dhcptab
Remove DHCP table for 172.16.0.0 network
pntadm -R 172.16.0.0
* to remove macro from dhcptab: dhtadm -D -m 172.16.0.0
* to remove macro from dhcptab: dhtadm -D -m 172.16.0.0
Wednesday, October 19, 2005
Enable DHCP server with ASCII files in /var/dhcp
/usr/sbin/dhcpconfig -D -r SUNWfiles -p /var/dhcp
* -D : daemon, -r : resource, -p path
* -D : daemon, -r : resource, -p path
