Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. ; cat /etc/network/interfaces
  2. # This file describes the network interfaces available on your system
  3. # and how to activate them. For more information, see interfaces(5).
  4.  
  5. # The loopback network interface
  6. auto lo
  7. iface lo inet loopback
  8.  
  9. # The primary network interface
  10. auto eth0
  11. iface eth0 inet static
  12. [snip]
  13. # Firewall load/unload.
  14. up /sbin/iptables-restore -c < /etc/network/firewall
  15. down /sbin/iptables-save -c | /bin/grep -v physdev > /etc/network/firewall
  16. up /sbin/ip6tables-restore -c < /etc/network/firewall6
  17. down /sbin/ip6tables-save -c > /etc/network/firewall6
  18.  
  19. # ADSL PPPOE Interface.
  20. auto eth1
  21. iface eth1 inet static
  22. address 172.16.26.10
  23. netmask 255.255.255.0
  24. network 172.16.26.0
  25.  
  26. auto internode
  27. iface internode inet ppp
  28. pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
  29. provider internode
  30.  
  31. ; cat /etc/ppp/peers/internode
  32. # Configuration file for PPP, using PPP over Ethernet
  33. # to connect to a DSL provider.
  34. #
  35. # See the manual page pppd(8) for information on all the options.
  36.  
  37. ##
  38. # Section 1
  39. #
  40. # Stuff to configure...
  41.  
  42. # MUST CHANGE: Uncomment the following line, replacing the user@provider.net
  43. # by the DSL user name given to your by your DSL provider.
  44. # (There should be a matching entry in /etc/ppp/pap-secrets with the password.)
  45. #user myusername@myprovider.net
  46.  
  47. # Use the pppoe program to send the ppp packets over the Ethernet link
  48. # This line should work fine if this computer is the only one accessing
  49. # the Internet through this DSL connection. This is the right line to use
  50. # for most people.
  51. pty "/usr/sbin/pppoe -I eth1 -T 80 -m 1452"
  52. # pty "/usr/sbin/pppoe -I eth1 -T 80 -m 1452"
  53.  
  54. # An even more conservative version of the previous line, if things
  55. # don't work using -m 1452...
  56. # pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1412"
  57.  
  58. # If the computer connected to the Internet using pppoe is not being used
  59. # by other computers as a gateway to the Internet, you can try the following
  60. # line instead, for a small gain in speed:
  61. #pty "/usr/sbin/pppoe -I eth0 -T 80"
  62.  
  63. noproxyarp
  64.  
  65. # The following two options should work fine for most DSL users.
  66.  
  67. # Assumes that your IP address is allocated dynamically
  68. # by your DSL provider...
  69. noipdefault
  70. # Try to get the name server addresses from the ISP.
  71. # Use this connection as the default route.
  72. # Comment out if you already have the correct default route installed.
  73. defaultroute
  74.  
  75. ##
  76. # Section 2
  77. #
  78. # Uncomment if your DSL provider charges by minute connected
  79. # and you want to use demand-dialing.
  80. #
  81. # Disconnect after 300 seconds (5 minutes) of idle time.
  82.  
  83. #demand
  84. #idle 300
  85.  
  86. ##
  87. # Section 3
  88. #
  89. # You shouldn't need to change these options...
  90.  
  91. hide-password
  92. lcp-echo-interval 20
  93. lcp-echo-failure 3
  94. # Override any connect script that may have been set in /etc/ppp/options.
  95. connect /bin/true
  96. noauth
  97. persist
  98. mtu 1492
  99.  
  100. +ipv6
  101.  
  102. # RFC 2516, paragraph 7 mandates that the following options MUST NOT be
  103. # requested and MUST be rejected if requested by the peer:
  104. # Address-and-Control-Field-Compression (ACFC)
  105. noaccomp
  106. # Asynchronous-Control-Character-Map (ACCM)
  107. default-asyncmap
  108.  
  109. plugin rp-pppoe.so eth1
  110. user "username@ipv6.internode.on.net"
  111. # user "username@internode.on.net"
  112. # user "username@dynamic.internode.on.net"
  113.  
  114. ipparam ipv6default
  115.  
  116.  
  117.  
  118. ;cat /etc/ppp/chap-secrets
  119. # Secrets for authentication using CHAP
  120. # client server secret IP addresses
  121.  
  122.  
  123.  
  124. "username@ipv6.internode.on.net" * "secret"
  125. "username@internode.on.net" * "secret"
  126. "username@dynamic.internode.on.net" * "secret"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement