1
0

stat_table_subnets.sql 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. -- --------------------------------------------------------
  2. --
  3. -- Table structure for table `subnets`
  4. --
  5. CREATE TABLE `subnets` (
  6. `id` int(11) NOT NULL,
  7. `subnet` varchar(18) DEFAULT NULL,
  8. `ip_int_start` bigint(20) NOT NULL,
  9. `ip_int_stop` bigint(20) NOT NULL,
  10. `dhcp_start` bigint(20) NOT NULL DEFAULT 0,
  11. `dhcp_stop` bigint(20) NOT NULL DEFAULT 0,
  12. `dhcp_lease_time` int(11) NOT NULL DEFAULT 480,
  13. `gateway` bigint(20) NOT NULL DEFAULT 0,
  14. `office` tinyint(1) NOT NULL DEFAULT 1,
  15. `hotspot` tinyint(1) NOT NULL DEFAULT 0,
  16. `vpn` tinyint(1) NOT NULL DEFAULT 0,
  17. `free` tinyint(1) NOT NULL DEFAULT 0,
  18. `dhcp` tinyint(1) NOT NULL DEFAULT 1,
  19. `static` tinyint(1) NOT NULL DEFAULT 0,
  20. `dhcp_update_hostname` tinyint(1) NOT NULL DEFAULT 0,
  21. `discovery` tinyint(1) NOT NULL DEFAULT 1,
  22. `comment` text DEFAULT NULL
  23. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  24. --
  25. -- Truncate table before insert `subnets`
  26. --
  27. TRUNCATE TABLE `subnets`;
  28. --
  29. -- Dumping data for table `subnets`
  30. --
  31. INSERT INTO `subnets` (`id`, `subnet`, `ip_int_start`, `ip_int_stop`, `dhcp_start`, `dhcp_stop`, `dhcp_lease_time`, `gateway`, `office`, `hotspot`, `vpn`, `free`, `dhcp`, `static`, `dhcp_update_hostname`, `discovery`, `comment`) VALUES
  32. (1, '192.168.0.0/16', 3232235520, 3232301055, 0, 0, 480, 0, 0, 0, 0, 1, 0, 0, 0, 0, 'Не считать трафик'),
  33. (2, '10.0.0.0/8', 167772160, 184549375, 0, 0, 480, 0, 0, 0, 0, 1, 0, 0, 0, 0, 'Не считать трафик'),
  34. (3, '172.16.0.0/12', 2886729728, 2887778303, 0, 0, 480, 0, 0, 0, 0, 1, 0, 0, 0, 0, 'Не считать трафик');