Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Which distro are you using? See if you have a /etc/sysconfig/network/ifcfg-eth0 file. You need to su to root to edit it. ( Note: I'm guessing that your interface is named eth0 )
Change the IP address listed after "IPADDR=".
Quote:
from the ifcfg.template file:
# If using a static configuration you have to set an IP address and a netmask
# or prefix length. The following examples are equivalent:
# 1) IPADDR=192.168.1.1
# NETMASK=255.255.255.0
# 2) IPADDR=192.168.1.1
# PREFIXLEN=24 # NETMASK will be ignored
# 3) IPADDR=192.168.1.1/24 # NETMASK and PREFIXLEN will be ignored
Can someone help me and tell me how to implement this on Ubuntu? I have been taking a look at /etc/sysctl.conf, /etc/init.d/networking and the different files in /etc/network but I haven't yet been able to figure out how to do this permanently.
so edit ifcfg-eth0 (post it if you still need help)
Crep, hey!
Thanks for the help. Even after the updatedb nothing was found: even tried a find . -name and left it for 2 hours to come back with no such file.
However, I found what I was looking for: as it turns out, Ubuntu systems use /etc/network/interfaces to maintain ip addresses and all, and so I edited that file manually and could get the system to change its ip address.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.