DKT Comega juma-ii series User manual

juma/forsete-ii series user guide

2
i nt rod u ction
This is the user guide for the DKTCOMEGA 7973x/794xx JUMA/Forsete-II Series CPE.
The series include the following variants:
- 79734 – 1x 10/100/1000Mbps RJ-45
- 79741 – 4x 10/100/1000Mbps RJ-45, SNMP
- 79742 – 4x 10/100/1000Mbps RJ-45, SNMP, CATV
The user guide includes explaination of features supported from rmware revision 05_02.
Syntaxes for the individual features are listed in this document, please notice if the functionality is not
implemented in the revision of the rmware yet - it is be marked as
(feature will be supported in a future release)
index
The boot process of the CPE node ..................................................................................... 3
DHCP Settings ............................................................................................................. 4
Custom conguration .................................................................................................... 5
Device script command .................................................................................................. 7
Reboot ...................................................................................................................... 8
Save conguration to ash .............................................................................................. 8
dhcp option 82 ............................................................................................................ 8
support for ssh ........................................................................................................... 10
conguration of snmp values .......................................................................................... 12
syslog ...................................................................................................................... 12

3
the boot process of the cpe node
Boot start-up procedure:
• The rst time that the device boots, it issues a DHCP Discover with dhcp option 60 set to
DKT_F2_rstboot. The rmware can be downloaded to the unit.
• Alternatively if rmware is present in the device, the device issues a dhcp request with dhcp
option 60 set to DKT_F2_rmware_vXX_XX (where XX_XX is the version number of the rmware).
When a new node is unpacked from the factory, it doesn’t contain any rmware, and before it can
be used in must be updated with the latest revision. This mean that when the node is installed at the
customer premise, it will be required to remotely update with rmware, before it will be working. It
is highly recommended to visit www.dktcomega.com -> support -> rmware for latest boot loader and
rmware revision.
The managed node depends on DHCP negotiation. Through this negotiation the rmware ID of the man-
aged node is exchanged for a conguration le. The DHCP server hands out the conguration le depend-
ing on the rmware ID.
Uboot.
A device power-up it will start the uboot process. The purpose is to validate if the device has the correct
rmware image (if any), and bring it onto the network using DHCP.
Linux (Device OS system).
This is the main software with full network support and features to use the complete hardware platform.
The network is congured using DHCP, and the system conguration is downloaded using TFTP.
The rst bootp/dhcp request from the device can be used to remote upgrade the rmware. If a bootle
and a bootserver is given in the bootp response then the le is downloaded via tftp and executed by the
device.
The device is congured to not pass any trafc per default, so in order to pass trafc through the switch
engine, the switch --enable-lan command must be provisioned to the device. Also telnet daemon must be
started, with the use of telnetd -l /bin/sh command in the script
At device start-up conguration is provisioned automatically. Firmware is provisioned by request, either
at rst boot or when applicable
Ensures correct device settings and automatically rmware upgrade without user interaction
Firmware and conguration are provisioned by the operator
DHCP Discover, vendor class id = DKT_B2_firstboot
DHCP Offer, IP Address + firmware info, network info
DHCP Request, parameter list, network info + file name
DHCP ACK, respond parameter list, network info etc
TFTP Request – file name
TFTP Transfer – file name
DHCP Release – release IP address and boot
DHCP Discover, vendor class id = DKT_F2_firmware_vXX_XX,
request configuration (option 66, 67)
DHCP Offer, IP Address + configuration info, network info
DHCP Request, parameter list, network info + conf file
DHCP ACK, respond parameter list, conf file, network info etc
TFTP Request – conf file
TFTP Transfer – conf file
If DHCP offer end with ”/” instead of specific file-name
then CPE will try to make TFTP Request for:
<CFG_DIR>dkt_config_<MAC>.sh
<CFG_DIR>dkt_config_<Hostname>.sh
<CFG_DIR>dkt_config_<Model>.sh
<CFG_DIR>dkt_config.sh
If DHCP offer doesn’t include any firmware file name,
then the device will release the IP Address and
continue to next step, Linux start-up
BOOT LOADERLINUX
DHCP Server
DKT 797xx

