Guest User

Untitled

a guest
Mar 23rd, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. # ip addr show dev eth2
  2. 4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  3. link/ether 6c:f0:49:a4:47:38 brd ff:ff:ff:ff:ff:ff
  4. inet 192.168.1.10/24 brd 192.168.1.255 scope global eth2
  5. inet 10.1.2.1/24 brd 10.1.2.255 scope global eth2:1
  6. inet 10.1.3.1/24 brd 10.1.3.255 scope global eth2:2
  7. inet 10.1.1.1/24 brd 10.1.1.255 scope global eth2:0
  8. inet6 fe80::6ef0:49ff:fea4:4738/64 scope link
  9. valid_lft forever preferred_lft forever
  10.  
  11. ddns-update-style interim;
  12. option domain-name "mydomain.com";
  13. option domain-name-servers ns1.mydomain.com;
  14. default-lease-time 86400;
  15. max-lease-time 86400;
  16. authoritative;
  17. log-facility local7;
  18.  
  19. subnet 10.1.1.0 netmask 255.255.255.0 {
  20. range 10.1.1.100 10.1.1.254;
  21. default-lease-time 86400;
  22. max-lease-time 86400;
  23. option routers 10.1.1.1;
  24. option ip-forwarding off;
  25. option broadcast-address 10.1.1.255;
  26. option subnet-mask 255.255.255.0;
  27. option ntp-servers 10.1.1.1;
  28. option domain-name-servers 10.1.1.1;
  29. }
  30.  
  31. subnet 10.1.2.0 netmask 255.255.255.0 {
  32. range 10.1.2.100 10.1.2.254;
  33. default-lease-time 86400;
  34. max-lease-time 86400;
  35. option routers 10.1.2.1;
  36. option ip-forwarding off;
  37. option broadcast-address 10.1.2.255;
  38. option subnet-mask 255.255.255.0;
  39. option ntp-servers 10.1.2.1;
  40. option domain-name-servers 10.1.2.1;
  41. }
  42.  
  43. subnet 10.1.3.0 netmask 255.255.255.0 {
  44. range 10.1.3.100 10.1.3.254;
  45. default-lease-time 86400;
  46. max-lease-time 86400;
  47. option routers 10.1.3.1;
  48. option ip-forwarding off;
  49. option broadcast-address 10.1.3.255;
  50. option subnet-mask 255.255.255.0;
  51. option ntp-servers 10.1.3.1;
  52. option domain-name-servers 10.1.3.1;
  53. }
  54.  
  55. # dhcpd -4 eth2:0 eth2:1 eth2:2
  56. Internet Systems Consortium DHCP Server 4.1.1-P1
  57. Copyright 2004-2010 Internet Systems Consortium.
  58. All rights reserved.
  59. For info, please visit https://www.isc.org/software/dhcp/
  60. Wrote 0 leases to leases file.
  61.  
  62. No subnet declaration for eth2:2 (no IPv4 addresses).
  63. ** Ignoring requests on eth2:2. If this is not what
  64. you want, please write a subnet declaration
  65. in your dhcpd.conf file for the network segment
  66. to which interface eth2:2 is attached. **
  67.  
  68.  
  69. No subnet declaration for eth2:1 (no IPv4 addresses).
  70. ** Ignoring requests on eth2:1. If this is not what
  71. you want, please write a subnet declaration
  72. in your dhcpd.conf file for the network segment
  73. to which interface eth2:1 is attached. **
  74.  
  75.  
  76. No subnet declaration for eth2:0 (no IPv4 addresses).
  77. ** Ignoring requests on eth2:0. If this is not what
  78. you want, please write a subnet declaration
  79. in your dhcpd.conf file for the network segment
  80. to which interface eth2:0 is attached. **
  81.  
  82.  
  83. Not configured to listen on any interfaces!
  84.  
  85. shared-network my-net {
  86. subnet 10.1.1.0 netmask 255.255.255.0 {
  87. ...
  88. }
  89.  
  90. subnet 10.1.2.0 netmask 255.255.255.0 {
  91. ...
  92. }
  93.  
  94. subnet 10.1.3.0 netmask 255.255.255.0 {
  95. ...
  96. }
  97. }
Add Comment
Please, Sign In to add comment