Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1. extraits des parties spécifiques a DHCP:
  2.  
  3. interfaces {
  4. ethernet eth1 {
  5. description ONT
  6. duplex auto
  7. speed auto
  8. vif 832 {
  9. address dhcp
  10. description "Internet Orange DHCP"
  11. dhcp-options {
  12. client-option "send dhcp-client-identifier 1:00:37:b7:xx:xx:xx;" /* MAC Livebox */
  13. client-option "send vendor-class-identifier "sagem";"
  14. client-option "send user-class "+FSVDSL_livebox.Internet.softathome.Livebox3";"
  15. client-option "send rfc3118-authentication 00:00:00:00:00:00:00:00:00:00:00:66:74:69:xx:xx:xx:xx:xx:xx:xx:xx;" /* fti/.... */
  16. client-option "request subnet-mask, routers, domain-name-servers, domain-name, broadcast-address, dhcp-lease-time, dhcp-renewal-time, dhcp-rebinding-time, option-119, option-90, option-120;"
  17. default-route update
  18. default-route-distance 210
  19. name-server update
  20. }
  21. dhcpv6-options {
  22. /* todo: comment envoyer en DHCPv6-pd :
  23. client-option "send vendor-class-identifier "sagem";"
  24. client-option "send user-class "+FSVDSL_livebox.Internet.softathome.Livebox3";"
  25. client-option "send rfc3118-authentication 00:00:00:00:00:00:00:00:00:00:00:66:74:69:xx:xx:xx:xx:xx:xx:xx:xx;"
  26. */
  27.  
  28. parameters-only
  29. }
  30. dhcpv6-pd {
  31. /* DUID-LL + MAC livebox*/
  32. duid 00:03:00:01:00:37:b7:xx:xx:xx
  33. pd 1 {
  34. interface eth0 {
  35. service slaac
  36. }
  37. prefix-length /64
  38. }
  39. prefix-only
  40. rapid-commit disable
  41. }
  42. /* todo: ne sert plus ?*/
  43. egress-qos "0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7"
  44. firewall {
  45. in {
  46. name WAN_LOCAL
  47. }
  48. }
  49. traffic-policy {
  50. }
  51. }
  52. vif 838 {
  53. bridge-group {
  54. bridge br0
  55. }
  56. description "VLAN TV VOD"
  57. disable
  58. egress-qos "0:4 1:4 2:4 3:4 4:4 5:4 6:4 7:4"
  59. }
  60. vif 840 {
  61. bridge-group {
  62. bridge br0
  63. }
  64. description "VLAN TV Canal 1 - Zap"
  65. disable
  66. egress-qos "0:5 1:5 2:5 3:5 4:5 5:5 6:5 7:5"
  67. }
  68. }
  69. ethernet eth2 {
  70. address 192.168.1.3/24
  71. description "default Orange LAN / SOS access"
  72. duplex auto
  73. speed auto
  74. }
  75. loopback lo {
  76. }
  77. }
  78. /* todo TV */
  79. protocols {
  80. igmp-proxy {
  81. disable-quickleave
  82. interface br0 {
  83. alt-subnet 0.0.0.0/0
  84. role upstream
  85. threshold 1
  86. }
  87. interface eth0 {
  88. alt-subnet 0.0.0.0/0
  89. role downstream
  90. threshold 1
  91. }
  92. interface eth2 {
  93. alt-subnet 0.0.0.0/0
  94. role downstream
  95. threshold 1
  96. }
  97. }
  98. }
  99. service {
  100. dhcp-server {
  101. disabled false
  102. hostfile-update disable
  103. shared-network-name LOCAL_NETWORK {
  104. authoritative enable
  105. subnet 192.168.1.0/24 {
  106. default-router 192.168.1.1
  107. dns-server 192.168.1.1
  108. lease 86400
  109. start 192.168.1.30 {
  110. stop 192.168.1.150
  111. }
  112. }
  113. }
  114. }
  115. nat {
  116. rule 5010 {
  117. description "Masquerading outgoing connections"
  118. log disable
  119. outbound-interface eth1.832
  120. type masquerade
  121. }
  122. /* todo TV */
  123. upnp2 {
  124. listen-on eth0
  125. listen-on eth2
  126. nat-pmp enable
  127. secure-mode disable
  128. wan eth1.832
  129. }
  130. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement