Static IP configuration in Ubuntu


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Static IP configuration in Ubuntu
# 1  
Old 02-27-2014
Static IP configuration in Ubuntu

Hi

Am trying to configure static IP in ubuntu

I ve edited /etc/network/interfaces file as
Code:
# The primary network interface
auto eth0
iface eth0 inet static
address 9.123.456.789
netmask 255.255.255.0
network 9.123.0.0
broadcast 9.123.456.255
gateway 9.123.456.1

And I have issued
Code:
sudo service network restart

I tried with
Code:
sudo /etc/init.d/networking restart

But my changes are not reflected in ifconfig -a command ..
Please help !!
# 2  
Old 02-27-2014
That looks about right.
Try checking your /etc/resolv.conf file if there are any unwanted entries.
or bring the interface down and back up
# 3  
Old 08-22-2014
do you have 2 network cards in the server? maybe your not plugged into eth0
# 4  
Old 12-15-2014
remember that under ubuntu, Network-manager manages networks. If you want to do it manually, first stop network-manager:
Code:
sudo service network-manager stop

then check your config in /etc/network/interface, then restart networking service:
Code:
sudo service networking restart

ping the stack, if ok, then the gw, if ok, any ip over internet.

---------- Post updated at 10:49 AM ---------- Previous update was at 10:46 AM ----------

in your config, you may add dns information, that can help:

[...]
Code:
dns-nameservers <dns ip>

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ubuntu Server 14.04 LTS - domain controller configuration (SAMBA)

Hello! Never configured a Linux server from a scratch. Reviewed the official documentation and dozens of different "how to", but now one of them helped me to solve the issue. The need: My final goal is to install a small network (later with around 10 stations) where I can controle the... (0 Replies)
Discussion started by: AQwert
0 Replies

2. UNIX for Dummies Questions & Answers

Ubuntu Server - simple network and users configuration

Hello, I am new to Ubuntu Server. Can you please suggest very simple configuration to network. Need: 1. Ubuntu Server (already installed) 2. Connect to it 1 Linux Mint computer (already installed) + 1 computer with Windows 7 (already installed). Need to create 3 groups with... (2 Replies)
Discussion started by: ABQw
2 Replies

3. Ubuntu

Upgrade ubuntu 11.10 freeze in the logo with msg below no network configuration

Hi, I just upgrade my 11.04 to 11.10 last 2 days ang after i upgrade my system wont boot ang stay freezes forever in the logo with a msgs below state that the system will boot without network configuration. by the way before that happen the system show msgs about configure the network and again... (2 Replies)
Discussion started by: jao_madn
2 Replies

4. Programming

Even the Static cURL Library Isn't Static

I'm writing a program which uses curl to be run on Linux PCs which will be used by a number of different users. I cannot make the users all install curl on their individual machines, so I have tried to link curl in statically, rather than using libcurl.so. I downloaded the source and created a... (8 Replies)
Discussion started by: BrandonShw
8 Replies

5. Ubuntu

[UBUNTU] mount.nfs fails in Ubuntu / Works on Red Hat!!!

Gurus, I want log in locally to my Lucid (10.04) workstation and have my code saved over the network on my samba account At work, all developers have samba user ids and when we were running Red Hat, we went thru the following procedure to get setup. * open a shell session to NFS server... (2 Replies)
Discussion started by: alan
2 Replies

6. Linux

Could static library include static library?

I have some static library(libxxx.a libyyy.a). And I want to generate my library(libzzz.a), libzzz.a will use libxxx.a and libyyy.a I wan't my application only use libzzz.a, (means libzzz.a had include libxxx.a, libyyy.a), how can I do that? Thank you. example: I have zzz.c. I do ... (4 Replies)
Discussion started by: freemagic
4 Replies

7. Ubuntu

Ubuntu anjuta configuration problem

Ubuntu version 8.10, Anjuta version 2.26.00. When load Anjuta a window shows up with the message "utility "" not installed. Please install it". What is this? Tried purge Anjuta amd remove autoremove using apt-get and re-install Anjuta but it doesn't solve my problem. How can i get rid off this... (0 Replies)
Discussion started by: gaviao
0 Replies

8. IP Networking

I need HELP to Set up Coyote Linux router with 1 static IP & 64 internal static IP

hello, i need help on setting my coyote linux, i've working on this for last 5 days, can't get it to work. I've been posting this message to coyote forum, and other linux forum, but haven't get any answer yet. Hope someone here can help me...... please see my attached picture first. ... (0 Replies)
Discussion started by: dlwoaud
0 Replies
Login or Register to Ask a Question