4
dhcp settings
The CPE requires a dhcp server connected to the ber WAN port before power on.
Please refer to Appendix 3 – DHCP Settings for example of DHCP settings
1) The device requests in its Uboot DHCP discoverer:
Option: 1, 3
2) DHCP Server offers in its response:
Option: 53, 54, 51, 1, 3

5
3) CPE requests in its LINUX Boot-up process, where conguration le is requested:
Option: 1, 3, 6, 12, 43, 54, 66, 67 - Please make sure that DHCP Server responds to these option re-
quests, as it will inuence on the booting sequence, if these are not correctly answered, and may cause
inproper booting of the device.
custom configuration
When the OS issue a dhcp request a lename of a conguration le can be sent to the device. This
conguration le is then downloaded by tftp during the boot process and issued instead of the default
conguration. In this way it is possible to persist settings for each customer (by mapping the hardware
address of the node and the customer number).
The server and the lename of the conguration le should be sent in respective tftp-server-name (op-
tion 66) and bootle-name (option 67) from the dhcp server. Notice these options are different from the
bootle/bootserver used in the bootp response.
If it is not feasible that the dhcp server distinguish the customer’s congurations base on the hardware
address an alternative method can be used. The dhcp server sends out the name of a generic congura-
tion. This conguration can then include instruction to the node of fetching a node specic congure by
tftp where the requested lename is a combination of the node hardware address.
In the generic conguration script, which is common for all devices and that will provisioned during boot
up, the following instructions can be inserted:
source /etc/dhcp.vars
export WAN_MACADDR=$(ip addr show dev eth0 | grep “ether” | cut -d “ “ -f6 | tr -d :)
tp -g -r my_conf_$WAN_MACADDR -l /tmp/cong.sh $TFTP_SERVER
save_conguration
source /tmp/cong.sh
Alternatively, if DHCP oer in the response instead just end with ”/” instead of specic le-name then the device
will try to make TFTP Request for:
<CFG_DIR>dkt_cong_<MAC>.sh
<CFG_DIR>dkt_cong_<Hostname>.sh
<CFG_DIR>dkt_cong_<Model>.sh <CFG_DIR>dkt_cong.sh

6
An example of a conguration le could be the following:
####################################################################
# DKT conguration
# Firmware version: XX_XX
####################################################################
switch --enable-lan # enable LAN ports
# Example, how to create 4 VLANs, egress tagged on WAN and untagged on all LANs
conf vlan init
conf vlan create vlan-table vid 100
conf vlan create vlan-table vid 200
conf vlan create vlan-table vid 300
conf vlan create vlan-table vid 400
conf vlan set vlan-table vid 100 member 0,4
conf vlan set vlan-table vid 200 member 1,4
conf vlan set vlan-table vid 300 member 2,4
conf vlan set vlan-table vid 400 member 3,4
conf vlan set pvid port 0 100
conf vlan set pvid port 1 200
conf vlan set pvid port 2 300
conf vlan set pvid port 3 400
conf vlan set pvid port 4 100
conf vlan set vlan-table vid 100 tag-member 4
conf vlan set vlan-table vid 100 untag-member 0
conf vlan set vlan-table vid 200 untag-member 1
conf vlan set vlan-table vid 300 untag-member 2
conf vlan set vlan-table vid 400 untag-member 3
# Example, how to enable double tagging on WAN, dene SVID for each origin port
conf svlan init
conf svlan set service-port 4
conf svlan create svlan-table svid 500
conf svlan create svlan-table svid 600
conf svlan create svlan-table svid 700
conf svlan set svlan-table svid 500 member 0,4
conf svlan set svlan-table svid 600 member 1,4
conf svlan set svlan-table svid 700 member 2,4
conf svlan set port 0 svid 500
conf svlan set port 1 svid 600
conf svlan set port 2 svid 700
conf svlan set svlan-table svid 500 untag-member 0
conf svlan set svlan-table svid 600 untag-member 1
conf svlan set svlan-table svid 700 untag-member 2
#
# e following command enables TELNET access from WAN
telnetd -l /bin/sh
# End of DKT conguration
####################################################################

