How to Assign IP in Linux,Unix and Windows

How to Assign IP in Linux

First go to the terminal and write ifconfig to check whether the IP is assigned or not. If the IP is not assigned or it has to be changed then there are 2 ways, either to assign IP temporarily or permanent.

Temporarily Assignment of IP in Linux

For temporarily assignment of IP 3 ways can be used

• Go to terminal and write
ifconfig eth0 {IP Address} netmask {netmask address}
• Go to terminal and write
netconfig and then assign IP and netmask address.
• Go to terminal and write
setup and then go to network settings and assign I.P and netmask address.

Permanent Assignment of IP in Linux

For permanent Assignment of IP go to /etc/sysconfig/network-scripts and open file named ifcfg-eth0 and update or assign the IP.

How to Assign IP in UNIX

Write netconfig on command prompt, in hardware select SCO TCP/IP {driver name} and then select SCO TCP/IP using tab, again press tab and select Protocol using arrow key, then select modify protocol configuration and assign IP then it will ask to rebuilt kernel, press yes then reboot the system to update I.P.

How to Assign IP in Windows

Select My network places, right click on it and go in properties and select Local Area Network, right click and select properties here select Internet Protocol TCP/IP in general, select properties and change the IP.
Write netconfig on command prompt, in hardware select SCO TCP/IP {driver name} and then select SCO TCP/IP using tab, again press tab and select Protocol using arrow key, then select modify protocol configuration and assign IP then it will ask to rebuilt kernel, press yes then reboot the system to update IP.

Be Sociable, Share!

Leave a Reply