Ubuntu Networking :: Static IP - Local But No Internet Access
Jun 4, 2010
my computer with ubuntu 9.10 is in a LAN. We use static ip and do not have dhcp. I can go up to our server and browse our website but cannot access internet. my ifconfig, iwconfig, lspci are as follows...
i would like to setup one of my old pcs as a file server and internet gateway; we are living in a large building shared with 40 others. the ubuntu box would be the one connected to the internet via ethernet and sharing connexion via wifi. i haven't started yet - presently, i am doing the ground work and reading before to start i understand sharing the internet is relatively simple and can be done from the GUI
What we would like is slightly like BT Fon or BT Open Zone in the UK: you can hook on a free network but in order to access outside (internet: email, web, ftp, etc) you need to login login would help us monitor fair usage. I imagine something with username and password for each user would do: as we are a few in the same building not everyone is actually paying for the connection and we don't want to end up with rather large excess bills. So the ones who are paying access both files and internet; those who dont just have access to the files on the local server.
Do i need Ubuntu server to set this up? What hardware would be ideal - given we are all far from rich but willing to have a nice setup
It would be great if you could share some knowledge around the topic and eventually provide some tutorial; also any heads-up on the hardware side would be great! (signal booster, etc - there's 3 floors and 3 buildings)
Running Ubuntu 9.10. In the Remote Desktop config dialog I get: "Your desktop is only reachable over the local network. Others can access your computer using the address 127.0.0.1 or tabatha.local." I understand this means only the loopback ip address is available. All my other machines show their true local ip address (e.g., 192.168.1.104) in this dialog. Thus I cannot log on to this desktop from other machines.
When I try to do a remote logon from another Ubuntu 9.10 box (or from an XP box using a VNC viewer), I get: "Connection to 192.168.1.102 has been closed." What steps are needed to make this machine show its actual ip address? All file sharing between the various machines is working properly and all windows shares back and forth between XP and 'nix, and among the the vaious XP boxes and linux boxes are available as designed.
I'm having an issue with a new install of 9.10. I've set the ip address in /etc/network/interfaces and I've also set DNS servers in /etc/resolv.conf.
The issue I am having is that no address resolves, nor can I ping outside of my LAN. I've wanted to avoid using the GUI network setup because it hasn't been saving the information correctly. Here are how the files look code...
I don't know what eth1 is; I only have 1 ethernet connection in that machine, so I'm thinking it may have something to do with that. However if the machine is using eth1 (which has no address) than it follows that I shouldn't be able to locally ssh or vnc into it, right?
I set up a static IP address yesterday, following the instructions at the top of this page and since my machine no longer connects to the internet (although all other machines are connecting fine, so I know it's a result of this change).
I am currently facing a weird problem, It's that the internet connection becomes extremely slow when using static IP instead of DHCP when Im connected through a cable! The local network seems okay with both, but differs when using the internet!
I've ran a ping test and got the following results!
using static IP
Code: $ ping -c 3 google.com PING google.com (209.85.153.104) 56(84) bytes of data. 64 bytes from 209.85.153.104: icmp_seq=1 ttl=42 time=343 ms
[Code].....
When I used static IP i received only one packet while when using DHCP i received all three!! Also I lost 66% of the packets when using the Static IP connection! And most importantly, the speed, DHCP connection was 8 times faster than Static IP connection!
currently running ubuntu 9.10, the internet connection im hooking up to is a router from a friends personal dish internet (were all deployed to Afghanistan). Here is all the static information that i need to input.now i have all this information input in windows 7 and it works fine since its all broken out exactly how it was given to me in the ipv4 settings page. wicd in ubuntu however wont use these settings.
I don't know where to put this, or even what I'm looking for.
I've tried for 6 hours today to get my WPA2 wireless to work as a static IP on my laptop to no avail.
Basically I put things in correctly (at least according to that thread) but I get no interent. When I restart I get the correct IP address but no internet pages will load.
The network monitor I have on my panel shows that it is trying to send and receive information, but I can not get my pages to load.
I'm desperately in need of help, but I really don't know how to even ask for it correctly.
But to start here is my interfaces file (one config of about 15 I've tried).
So i have a d-link modem and the DHCP server is not running. I need to access the internal config to do some troubleshooting. IP is supposed to be 192.168.1.1, but I only have my DSL ppoe IP, and can not access it.
i have a problem with connecting to AP with static IP. i have set the IP, netmask, and gateway manually thru network manager but still no luck. the status is connected but i cant even open a webpage. ifconfig command output not showing the IP address i entered.
I recently used this process to connect my Samba network to be able to access and allow Windows XP machines to access my computer on my office network.
For various reasons, all the XP computers on the network are set to fixed (do we say static?) IP addresses with manual DNS. Hence I realised during the Samba setup that I had to set a static IP on my Ubuntu machine similar to my Windows static IP's (ie 192.168.10.?) in order to be able to see the Windows share PC's properly.
Once I set my Ubuntu machine to static IP of 192.168.10.3 with subnet of 255.255.255.0 and gateway of 192.168.0.1 then I was able to access and be accessed by PC's on the network. However I couldn't access the internet after this. I input the DNS server in the edit connections as you can see per the attachment. All these settings (except the IP address obviously) were all now exactly the same as the PC machines, and I thought I'd now be able to access the windows network, as well as have access to the internet, however, even though my wired network is connected there is still no internet access.
I'm using the GUI under network connections to make all these changes if that is important. I can't understand why this doesn't work?
I assigned a static ip to my Ubuntu Server machine and it cannot access the web now. It can access anything on the LAN. The other two nodes on the network (one wifi one hardwired) can both access the web just fine.
I have a Dell PowerEdge 1650 server with 3 NICs in it. I am trying to use one NIC (eth0) to connect to the internet, the second NIC (eth1) to share the internet connection to a LAN, and the third NIC (eth2) to connect to the LAN.
It is running Ubuntu server 8.10
The problem that I'm having is that NetworkManager (version 0.7.0) keeps setting eth2 as the default connection, and then I don't get any internet at all from the server.
My main goal is to be able to share files from the server to computers on the LAN. The secondary goal is to have a virtual machine hosting a Halo server, connected through eth2, so that it can host LAN games. But that is a secondary goal after I get the connections to work.
I've been looking around and finding other people who have done bits and pieces of this, but not the whole thing. I had been hoping to simply use the NetworkManger, but I don't mind editing config files.
Also I can't seem to find any good instructions on editing the /etc/network/interfaces file. The man file is incomplete, and everything seems to point back to the man file.
I am a windows user with no linux experience prior to Friday. Im setting up a music server (SqueezeCenter) running Fedora 10.
With the help of posts of this site Ive made good progress with complicated stuffnamely getting Samba and VNC working. My Fedora machine and my windows machines now see each others shared files, and I can control my Fedora machine from my windows machine. (The Fedora machine will ultimately be headless.)
But Im having trouble with a seemingly simple issue setting up my Fedora box with a static IP address. With DHCP enabled on my network Ethernet adapter, all works fine. I then used the System>Administration>Network menu to disable DHCP and to assign the same IP address that DHCP chose. When I do this, two cases need to be distinguished:
1. If I keep the box checked for Controlled by Network Manager, the Network Manager Applet reports a network connection, I nevertheless cannot access the internet, but my Fedora machine is able to communicate with my Squeezebox music player (connected to my network via my DSL modem Ethernet connections, and with a fixed IP address). 2. If I uncheck the box Controlled by Network Manger, then the Network Manager Applet reports no network connection and my Fedora machine is not able to communicate with my Squeezebox music player (and I of course have no internet connectivity).
Ive seen references on other posts suggesting that the Network Manager service be disabled. But I see no way to manually configure the network.
I can access internet when my eth0 is set toDHCP client. But when I set static I can ping goole.com... but my Firefox browser doesn't connect to Interent!
I have a fedora 14 box which has a static IP and I can not contact the internet or even my gateway router.I know it has to do with my kernal IP routing table but I can not find the command to do what I need...Here is my kernal IP routing table
Our F14 server is looses access to the network once we set a static IP.The same IP, if used on any other pc works fine.We had the same exact setup in our F10 server also.
I managed to configure my W890i phone to get access to internet through an ubuntu-based computer. It's very easy to use the phone to give internet access to the computer, but the opposite is quite more tricky. For that I've done the following
----On the phone---
-Set the USB network option to "through computer", so that the phone uses the computer's internet connection and not the opposite.
-Decide and set "Shared Network" parameters: user, pasword and workgroup.
-In "conectivity-> internet connection" set "allow local network" to "yes"
----On Ubuntu 10.04---
-Install samba, samba-client, smbfs, smbclient, firestarter and dhcp3-server
-Configure Samba (System-> Administration-> Shared folders): same workgroup as in the phone, add new user (the phone), passwd this new user. In my case the user was called "w890i" and the password given was the same.
-Once the phone is connected to the computer through USB (then select "phone mode"), a new connection appears in NetworkManager: usb0.The aim is to create a shared network that gives internet access to this device. Edit the IPv4 parameters of this new connection, set them to Manual and give an IP adress (192.168.0.1) and a subnet mask (255.255.255.0); the rest of the fields are left empty.Connect this network.
-Set firestarter to use dhcp3: sudo ln -sf /etc/init.d/dhcp3-server /etc/init.d/dhcpd
-Launch firestarter and follow the wizard. Set "allow internet shared connection", choose the device for the primary internet access, and then the device for the shared network (usb0). Then change the settings for firestarter: activate DHCP for local network, set IP to the one we gave before (192.168.0.1).
-Open dhcp3-server config file sudo gedit /etc/default/dhcp3-server And set INTERFACES="usb0"
-Set the policies of firestarter: in incoming connections, allow connections from the IP adress given to the phone (192.168.0.1). Then add rules for the ports that need to be open for this connection. I opened HTTP, HTTPS, SMB, SMTP, POP3, IMAP, IMAPS, DHCP for all the connections in the local network.
-Apply policies and start the firewall.
------------
After all this, the phone can access the internet through the computer. Two problems appeared:
1. I couldn't get access to https sites, like webmails. The phone gave a "communication error". But then I tried with Opera instead of the browser built in the phone's firmware, and I could finally get to https sites.
2. I couldn't retrieve mail, neither POP nor IMAP nor IMAPS. I thought it was a firmware problem again, and I tried out several mobile phone email clients written in java, but none of them worked.
So this is at the moment the problem. If I connect from the phone to the internet directly through 3G, the email clients work for all my accounts. I don't think it's a firewall problem, because the ports are opened for this connection
I connected my laptop running with Ubuntu 11 in the LAN but I couldn't access internet.But I could ping to the other computers connected in the LAN. I tried the same thing with windows 7 in the same laptop and I could access internet.
My local network contain four computers and they have dynamic Internet connection. i want to access one of my local network computer using ip address or name when i am at my office or any other place. so how can i do this sort of thing. I not care about security issues. My network all computer have Ubuntu 10.04 and their ip range is 192.168.1.2 to 192.168.1.6. Note :- My machine have glass-fish server that what i want to access(using 8080 port) remotely.
I have dynamic internet connection. In my network one machine run glassfish server in port 8080 (it IP address 192.168.1.3). If I type http://192.168.1.3:8080/ that load my glassfish server page. What I want is using dynamic IP like http://<DynamicIP>:8080/ load my glassfish server page. How can I do it ? My router is Dlink GLB-802C > I haven't good knowledge about network.
I have recently upgraded to 10.04 and I am trying to access my apache and sshd servers from the net but I have not succeed so far when those two are using their regular ports.If I change their ports to something greater than 1024 they work fine.80->8010 22->4567(I can access the servers when I am connecting from local net: 192.168.1.0/24) Is this restriction build into the new kernel? Is there something I can do to fix this without recompiling the kernel?
I Have Ubuntu 9.10 Server installed and for some reason after updating our server with the ubuntu update manager, we can no longer connect to the network via remote desktop, let alone not even able to ping. We are actually able to connect to the internet itself just fine so I dont understand why this isn't working
does somebody know how dnsmasq / iptables need to be configured such that requests to my public IP from lan are correctly NAT'ed to the host that handles them? Currently my routing device treats them like "oh, these are anyway for me, gnam gnam" which actually doesn't work.Unfortunatly setting up NAT rules that redirect requests from my lan correctly as they are redirected from wan is an option I would like to use only if there is no other possibility.I would like some kind of solution that treats packets that are sent to my public IP as normal packets that are not looped back before they even get out. So they would need to be at least sent to the wan gateway where they are directed back where my firewall can successfully treat them like all other public requests.
Up until yesterday I was able to access these devices through the web interfaces that they use. I'm running Ubuntu Karmic 9.10 I have 3 PCs running on my network, and 2 NAS devices: Ubuntu (main computer, also has an XP partition)) - static IP 192.168.1.30 Ubuntu netbook - DHCP IP Windows XP (HTPC) - static 192.168.1.50 Linksys NSLU2 (was running Debian, problem arose when trying different configuration, now back to stock firmware) - static IP 192.168.1.100 Dlink DSM-G600 - static IP 192.168.1.120
I used to be able to able access these just fine using my main Ubuntu setup. Now, it will no longer display the pages. Internet access is fine, i can even access my DSL/Router device's internal config page. The netbook and the Windows HTPC can both log into these devices, as well as the XP partition of the Ubuntu system. I have tried using a VM of XP within Ubuntu, bridging the network device, i have the same symptoms - internet is fine, cannot access local network web-logins.
Access to fileshares among all machines remains unchanged. another odd behavior is that i can SSH into the NSLU2 device from all the machines, but i get odd things from this computer - it will let me log in, asks for a username and pass, but if i run anything like mc or htop, it just blanks the terminal in an odd way. from other computers the login and display are fine.
I am using Fedora 11 all upgrades, wireless network WUSB54G network adapter. I can get to the internet but cannot get to any Windows (192.168.1.100) or Fedora 11 (...104) computers, printer (....101, 105). Here are the tests I have run.
[root@Fedora2 sbin]# ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.76 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=268 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=1.63 ms ^C --- 192.168.1.1 ping statistics ---
I'm trying to setup an Apache webserver on my computer in order to practice HTML5/CSS3 for an upcoming competition I'm in. I'm able to access my site from inside my network, but I cannot outside my network. I've had several people try, and they all report that the server just times out. I'm running Ubuntu 10.04 and Apache 2.2.17