7
device script commands
The following commands are supported in the script that will be downloaded to the CPE via TFTP during
boot-up process.
This command is used to congure the switch in the unit. The command takes one or more of the following
parameters, with the syntax switch --nn or conf xx.
The 79741/742 models have 4 LAN ports, whereas 79734 model has 1 LAN port. The port outline and port
mapping is as follows, shown from the front:
4 port (79741/742):
LAN1
1
LAN2
2
LAN3
3
LAN4
4
Please refer to syntax guide for Command Line Interface, to congure VLAN, QoS
etc. parameters

8
re boot
The device can be accessed via TELNET, and is rebooted with the use of “reboot” command. TELNET ac-
cess must however be congured in the conguration le.
# e following command enables TELNET access from WAN
telnetd -l /bin/sh
save configuration to flash
Per default device conguration is provisioned via DHCP at boot, and it will be stored in device RAM
memory, which means that the device would need to have the conguration loaded at every boot.
Concept is if dhcp service is out, the device will restore its latest saved – the latest saved conguration is
the incident where there is a difference between saved conguration and provisioned conguration. Also
the CPE will get an ad-hoc link-local IP address, which is an auto conguration algorithm described in the
IETF Draft “Dynamic Conguration of IPv4link-local addresses”.
Procedure is to
- insert a syntax in the conguration le “save_conguration”
Please note that the syntax “save_conguration” will be ltered by the device, so if you do a “cat /tmp/
cong.sh” or “cat /mnt/ash/cong.sh” this command is not visible.
When dhcp service comes back, then the device will lease an IP address again, but not fetch any new
conguration, as it will keep its restored conguration until next boot process.
# e following command allows the conguration to be saved to ash memory, and this will be restore if dhcp
service is out.
save_conguration
dhcp option 82
DHCP Option 82 relay feature will be supported in a future release.
DHCP Relay Agent Information Option 82 is an extension to the Dynamic Host Conguration Protocol
(DHCP), and is dened in RFC 3046 and RFC 3993. DHCP Option 82 can be used to send information about
DHCP clients to the authenticating DHCP server. DHCP Option 82 can as an example identify the VLAN
number, port number as well as a customer ID of a client, during any IP address allocation. When DHCP
Option 82 is enabled on the CPE, it inserts the per port dened information into the DHCP packets as they
pass through the CPE on their way to the DHCP server. The DHCP server stores the IP allocation record.
The CPE will strip off the DHCP reply from the DHCP server, so the clients will never see the DHCP option
82 information.
The DHCP Option 82 information can hold a 32 char string per port.
# Syntax is switch --set-port-dhcp-option82=PORT:enable[:Circuit ID[:Remote ID]]
switch --set-port-dhcp-option82=1:1:”DKT 797xx LAN port 1”:”Client XYZ”
switch --set-port-dhcp-option82=2:1:”DKT 797xx LAN port 2”:”Client XYZ”
switch --set-port-dhcp-option82=3:1:”DKT 797xx LAN port 3”:”Client XYZ”
switch --set-port-dhcp-option82=4:1:”DKT 797xx LAN port 4”:”Client XYZ”

9

