Advertisement
mabigboy

Configuration des interfaces des machines

Dec 26th, 2011
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.41 KB | None | 0 0
  1. ### /etc/sysconfig/network DNS Primaire
  2. NETWORKING=yes
  3. NETWORKING_IPV6=no
  4. HOSTNAME=dns1
  5. NOZEROCONF=yes
  6.  
  7. ### /etc/sysconfig/network-scripts/ifcfg-eth0 DNS Primaire
  8. # Intel Corporation 82540EM Gigabit Ethernet Controller
  9. DEVICE=eth0
  10. BOOTPROTO=dhcp
  11. ONBOOT=yes
  12. HWADDR=08:00:27:00:00:02
  13.  
  14. ### /etc/sysconfig/network DNS Secondaire
  15. NETWORKING=yes
  16. NETWORKING_IPV6=no
  17. HOSTNAME=dns2
  18. NOZEROCONF=yes
  19.  
  20.  
  21. ### /etc/sysconfig//network-scripts/ifcfg-eth0 DNS Secondaire
  22. # Intel Corporation 82540EM Gigabit Ethernet Controller
  23. DEVICE=eth0
  24. BOOTPROTO=dhcp
  25. ONBOOT=yes
  26. HWADDR=08:00:27:00:00:03
  27.  
  28.  
  29. ### /etc/sysconfig/network DHCP
  30. NETWORKING=yes
  31. NETWORKING_IPV6=no
  32. HOSTNAME=dhcp
  33. NOZEROCONF=yes
  34.  
  35. ### /etc/sysconfig//network-scripts/ifcfg-eth0 DHCP
  36. DEVICE=eth0
  37. BOOTPROTO=static
  38. IPADDR=192.168.0.1
  39. NETMASK=255.255.255.0
  40. NETWORK=192.168.0.0
  41. BROADCAST=192.168.0.255
  42. ONBOOT=yes
  43.  
  44. ### /etc/sysconfig/network Client 1
  45. NETWORKING=yes
  46. NETWORKING_IPV6=no
  47. HOSTNAME=client1
  48. NOZEROCONF=yes
  49.  
  50. ### /etc/sysconfig//network-scripts/ifcfg-eth0 Client 1
  51. # Intel Corporation 82540EM Gigabit Ethernet Controller
  52. DEVICE=eth0
  53. ONBOOT=yes
  54. BOOTPROTO=dhcp
  55. DHCP_HOSTNAME=client1
  56.  
  57. ### /etc/sysconfig/network Client 2
  58. NETWORKING=yes
  59. NETWORKING_IPV6=no
  60. HOSTNAME=client2
  61. NOZEROCONF=yes
  62.  
  63. ### /etc/sysconfig//network-scripts/ifcfg-eth0 Client 2
  64. # Intel Corporation 82540EM Gigabit Ethernet Controller
  65. DEVICE=eth0
  66. BOOTPROTO=dhcp
  67. ONBOOT=yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement