Advertisement
jewome62

interfaces

Mar 4th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.13 KB | None | 0 0
  1.  
  2.  
  3. # This file describes the network interfaces available on your system
  4. # and how to activate them. For more information, see interfaces(5).
  5.  
  6. # The loopback network interface
  7. auto lo
  8. iface lo inet loopback
  9.  
  10. # The primary network interface
  11. auto eth0
  12. iface eth0 inet static
  13.         address 192.168.1.2
  14.         netmask 255.255.255.0
  15.         gateway 192.168.1.1
  16.         dns-nameservers 208.67.222.222 208.67.220.220
  17.  
  18. auto eth1
  19. iface eth1 inet manual
  20.  
  21. #Net Ovh
  22. auto vlan300
  23. iface vlan300 inet dhcp
  24.         vlan-raw-device eth1
  25.  
  26. ###############     Reseau Local      ########################
  27. #Reseau Filiaire
  28. auto vlan200
  29. iface vlan200 inet manual
  30.         vlan-raw-device eth1
  31.  
  32. #Reseau Wifi
  33. auto wlan0
  34. iface wlan0 inet manual
  35.  
  36. #Reseau local global
  37. auto lan
  38. iface lan inet static
  39.         address 192.168.0.1
  40.         netmask 255.255.255.0
  41.         network 192.168.0.0
  42.         broadcast 192.168.0.255
  43.         pre-up iptables-restore < /etc/network/customIpTables
  44.         post-up upnpd eth0 lan
  45.         post-down iptables-save > /etc/network/customIpTables
  46.         pre-down killall upnpd
  47.         bridge-ports vlan200 wlan0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement