DGA0122 CLI: Difference between revisions

Back up to the Technicolor_DGA0122 Page
From AAISP Support Site
(Page creation)
 
m (Reference OpenWrt)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
[[Category:Technicolor_DGA4134]]
[[Category:Technicolor_DGA4134]]


This probably applies to most Technicolor routers.
This probably applies to most Technicolor routers of the same era.


There is a command line interface, which can be accessed from the LAN with ssh using the ''engineer'' username and the admin password.
There is a command line interface, which can be accessed from the LAN with ssh using the ''engineer'' username and the admin password.


The CLI is fairly minimal, there is no manual :-( It is possible to mess up the router configuration in many ways if you don't know what you're doing!
The CLI is fairly unfriendly, there is no manual. The router's firmware is a customised version of [https://openwrt.org OpenWrt], that project's documentation may help (the '''get''' and '''set''' commands are very like that project's UCI).

It is possible to mess up the router configuration in many ways if you don't know what you're doing!

N.B. If you choose to play with the CLI, the '''rtfd''' command will reset the router to factory default setting, without any warning or Y/N prompt.
N.B. If you choose to play with the CLI, the '''rtfd''' command will reset the router to factory default setting, without any warning or Y/N prompt.


Line 28: Line 31:


The changes are applied after a reboot.
The changes are applied after a reboot.

Similarly the OpenWRT config variables are accessed from
get uci.


Don't expect much sympathy from AAISP staff when you've badly reconfigured your router.
Don't expect much sympathy from AAISP staff when you've badly reconfigured your router.

Latest revision as of 16:50, 24 December 2023


This probably applies to most Technicolor routers of the same era.

There is a command line interface, which can be accessed from the LAN with ssh using the engineer username and the admin password.

The CLI is fairly unfriendly, there is no manual. The router's firmware is a customised version of OpenWrt, that project's documentation may help (the get and set commands are very like that project's UCI).

It is possible to mess up the router configuration in many ways if you don't know what you're doing!

N.B. If you choose to play with the CLI, the rtfd command will reset the router to factory default setting, without any warning or Y/N prompt.

Useful commands

The route command can be used to add static IPv4 routes:

route add --net 192.168.100.0 --netmask 255.255.255.0 --gw 81.187.xx.yy

Such routes don't survive a reboot.

It's not clear whether the apply command is needed.

Variables

The router is configured using a vast number of config variables. You can get a full dump of the current config with

get InternetGatewayDevice.

(note the trailing dot). Variables can be written to, e.g.

set InternetGatewayDevice.LANDevice.1.LANHostConfigManagement.DHCPLeaseTime 3600

The changes are applied after a reboot.

Similarly the OpenWRT config variables are accessed from

get uci.

Don't expect much sympathy from AAISP staff when you've badly reconfigured your router.