Ubuntu Servers :: After Initial Reboot - Network Interfaces Can't Be Found
Feb 10, 2011
Last night I created a fresh install of Ubuntu Server 10.10. I was working through a tutorial to set up a development server for home use, and everything worked perfectly. I was able to install OpenSSH, Apache, MySQL, and PHP (and Vim) with no problems. I was also able to use "ifconfig" to determine the network address of the server and I was able to view web pages on the server from another machine on my home network, using a browser. So, everything was "peachy". [By the way: The server is connected to the router using a CAT5 cable. This is a WIRED connection] I shut the Ubuntu server down at the end of the night and, now that I have rebooted this morning, I have apparently lost the network interface. I cannot ping anything from the server. If I run ifconfig, only the "lo" configuration is listed, with the 127.0.0.1 address.
DSL modem is a Speedstream 6520 router. All computers work fine via dhcp. I'm trying to setup a small server (print server, ssh & ftp servers). I understand enough of the software part of things to get it going, my problem is setting a static IP on the server box. Every time I set the IP in the /etc/network/interfaces file and reboot, I have no network connection. I can talk to the modem through the browser, but nothing beyond that, not even local computers.
/etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.254.202 network 192.168.254.0 netmask 255.255.255.0 gateway 192.168.254.254
ifconfig shows the .202 address, but box can't get to the outside world, and can't ssh into the box from a computer sitting next to it. If I let it dhcp, then I can ssh into it, and have access to the internet. In the modem, I have dmz set for that address. Wan address is static. I can ssh into it if I let it do dhcp, so I know it can work that far. But if I set static ip, I might as well pull the network cable. I've been beating my head on this for over a week, and I'm lost why I can't get it to work. I even changed the dhcp range on the modem, so the .202 is not in that range. There is no dhcp client installed that I can find. I'm using WattOS beta3, which is a light distro based on 9.04. The computer is an old Dell GX150, integrated nic. I have done ifdown and ifup eth0, still no happiness. Doesn't seem like it should be that hard, but I'm stumped. DMZ should let everything pass, so don't need to mess with port forwarding and such. I know it works using dhcp.
I have a weird issue that I have not seen on any forum. My jaunty on DELL studio laptop seems connected to net, but I can not access any network service (ssh, firefox etc.). But when I connect a cable the cable lights blink as it should be and in wireless connection my wifi light blinks.
It was working 2 days ago without problem, and I have not done big changes recently.I removed and reinstalled network-manager and network-manager-gnome. Nothing changed. I see a message in each restart as follows (when Openafs is starting). I can reproduce it with "/etc/init.d/openafs-client restart"
Code:
ADVISEADDR:error in specifying interfaces: no existing ip interfaces found
I have 3 windows computers and just bought linux server. All of them are currently connected to switch. There is also Wireless AP connected to switch and ADSL router connected to switch (yeah, I know its possible to buy a 3in1 but this was bought piecemeal). ADSL is doing the DHCP and I'm not using any other advanced services.
Now, I want to route everything over the linux server. I got the 3 LAN cards for him (one for wireless, one for LAN and one for ADSL) but when I connect everything this way its not working (surprise surprise). I'm following Linux Advanced Routing & Traffic Control HOWTO but its surprisingly sparse on the topic of network setup and i dont know how to proceed now. Since the server will be a choke point I presume I need to setup DHCP server on him? First question is: can I use same netmask on all of these subnets? Ubuntu DHCP server guide uses both static and DHCP and am not sure if I should also use static on some routes or is it ok to use DHCP on all.
Also, when I was installing ubuntu server only one LAN card was used (eth2) so ifconfig shows only lo and eth2, but when I do ifconfig eth0 up and ifconfig eth1 up it doesnt look like its working. Anyway, hope somebody has some tips to point me in the right direction, primarily DHCP server setup and if I missed any steps...
I have been trying to set up Ubuntu server 10.04-2 and am a couple issues.
One issue is that the network interfaces aren't starting properly. I have to start them manually. I've tried to edit the /etc/network/interfaces with the following.
Code: auto lo iface lo inet loopback auto eth0 iface eth0 inet static
how to edit and save this file using Vim-noX. (connected via putty) I have the file loaded up and Ive inputed the needed data for my static IP, but I cant for the life of me figure out how to close and save my settings. At the bottom of the command line I have "INSERT" which toggles with "REPLACE" and I just cant figure this out.
I'm building up a server based on 8.04 LTS. It's using OpenVZ, and as part of that it creates a virtual network interface venet0. I add a stanza to /etc/network/interfaces that looks like this:
Looking further, I note that /etc/init.d/networking is not symlinked into anything other than the rcS.d directory. It's been a while since I've been tinkering at this level, but I understand that there should be a symlink from rc2.d/Sxxnetworking into ../etc/init.d/networking. So I wonder where eth0 is getting configured.
When i type vi /etc/network/interfaces, i get a blank screen with blue dashes on the left side. "/etc/network/interfaces/" [New DIRECTORY]. I am running Ubuntu 11.04 server and am trying to set static ip. I found a work around but why is this happening?
If I try to add a new interface (eth1) to /etc/network/interfaces, I get
Code: * Reconfiguring network interfaces... SIOCSIFADDR: No such device eth1: ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device
[Code]...
How do I add 2 interfaces and get anyone of them to work, as available ?
I'm trying to install the latest release of Ubuntu from the official site, 10.10.
I downloaded the 64-bit edition first to install. After burning it to a CD, it launches in my PC just fine and lets me go through the install process. I'm letting Ubuntu use up the whole HDD, so no special options are being chosen during the install. At the end of the installation, it asks me to restart and I hit OK, it closes out of the box and leaves me looking at the default background... forever.
Thinking I did something wrong, I tried again, but this time left the box to download updates and install 3-rd party software unchecked. Same thing as above, it appeared to install just fine but hung after I tell it to reboot.
Lastly, I downloaded the 32 bit edition to try, and it gives me the same error.
If I hard restart my machine after waiting on the background image for a while, it will not boot when it comes back up. My PC just remains at a screen after the BIOS acting like it's searching for bootable media.
I'll be honest that I haven't waited for over 15 minutes for it to restart. But should it really take that long?
Whenever I reboot my server, it looses all network connectivity. It can't see the LAN nor the internet. I have to issue the following:
Code: ifconfig eth0 down ifconfig eth1 down ifconfig eth1 up
This will get the server talking to the LAN, but still not to the internet. To get that I have to do:
Code: route add default gw 192.168.0.1
Then I'm up and running.
But why?
Granted I only have to reboot now and then (after a power failure, or, like last night where the server was actually heating the house too much on a hot August day) but why is this happening? It is like these settings are temporary and are lost on shutdown.
I've got a problem, the interfaces are shutted by the system, so after the reboot I have no network conectivity even if I used the setup command to configure the interfaces.
The ethernet configuration files are under "/etc/sysconfig/network-scripts" such as "ifcfg-eth0:1" etc.
The file looks as follow: Code: DEVICE="eth0:1" BOOTPROTO="static" ONBOOT=no IPADDR="172.23.17.10" NETMASK="255.255.255.0" ALIAS="yes"
I've set the ONBOOT=no. This means this device should not be activated at boot-time. But as I reboot the machine, this device is activated again. This means the option ONBOOT doesn't work. Seems this is a bug of RedHat LINUX?
Alright, here's the problem: I have a server going that was running 10.10, then upgraded to 11.04 with no problems, but when I reinstalled 9.04 (so i could muck around with GNUPanel), the install couldn't find the ethernet on the motherboard (which I had no problems with on 10.10 or 11.04). I'm a bit of a newb, but it seems to me that something is very wrong here because I can't get online. All of the other computers in my house are unaffected, so I think I can narrow it down to the device not being recognized, but beyond that, I'm lost.
My computer is a Compaq Presario 2110CA. When installing Ubuntu 10.10, after the installation is complete, I select the option to reboot. During the shutdown procedure, the CD drive ejects the installation CD. I/O error messages fill the screen. This isn't what troubles me, since this issue is taken up in other posts and forums. When I press Enter, the laptop reboots as it's supposed to.
Once Ubuntu reboots, it prompts me for login information. After entering my username and password, it plays the startup sound, gives one warning pop-up about the health of my battery, and then the screen stays on the default background only. There are no mini-indicators for wireless connectivity or shutdown/suspend options - just the background. The cursor shows up, too.
I have tried to install gnome-core from the console. I have also tried to make clean, fresh DVD copies of the installation .iso. Each time, because of the CD ejecting during the initial reboot, I arrive at a blank desktop background. What is the best way to properly complete the installation so I can begin enjoying Ubuntu?
Using Fedora 10, can anyone tell me how to setup the network scripts to create two network interfaces for vlan x and y. Both interfaces should obtain an ip from dhcp and both interfaces should run over eth0.
I've not found how to configure more than one ip address with network manager.Nor with kde nor with plasmoid network manager.I need several virtual ip addresses for eth0 when the "default" of eth0 is connected i.e. "Connected to Auto eth0" should initialize the virtual interfaces.I have not found no even how to configure the ip address.I think this will be used from ifup config in yast or not?There I have the virtual interfaces but they are not taken from network manager.And last but no least: Is it possible that when using network manager the eth0 is enabled even no user has logged in?
Can anyone tell me how to setup the network scripts to create two network interfaces for vlan x and y. Both interfaces should obtain an ip from dhcp and both interfaces should run over eth0.
I've installed mailman on 9.10, using apt-get, have apache2 setup already. However I'm getting 403 forbidden issues when trying to access [URL] I may have mucked something up as initially i jumped straight in and created a virtualhost and played around with the URL redirects. but as far as I can see, it's back to its default and it's still not working... When I try to access the page, in my apache error.log, i get this:
Quote:
[Wed Mar 24 02:36:37 2010] [error] [client 192.168.1.1] attempt to invoke directory as script: /usr/lib/cgi-bin/mailman/
I've tried check_perms, it does give this error:
Quote:
root@babel:/etc/apache2# check_perms /var/lib/mailman/templates bad group (has: root, expected list) /var/lib/mailman/bin bad group (has: root, expected list) /var/lib/mailman/cgi-bin bad group (has: root, expected list)
This is my first server installation. I am intending to make this a basic web server for educational purposes. I have installed this server in VirtualBox, everything seemed to go fine besides the fact that I accidentally hit the enter button when I was at the opportunity to install the additional software during the initial setup. I figured that it was no big deal as I could just use aptitude to get what I needed later. My first step was to get LAMP setup. Heres where it started to seem to go wrong: I installed Apache2, however, it seems that I am unable to test it (no browser).
Code: oliver@DrDoak:~$http://localhost/ -bash: http://localhost/: No such file or directory oliver@DrDoak:~$
I then proceeded to install php5 again I have ran into trouble when trying to open through GEDIT.
Code: oliver@DrDoak:~$ sudo gedit /var/www/testphp.php sudo: gedit: command not found oliver@DrDoak:~$
I'm putting a server together and have run into a boot up problem. (I thought about putting this in the server forum, but it might be a more generic problem that others have seen and know how to rectify.) The install seems to have gone just fine. I have the /boot partition on an internal IDE drive. The rest of that drive and another are mirrored in a Raid0 configuration (using the Linux software to do that) for data storage. The swap partition is a part of the Raid5 SCSI array that also has the / (root) partition on it.
After installation it would not finish the booting process. I suspected that GRUB didn't like all the Raid arrays and such, but it seems to be fine. I can say that because the machine will boot into rescue mode with the GUI splash screen and I have access to the whole directory tree. I have already searched on-line and following prudent advice, ran the yum update while in the chroot /mnt/sysimage mode. That only took overnight to download and most of this morning to complete. Still no dice. Used vim to delete the rhgb quiet commands in the grub.conf file so I could see where the kernel seems to be hanging.
So right after the "Creating initial device nodes" is a line about my generic PS2 wheel mouse. So I tried a USB mouse. Got more output so tried swapping out to a USB keyboard. Got a little further with more information about input devices, but still stops. Also, I tried a PCI video card just to make sure the onboard video wasn't the problem - no change. So, if someone in the Fedora community knows what loads up or is configured right after the mouse and keyboard, I might be able to figure out what's causing the computer to hang during the boot process.
When I run cat /etc/network/interfaces in Ubuntu 11.04 I get the below output. auto lo iface lo inet loopback I don't see the eth0 or eth1 interfaces, but I am able to see them in the Network Tools application. How do I configure the eth0 and eth1 from command line?
On my desktop having a NIC 3Com, connected to the company intranet and correctly working, I have added a second NIC ( Realtek RTL-8139) to connect a second small network ( three devices, instrumentation) using static addressing.The new board seems to be rekognized by Ubuntu, indicating "auto eth1" in the Network connections dialog. When I try to configure the connection, the "Apply" button is always disabled, therefore I cannot activate it. The command lspci shows that the board has been recognized but when i sent the
I have a weird problem with my /etc/network/interfaces configuration. I have the most simple static setup possible: Code: # cat /etc/network/interfaces
For my router I need to change Ubuntu server from DHCP to static IP. So to do this I entered: Code: sudo vi /etc/network/interfaces ...and pushed the wrong buttons and exited the session suddenly by mistake. After learning how to use the vi editor I went back but I got a notice that the the last session didn't close properly and that a "swap" file had been created. Anyway, I entered my static IP info, saved the file, and attempted to restart with:
Code: sudo /etc/init.d/networking restart Restart failed and I got a notice that I should delete the /etc/network/interfaces.swp file so I did. Tried to restart again and, didn't get the .swp file conflict message this time, but failed again - this time I got the following message:
I am currently trying to set up two network interfaces in my laptop. The wireless connection wlan0 works fine and it's the one that I use to connect the internet. It's in the range of 192.168.0.x/24 (gateway: 192.168.0.1). The wired interface eth0 is connect to another router (gateway: 10.0.0.13 with IPs in the range of 10.0.0.x/24. The router is set up to work as an AP and the 10.0.0.x network will only be used to control a robot, so no internet access will be required in this network. The problem is that when I have both connections up, I can't access the Internet anymore. I can still ping both routers, I can enter both routers configuration pages but I can't connect to the Internet. If I unplug the network cable, Internet gets accessible again.
I'm still a novice in linux and I can't figure out how to fix this. I don't want to get into static ip for the wireless connection since I'm constantly using the laptop in different places. The objective is to use the 10.0.0.x router to have a development platform for the robot that can be used anywhere without having to reconfigure the robot for a new network, which is a real pain.
In detail, the laptop connects via wireless to the network with intenet (192.168.0.x) and also connects via cable to another wireless router(10.0.0.x). The wireless connection of the second router is used to connect to the robot. Since I can ping both routers when they're both connected, I think it may be something related to the ip routes. I'm using Ubuntu 9.10 with kernel 2.6.31-17-generic
i edit this file... Code: /etc/network/interfaces now it looks like that
Code: auto eth0 iface eth0 inet dhcp after the change I cant enter to local host with the browser and unable to log to PHPMYADMIN what i need to change to solve it?
I'm trying to configure /etc/network/interfaces to log whenever an interfaces goes up or down into a file, using this format: UP/DOWN [DD-MM-YY/HH:MM:SS]
How exactly do I use commands with the UP and DOWN directives?