Showing posts with label Change ip address in Centos and Windows. Show all posts
Showing posts with label Change ip address in Centos and Windows. Show all posts

Thursday, January 23, 2014

Change ip address in Centos and Windows


To change the ip address in linux:
  • Go to /etc/sysconfig/network-scripts/
  • vi ifcfg-eth1
  • change the ip
  • Type the following commands
    •  ifdown eth1
    • ifup eth1
  • If the changes are not reflected, give 'service network reload'
  • To add aliases, change the ifcfg-eth1-range1 file
  • In windows, go to Local area connection, right click->properties->TCP/IP->properties
  • Add the IP and gateway there
  • To add aliases in windows, click on Advanced->add and add the alias you want.