I have installed Ubuntu 8.10 on my machine and i am using Linksys WPC54G to access internal network. Now i want to change my ip address, i need static ip address. Does anyone know how to change IP address in ubuntu?
I have installed Ubuntu 8.10 on my machine and i am using Linksys WPC54G to access internal network. Now i want to change my ip address, i need static ip address. Does anyone know how to change IP address in ubuntu?
You can edit the /etc/network/interfaces file to change ip address in ubuntu. Open this file up in editor Now, modify /etc/network/interfaces and add.
auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.248.0
gateway 192.168.0.224
Remove the Gnome Network Manager,You need to complete this step first because if left installed this application will overwrite any changes you make to your configuration when the system is rebooted.In reality there are two files that must be configured and one file that can be configured. The “must files” are /etc/network/interfaces and /etc/resolv.conf. The “can file” is /etc/hosts.
You can change ip address in Linux using ifconfig command itself. To set IP address 192.168.22.105, enter command:
# ifconfig eth0 192.168.22.105 netmask 255.255.224.0 up
# ifconfig eth0
To make permanent changes to IP address you need to edit or modify the following file: /etc/networks/interfaces. according to your Linux distribution.
Bookmarks