10
support for ssh
Please note that support for SSH is available for all DKTCOMEGA CPE platforms except HW revision “FE1
0” or earlier. HW revision can found via SNMP OID -.1.3.6.1.4.1.27304.10.1.0
Alternatively with DKT-GENERIC-MIB::hwVersion.0
HW with values of “ERROR” or “FE1 0” do not support SSH.
In order to have SSH support, please insert the following command in the conguration script:
# SSH daemon is started with the following command
/etc/init.d/sshd start
The CPE is precongured with a login for SSH, please consult DKTCOMEGA for user name and password.
The rst time the SSH daemon is started; two secret key les are generated.
Please note that it takes a while to generate the secret key les. The secret key les are not automati-
cally stored to ash.
Save the SSH secret key les to ash using save_conguration in the conguration le:
# Save conguration to ash memory, same SSH key is used at every boot
save_conguration
Now it is possible to log into the CPE as the user ”Administrator” (case sensitive) through SSH.
ssh Administrator@<IP address>
or
ssh -l Administrator <IP address>
or using e.g. Putty application
When logged in as Administrator, it is not possible to make any changes, as you must switch user to root
with this command:
su
Now it is possible to run all of the conguration commands, and it is possible to change the password of
the user with the command
passwd <username>
If password is changed remember save to ash with the save_conguration command.
When nished, type exit to return to the Administrator user.
To log out, type exit again.
The daemon is started by the normal conguration le by inserting the following commands (the lines
should replace the telnetd command):
# Some conguration commands
# Start SSH daemon
/etc/init.d/sshd start
# Save conguration and SSH secret les to ash
save_conguration

11
The sshd script automatically restores password- and SSH key les from ash before the SSH daemon is
started.
Procedure for changing SSH password on all CPE units.
If password for Administrator is to be changed for all CPE’s do the following:
1) Log into one CPE via ssh
2) change user to root with command su
3) cd /etc
4) change password of the CPE
5) Now copy the shadow le to a tftp server, typing “tp -p -l shadow -r shadow <TFTP Server IP Address>”
This le has to be pushed to all CPE’s
6) you can edit CPE’s conguration les by inserting the following commands:
tp -g -r shadow -l /tmp/shadow <TFTP Server IP Address> # is will get the shadow le for Administrator from
TFTP server and temporarily store this in /tmp directory
chown root /tmp/shadow # change owner of shadow
chmod 600 /tmp/shadow # change rights of shadow
mv /tmp/shadow /etc/ # move the shadow le to correct directory
save_conguration # save conguration to ash memory, now the password is saved locally on each CPE

12
configuration of snmp values
SNMP feature will be supported in a future release.
The following SNMP values can be set by the conguration le:
SysContact the administrate contact for the network
SysLocation for the location of the system
echo “syslocation somewhere” >> /etc/snmp/snmpd.local.conf
SysName the name of the system e.g the customer identication
echo “sysname customerXYZ” >> /etc/snmp/snmpd.local.conf
syslog
Syslog feature will be supported in a future release.
Support for remote logging via syslog (RFC 3164)
To start syslog, enter the following line in your conguration le
syslogd [-l <log level>] -R <Remote server IP>
The syslog daemon sends logging information in UDP packets - port 514.
If all IP addresses are handled by the DHCP server, then there is also a way that the syslog daemon may
be started by the DHCP client:
echo “-O logsrv” > /tmp/dhcp_requests.txt
/etc/init.d/udhcpc restart
The daemon will be started by the DHCP client if the log server parameter (DHCP option 7) is received in
the DHCP response.
You may control which extra DHCP options that are requested in DHCP option 55. It is done by creating a
le /tmp/dhcp_requests.txt containing just one line with a list of request commands to the DHCP client.
The format of the line is:
-O <option name> [-O <option name>] ...
The following values for <option name> are currently supported:
Name DHCP Option Description
dns 6Domain name server IP
logsrv 7 Log server IP address
hostname 12 Hostname of the box
domain 15 Domain name
serverid 54 DHCP server identier
This manual suits for next models
1
Table of contents
Popular Network Hardware manuals by other brands

Teldat
Teldat 5Ge-Rail installation manual

Seagate
Seagate GoFlex Home quick start guide

Draytek
Draytek Vigor2927 Series quick start guide

Matrix Switch Corporation
Matrix Switch Corporation MSC-CP4X4E product manual

Ascent Communication Technology
Ascent Communication Technology AEOC Series user guide

Bosch
Bosch VIDEOJET X40 Installation & operating manual