06-20-2011
Can't access network interfaces anymore [Kinda urgent]
Hello,
I've bought an semi-dedicated (cloud computing) server, but yesterday I had to change my IP, so I tried this with PuTTY:
Went to
/etc/network/interfaces
And changed
iface eth0 inet static
To
iface eth0 inet dhcp
Hoping to get an dynamic IP
Then I restarted my network with:
/etc/init.d/networking restart
And then I lost my connection to the host, I've contacted the support team of the company that hosts it (actually it's hosted in Softlayer, but I've bought it from other vendor, 'cause I'm from Brazil), and he said he tried this:
/etc/network/interfaces:1
in the host computer, but didn't help... He wants to format the computer, but I would lost all my datas, and this is just unthinkable... What could I do, please? I'm desperate!
Thanks... Waiting anxiously for answers...
[I kinda now this isn't the best place to post this, but I'm desperate... Please understand]
10 More Discussions You Might Find Interesting
1. Solaris
Yes. But just wait a bit. How to do it via system calls? I'm just a newbie in Unix\Linux\Solaris e.t.c. programming. Can anyone help me? I need an advice probably how to do it or may be what API to read... :) Please, help... (2 Replies)
Discussion started by: LocalStorm
2 Replies
2. IP Networking
Hi,
I have problems with my SCO unix network interfaces.
Intel integrated adapter was failing, so I installed new one - 3COM adapter into free PCI slot.
Installed driver using SCO Software manager - successfully
Added new Network adapter using SCO Network configuration manager - successfully... (0 Replies)
Discussion started by: vilius
0 Replies
3. SCO
Hi,
I have problems with my SCO unix network interfaces.
Intel integrated adapter was failing, so I installed new one - 3COM adapter into free PCI slot.
Installed driver using SCO Software manager - successfully
Added new Network adapter using SCO Network configuration manager - successfully... (0 Replies)
Discussion started by: vilius
0 Replies
4. AIX
Hi all, this is my first post on this forum. My main problem is this:
I have a NIM server that I am trying to configure two interfaces on. One interface is for an internal Admin VLAN, the other is so that the server can use SUMA to pull updates. The problem is that I need help w/ the routing.... (0 Replies)
Discussion started by: snakernetb
0 Replies
5. AIX
Hi all, this is my first post on this forum. My main problem is this:
I have a NIM server that I am trying to configure two interfaces on. One interface is for an internal Admin VLAN, the other is so that the server can use SUMA to pull updates. The problem is that I need help w/ the routing.... (1 Reply)
Discussion started by: snakernetb
1 Replies
6. Shell Programming and Scripting
Hi all,
I wanted to know how to modify the size of the ramdisk?
I mean am manipulating a live cd ,for which the file am manipulating is within a ramdisk now due to size constraints i am unable to play around with some stuff....
currently the size of the ram disk is 64M...
I would like to... (1 Reply)
Discussion started by: wrapster
1 Replies
7. Solaris
I got second IOU in my M5000 but not able bring internal network interfcae .. ike i don't get link on those 2 interfaces .. and the same network cable plugged in PCI network card it works like a charm Is there any special way to enable the internal IOU interfaces or i have bad nics ? (8 Replies)
Discussion started by: fugitive
8 Replies
8. Debian
Hello
i am configuring a debian lenny sever ,/etc/network/interfaces is modified so that eth1 takes a static IP address
then i save it wq!
then i restart the networking , /etc/init.d/networking restart .
but after reboot ,the file is reset ,note that the interfaces had by defauklt IPv6 address... (5 Replies)
Discussion started by: learn82
5 Replies
9. Solaris
Hi Folks,
My telnet access to the server is not available anymore. I have found that when I execute >telnet IP, the login prompt for username/password entry is not displayed. Cursor blinks in a empty line and I dont see the prompt to enter my username.
It hungs in this state and not possible... (1 Reply)
Discussion started by: ekorgur
1 Replies
10. UNIX for Dummies Questions & Answers
i need a one liner command that writes in /var/log/net.log the date when i connect to the network and when i disconect ..i know that i need to write somethin in /etc/network/interfaces but idk what ! please help (1 Reply)
Discussion started by: g0dlik3
1 Replies
ifup(8) ifup(8)
NAME
ifup - bring a network interface up
ifdown - take a network interface down
SYNOPSIS
ifup [-nv] [--no-act] [--verbose] [-i FILE|--interfaces=FILE] [--allow CLASS] -a|IFACE...
ifup -h|--help
ifup -V|--version
ifdown [-nv] [--no-act] [--verbose] [-i FILE|--interfaces=FILE] [--allow CLASS] -a|IFACE...
DESCRIPTION
The ifup and ifdown commands may be used to configure (or, respectively, deconfigure) network interfaces based on interface definitions in
the file /etc/network/interfaces.
OPTIONS
A summary of options is included below.
-a, --all
If given to ifup, affect all interfaces marked auto. Interfaces are brought up in the order in which they are defined in /etc/net-
work/interfaces. If given to ifdown, affect all defined interfaces. Interfaces are brought down in the order in which they are
currently listed in the state file. Only interfaces defined in /etc/network/interfaces will be brought down.
--force
Force configuration or deconfiguration of the interface.
-h, --help
Show summary of options.
--allow=CLASS
Only allow interfaces listed in an allow-CLASS line in /etc/network/interfaces to be acted upon.
-i FILE, --interfaces=FILE
Read interface definitions from FILE instead of from /etc/network/interfaces.
-e PATTERN, --exclude=PATTERN
Exclude interfaces from the list of interfaces to operate on by the PATTERN. Notice that the PATTERN can be a full interface name
or substrings that match interfaces. Users could easily have unexpected behaviour if they use a small string to do the match.
-n, --no-act
Don't configure any interfaces or run any "up" or "down" commands.
--no-mappings
Don't run any mappings. See interfaces(5) for more information about the mapping feature.
-V, --version
Show copyright and version information.
-v, --verbose
Show commands as they are executed.
EXAMPLES
ifup -a
Bring up all the interfaces defined with auto in /etc/network/interfaces
ifup eth0
Bring up interface eth0
ifup eth0=home
Bring up interface eth0 as logical interface home
ifdown -a
Bring down all interfaces that are currently up.
NOTES
ifup and ifdown are actually the same program called by different names.
The program does not configure network interfaces directly; it runs low level utilities such as ip to do its dirty work.
FILES
/etc/network/interfaces
definitions of network interfaces See interfaces(5) for more information.
/var/run/network/ifstate
current state of network interfaces
KNOWN BUGS
/LIMITATIONS
The program keeps records of whether network interfaces are up or down. Under exceptional circumstances these records can become inconsis-
tent with the real states of the interfaces. For example, an interface that was brought up using ifup and later deconfigured using ifcon-
fig will still be recorded as up. To fix this you can use the --force option to force ifup or ifdown to run configuration or deconfigura-
tion commands despite what it considers the current state of the interface to be.
The file /var/run/network/ifstate must be writable for ifup or ifdown to work properly. On Ubuntu the /var/run location is a temporary
filesystem which is always writable and thrown away on shutdown. You can also use the --force option to run configuration or deconfigura-
tion commands without updating the file.
Note that the program does not run automatically: ifup alone does not bring up interfaces that appear as a result of hardware being
installed and ifdown alone does not bring down interfaces that disappear as a result of hardware being removed. To automate the configura-
tion of network interfaces you need to install other packages such as hotplug(8) or ifplugd(8).
AUTHOR
The ifupdown suite was written by Anthony Towns <aj@azure.humbug.org.au>.
SEE ALSO
interfaces(5), ip(8), ifconfig(8).
IFUPDOWN
22 May 2004 ifup(8)