Guest User

Untitled

a guest
Jul 25th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. ## Configure eth0
  2. #
  3. # vi /etc/sysconfig/network-scripts/ifcfg-eth0
  4.  
  5. DEVICE="eth0"
  6. NM_CONTROLLED="yes"
  7. ONBOOT=yes
  8. HWADDR=A4:BA:DB:37:F1:04
  9. TYPE=Ethernet
  10. BOOTPROTO=static
  11. NAME="System eth0"
  12. UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
  13. IPADDR=192.168.1.44
  14. NETMASK=255.255.255.0
  15.  
  16.  
  17. ## Configure Default Gateway
  18. #
  19. # vi /etc/sysconfig/network
  20.  
  21. NETWORKING=yes
  22. HOSTNAME=centos6
  23. GATEWAY=192.168.1.1
  24.  
  25.  
  26. ## Restart Network Interface
  27. #
  28.  
  29. /etc/init.d/network restart
  30.  
  31. ## Configure DNS Server
  32. #
  33. # vi /etc/resolv.conf
  34.  
  35. nameserver 8.8.8.8 # Replace with your nameserver ip
  36. nameserver 192.168.1.1 # Replace with your nameserver ip
Add Comment
Please, Sign In to add comment