version = "1.0"; ztp = { server = { domain = "cmhi.ztp.com"; port = 10082; }; dev_dir = "dev_confs"; // devices configure direcotry }; network = { port = ( { port_type = 1, //0: lan, 1: wan protocol = 0, //0: dhcp, 1: static, 2: pppoe }, { port_type = 1, //0: lan, 1: wan protocol = 1, //0: dhcp, 1: static, 2: pppoe # this section only for static ip address setting configure static = { ip_type = 0; // IPv4: 0, IPv6: 1 ip_addr = "10.0.0.123"; netmask = "255.255.255.0"; gateway = "10.0.0.1"; master_dns = "1.1.1.1"; }; }, { port_type = 1, //0: lan, 1: wan protocol = 2, //0: dhcp, 1: static, 2: pppoe # this section only for pppoe setting configure pppoe = { username = "cmhi_user"; // for pppoe password = "cmhi_10086"; // for pppoe }; }, { port_type = 1, //0: lan, 1: wan protocol = 2, //0: dhcp, 1: static, 2: pppoe # this section only for pppoe setting configure pppoe = { username = "cmhi_user1"; // for pppoe password = "cmhi_100861"; // for pppoe }; }, { port_type = 0, //0: lan, 1: wan }, { port_type = 0, //0: lan, 1: wan }, { port_type = 0, //0: lan, 1: wan }, { port_type = 0, //0: lan, 1: wan } ); # this section for LAN network setting configure lan_network = { ip_type = 0; // IPv4: 0, IPv6: 1 ip_addr = "192.168.1.1"; netmask = "255.255.255.0"; }; };