Advertisement
hackerboxes

set static network at debian system

Aug 16th, 2013
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. 1.vi /etc/network/interfaces
  2. 2.input content:
  3. auto lo
  4. iface lo inet loopback
  5.  
  6. allow-hotplug eth0
  7. #iface eth0 inet dhcp
  8. iface eth0 inet static
  9. address 192.168.1.44
  10. gateway 192.168.1.1
  11. netmask 255.255.255.0
  12. network 192.168.1.0
  13. broadcast 192.168.1.255
  14.  
  15. 3.ifdown eth0&&ifup eth0
  16. 4.vi boot_net.sh
  17. 5.input content:
  18. /sbin/ifup eth0
  19. 4.init 6
  20. 5. cd /etc/rcS.d/
  21. 6.ln -s /etc/network/boot_net.sh S30net
  22. thanks your help.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement