Guest User

Untitled

a guest
Nov 13th, 2011
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.05 KB | None | 0 0
  1. ifconfig
  2. eth0      Link encap:Ethernet  HWaddr 00:e0:b6:05:7a:93
  3.           inet addr:192.168.1.1  Bcast:0.0.0.0  Mask:255.255.0.0
  4.           inet6 addr: fe80::2e0:b6ff:fe05:7a93/64 Scope:Link
  5.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  6.           RX packets:25900177 errors:0 dropped:0 overruns:0 frame:0
  7.           TX packets:34526150 errors:0 dropped:0 overruns:0 carrier:0
  8.           collisions:0 txqueuelen:1000
  9.           RX bytes:1051279369 (1.0 GB)  TX bytes:691316784 (691.3 MB)
  10. eth4      Link encap:Ethernet  HWaddr 00:24:21:b6:78:86
  11.           inet addr:172.16.1.1  Bcast:0.0.0.0  Mask:255.255.0.0
  12.           inet6 addr: fe80::224:21ff:feb6:7886/64 Scope:Link
  13.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  14.           RX packets:34915468 errors:0 dropped:0 overruns:0 frame:0
  15.           TX packets:25619138 errors:0 dropped:0 overruns:0 carrier:0
  16.           collisions:0 txqueuelen:1000
  17.           RX bytes:1162053437 (1.1 GB)  TX bytes:1104174378 (1.1 GB)
  18.           Interrupt:43 Base address:0x2000
  19. eth0.150  Link encap:Ethernet  HWaddr 00:e0:b6:05:7a:93
  20.           inet addr:10.0.150.250  Bcast:0.0.0.0  Mask:255.255.255.0
  21.           inet6 addr: fe80::2e0:b6ff:fe05:7a93/64 Scope:Link
  22.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  23.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  24.           TX packets:4404 errors:0 dropped:0 overruns:0 carrier:0
  25.           collisions:0 txqueuelen:0
  26.           RX bytes:0 (0.0 B)  TX bytes:434222 (434.2 KB)
  27. eth0.171  Link encap:Ethernet  HWaddr 00:e0:b6:05:7a:93
  28.           inet addr:10.0.171.250  Bcast:0.0.0.0  Mask:255.255.255.0
  29.           inet6 addr: fe80::2e0:b6ff:fe05:7a93/64 Scope:Link
  30.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  31.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  32.           TX packets:4405 errors:0 dropped:0 overruns:0 carrier:0
  33.           collisions:0 txqueuelen:0
  34.           RX bytes:0 (0.0 B)  TX bytes:434287 (434.2 KB)
  35. eth0.172  Link encap:Ethernet  HWaddr 00:e0:b6:05:7a:93
  36.           inet addr:10.0.172.250  Bcast:0.0.0.0  Mask:255.255.255.0
  37.           inet6 addr: fe80::2e0:b6ff:fe05:7a93/64 Scope:Link
  38.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  39.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  40.           TX packets:4404 errors:0 dropped:0 overruns:0 carrier:0
  41.           collisions:0 txqueuelen:0
  42.           RX bytes:0 (0.0 B)  TX bytes:434222 (434.2 KB)
  43.  
  44. dhcpd.conf
  45. shared-network t {
  46. min-lease-time 36000;
  47. default-lease-time 43200;
  48. max-lease-time 86400;
  49. option domain-name "example.org";
  50. one-lease-per-client true;
  51. subnet 192.168.0.0 netmask 255.255.0.0 {
  52.         option routers 192.168.1.1;
  53.         #deny unknown-clients;
  54.         option domain-name-servers 192.168.1.1;
  55.         server-identifier 192.168.1.1;
  56.         pool {
  57.                 range 192.168.20.10 192.168.20.200;
  58.                 allow members of "ubnt-modems";
  59.         }
  60. }
  61. subnet 172.16.0.0 netmask 255.255.0.0 {
  62.         range 172.16.10.10 172.16.10.200;
  63.         option routers 172.16.1.1;
  64.         allow unknown-clients;
  65.         min-lease-time 30;
  66.         default-lease-time 30;
  67.         max-lease-time 30;
  68.         authoritative;
  69.         option domain-name-servers 172.16.1.1;
  70.         server-identifier 172.16.1.1;
  71. }
  72. }
  73. shared-network su{
  74. min-lease-time 36000;
  75. default-lease-time 43200;
  76. max-lease-time 86400;
  77. option domain-name "example.org";
  78. one-lease-per-client true;
  79. include "/etc/dhcp/subnets-auto.conf";
  80. }
  81.  
  82. subnets-auto.conf
  83.  
  84. subnet 10.0.171.0 netmask 255.255.255.0 {
  85.     option routers 10.0.171.250;
  86.     option domain-name-servers 10.0.171.250;
  87.     pool {
  88.         deny unknown-clients;
  89.         range 10.0.171.1 10.0.171.126;
  90.     }
  91.     pool {
  92.         range 10.0.171.127 10.0.171.200;
  93.         allow unknown-clients;
  94.         min-lease-time 20;
  95.         default-lease-time 20;
  96.         max-lease-time 20;
  97.     }
  98. }
  99. subnet 10.0.172.0 netmask 255.255.255.0 {
  100.     option routers 10.0.172.250;
  101.     option domain-name-servers 10.0.172.250;
  102.     pool {
  103.         deny unknown-clients;
  104.         range 10.0.172.1 10.0.172.126;
  105.     }
  106.     pool {
  107.         range 10.0.172.127 10.0.172.200;
  108.         allow unknown-clients;
  109.         min-lease-time 20;
  110.         default-lease-time 20;
  111.         max-lease-time 20;
  112.     }
  113. }
  114. subnet 10.0.173.0 netmask 255.255.255.0 {
  115.     option routers 10.0.173.250;
  116.     option domain-name-servers 10.0.173.250;
  117.     pool {
  118.         deny unknown-clients;
  119.         range 10.0.173.1 10.0.173.126;
  120.     }
  121.     pool {
  122.         range 10.0.173.127 10.0.173.200;
  123.         allow unknown-clients;
  124.         min-lease-time 20;
  125.         default-lease-time 20;
  126.         max-lease-time 20;
  127.     }
  128.         max-lease-time 20;
  129.     }
  130. }
  131. subnet 10.0.174.0 netmask 255.255.255.0 {
  132.     option routers 10.0.174.250;
  133.     option domain-name-servers 10.0.174.250;
  134.     pool {
  135.         deny unknown-clients;
  136.         range 10.0.174.1 10.0.174.126;
  137.     }
  138.     pool {
  139.         range 10.0.174.127 10.0.174.200;
  140.         allow unknown-clients;
  141.         min-lease-time 20;
  142.         default-lease-time 20;
  143.         max-lease-time 20;
  144.     }
  145. }
  146.  
  147. и лог
  148.  
  149.  
  150. Nov 13 14:14:58 example dhcpd: Multiple interfaces match the same shared network: eth0 eth4
  151. Nov 13 14:14:58 example dhcpd: Multiple interfaces match the same shared network: eth0.171 eth0.172
  152. Nov 13 14:14:58 example dhcpd: Multiple interfaces match the same shared network: eth0.171 eth0.173
  153. Nov 13 14:14:58 example dhcpd: Multiple interfaces match the same shared network: eth0.171 eth0.174
  154. Nov 13 14:14:58 example dhcpd: Multiple interfaces match the same shared network: eth0.171 eth0.175
  155. Nov 13 14:14:58 example dhcpd: Multiple interfaces match the same shared network: eth0.171 eth0.176
  156. Nov 13 14:14:58 example dhcpd: Multiple interfaces match the same shared network: eth0.171 eth0.177
  157. Nov 13 14:14:58 example dhcpd: Multiple interfaces match the same shared network: eth0.171 eth0.178
  158. Nov 13 14:14:58 example dhcpd: Multiple interfaces match the same shared network: eth0.171 eth0.150
  159. Nov 13 14:14:58 example dhcpd: Multiple interfaces match the same shared network: eth0.171 eth0.201
  160.  
  161.  
Advertisement
Add Comment
Please, Sign In to add comment