Hi
Am trying to configure static IP in ubuntu
I ve edited /etc/network/interfaces file as
# 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
sudo service network restart
I tried with
sudo /etc/init.d/networking restart
But my changes are not reflected in ifconfig -a command ..
Please help !!
br1an
2
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
rdunne
3
do you have 2 network cards in the server? maybe your not plugged into eth0
arpagon
4
remember that under ubuntu, Network-manager manages networks. If you want to do it manually, first stop network-manager:
sudo service network-manager stop
then check your config in /etc/network/interface, then restart networking service:
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:
[...]
dns-nameservers <dns ip>