Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; cat /etc/network/interfaces
- # This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- # The loopback network interface
- auto lo
- iface lo inet loopback
- # The primary network interface
- auto eth0
- iface eth0 inet static
- [snip]
- # Firewall load/unload.
- up /sbin/iptables-restore -c < /etc/network/firewall
- down /sbin/iptables-save -c | /bin/grep -v physdev > /etc/network/firewall
- up /sbin/ip6tables-restore -c < /etc/network/firewall6
- down /sbin/ip6tables-save -c > /etc/network/firewall6
- # ADSL PPPOE Interface.
- auto eth1
- iface eth1 inet static
- address 172.16.26.10
- netmask 255.255.255.0
- network 172.16.26.0
- auto internode
- iface internode inet ppp
- pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
- provider internode
- ; cat /etc/ppp/peers/internode
- # Configuration file for PPP, using PPP over Ethernet
- # to connect to a DSL provider.
- #
- # See the manual page pppd(8) for information on all the options.
- ##
- # Section 1
- #
- # Stuff to configure...
- # MUST CHANGE: Uncomment the following line, replacing the user@provider.net
- # by the DSL user name given to your by your DSL provider.
- # (There should be a matching entry in /etc/ppp/pap-secrets with the password.)
- #user myusername@myprovider.net
- # Use the pppoe program to send the ppp packets over the Ethernet link
- # This line should work fine if this computer is the only one accessing
- # the Internet through this DSL connection. This is the right line to use
- # for most people.
- pty "/usr/sbin/pppoe -I eth1 -T 80 -m 1452"
- # pty "/usr/sbin/pppoe -I eth1 -T 80 -m 1452"
- # An even more conservative version of the previous line, if things
- # don't work using -m 1452...
- # pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1412"
- # If the computer connected to the Internet using pppoe is not being used
- # by other computers as a gateway to the Internet, you can try the following
- # line instead, for a small gain in speed:
- #pty "/usr/sbin/pppoe -I eth0 -T 80"
- noproxyarp
- # The following two options should work fine for most DSL users.
- # Assumes that your IP address is allocated dynamically
- # by your DSL provider...
- noipdefault
- # Try to get the name server addresses from the ISP.
- # Use this connection as the default route.
- # Comment out if you already have the correct default route installed.
- defaultroute
- ##
- # Section 2
- #
- # Uncomment if your DSL provider charges by minute connected
- # and you want to use demand-dialing.
- #
- # Disconnect after 300 seconds (5 minutes) of idle time.
- #demand
- #idle 300
- ##
- # Section 3
- #
- # You shouldn't need to change these options...
- hide-password
- lcp-echo-interval 20
- lcp-echo-failure 3
- # Override any connect script that may have been set in /etc/ppp/options.
- connect /bin/true
- noauth
- persist
- mtu 1492
- +ipv6
- # RFC 2516, paragraph 7 mandates that the following options MUST NOT be
- # requested and MUST be rejected if requested by the peer:
- # Address-and-Control-Field-Compression (ACFC)
- noaccomp
- # Asynchronous-Control-Character-Map (ACCM)
- default-asyncmap
- plugin rp-pppoe.so eth1
- user "username@ipv6.internode.on.net"
- # user "username@internode.on.net"
- # user "username@dynamic.internode.on.net"
- ipparam ipv6default
- ;cat /etc/ppp/chap-secrets
- # Secrets for authentication using CHAP
- # client server secret IP addresses
- "username@ipv6.internode.on.net" * "secret"
- "username@internode.on.net" * "secret"
- "username@dynamic.internode.on.net" * "secret"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement