Tuesday, February 21, 2012

IPv6 TFTPD and TOD servers

To enable IPv6 support for xinetd TFTP and TOD server, just add the bind statement in to the configuration file,

------------ TFTP -------------------------


service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
bind = 2001:0:130:1::24
}


------- TOD --------------------------

service time
{
disable = no
type = INTERNAL
id = time-dgram
socket_type = dgram
protocol = udp
user = root
wait = yes
bind = 2001:0:130:1::24
}

DOCSIS and eRouter ISC DHCPv6 server configuration

After googling around a lot I managed to configure my ISC DHCP server to provision a DOCSIS modem and eRouter in IPv6. Given below is how I configured the DHCPv6 options in the ISC DHCPD config file (dhcp6.conf),

---------- Cable modem DHCP options ---------------
option space docsis code width 2 length width 2 hash size 17;
option docsis.tftp-server code 32 = array of ip6-address;
option docsis.cablelabs-configuration-file code 33 = text;
option docsis.cablelabs-syslog-servers code 34 = array of ip6-address;
option docsis.device-id code 36 = string;
option docsis.time-servers code 37 = array of ip6-address;
option docsis.time-offset code 38 = signed integer 32;
option vsio.docsis code 4491 = encapsulate docsis;


shared-network CM {
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet6 2001:0:140:1::/64 {
range6 2001:0:140:1::50 2001:0:140:1::254;
option dhcp6.name-servers 2001:0:130:1::23;
option docsis.tftp-server 2001:0:130:1::24;
option docsis.cablelabs-configuration-file "basic.cfg";
option docsis.cablelabs-syslog-servers 2001:0:130:1::23;
option docsis.time-servers 2001:0:130:1::24;
option docsis.time-offset 28800;
}
}

---------------------------------------------------------


----------- CPE ( eRouter ) DHCP options -----------------

shared-network CPE {
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet6 2001:0:f140:1::/64 {
range6 2001:0:f140:1::50 2001:0:f140:1::254;
option dhcp6.name-servers 2001:0:130:1::23;
prefix6 2001:0:150:: 2001:0:150:: /64;
}
}

-----------------------------------------------------------