Pages

Thursday, 23 April 2015

How to config IP Address in CentOS via Terminal

Step 1. Open terminal
Step 2. Switch to root, next
       
              #vi /etc/sysconfig/network-scripts/ifcfg-eth0
           
                         DEVICE = "eth0"
                         BOOTPROTO = "Static"
                         ONBOOT = "Yes"
                         TYPE = "Ethernet"
                         IPADDR = 192.168.4.4
                         NETMASK = 255.255.255.0
                         GATEWAY = 192.168.4.7
                         DNS1 = 8.8.8.8
                         DNS2 = 8.8.4.4
        Press Esc, wq!

           # /etc/init.d/network restart

1 comment:

  1. Casino Site | Free Bets | Bonus up to 20€
    We have the best online casino bonuses, and you can claim the best welcome bonuses and get more free spins! Our casino website offers hundreds of 클레오 카지노 slot games to choose from!

    ReplyDelete

thank you...