mdshaonimran

CC interface

Dec 13th, 2011
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. # The loopback network interface
  2. auto lo
  3. iface lo inet loopback
  4.  
  5. # this is for local network
  6. auto eth0
  7. iface eth0 inet static
  8. address 10.10.10.2
  9. netmask 255.255.255.0
  10. network 10.10.10.0
  11. broadcast 10.10.10.255
  12. # gateway 192.168.1.1
  13. dns-nameservers 192.168.1.1
  14.  
  15. # this is for public network
  16. # The primary network interface
  17. auto eth1
  18. iface eth1 inet static
  19. address 192.168.1.102
  20. netmask 255.255.255.0
  21. network 192.168.1.0
  22. broadcast 192.168.1.255
  23. gateway 192.168.1.1
  24. dns-nameservers 192.168.1.1
Advertisement
Add Comment
Please, Sign In to add comment