Ubuntu Networking :: Server: Dhcp - No Static - Cannot Ping Router ?
Dec 9, 2010
Fresh install of 10.04.1 server; installs seamlessly; finds network no problem.
However, establishing static connection is driving me batty. Will not take. I've reconfigured "interfaces" file several times. My fingers are numb ifdown-ing and ifup-ing and /etc/init.d/network restart-ing.
I have two files in /etc/network ... interfaces and interfaces~ (one static and the other dhcp). I can switch them in and out of play. The dhcp works and pings out like a champ. static is dead, just dead. Cannot ping router ... nothing.
View 5 Replies
ADVERTISEMENT
Jan 31, 2010
I've only been using linux for a few days so I don't know all the tricks. I'm pretty savy configuring windows networks however.My adapter is (according to windows) a: CNet PRO200WL PCI fast ethernet adapterLinux says it is a: 21x4x DEC-tulip compatible 10/100 EthernetI do seem to be getting an ip address from the DHCP router, but I cannout ping any other ips or connect to the internet.I've tried a bunch of different options, switching things back and forth, but it still doesn't work, and honestly i don't even know what some of the options mean.
ALSO, if this helps:
paladin:~ # ifconfig eth0
Eth0 Link encap:Ethernet HWaddr 00:08:A1:03:3C:99
[code]....
View 14 Replies
View Related
Oct 22, 2010
Back in April I set up a Ubuntu DHCP server and a multiple VLAN network [URL] to migrate our various servers, workstations, etc off the 192.168.1.1 /24 network that everything was on because we where running out of address space. I built out the new network and everything worked great except our AD server would never get an IP address from the DHCP server (static reservation) and even if I set the IP statically on the AD server it couldn't ping the gateway and noone could log in. After several attempts to resolve this, including bringing in outside help, we where never able to figure out what the problem was.
Now 6 months later I have time to revisit the issue without effecting the live network. I used Acronis and imaged the AD server last Friday, cloned it on to another box with the same hardware, and put it up on the new network that's been sitting unused for the last 6 months. Today when I statically set the IP on the AD server (which is what I want) it connects and I can ping it's gateway 192.168.1.1 and all the way across vlans to a test sales agent workstation at 192.168.8.xxx on vlan 800 but only if I statically assign the agents station an IP address. When I try to get an IP address via DHCP it fails as destination unreachable. Nothing has changed in the last 6 months on the DHCP server but now it for some reason can't ping its default gateway 192.168.1.1. All of the config files are the same as they where left from the post linked above aside from the vlan id's used where changed from 1's to 100's (i.e. vlan 3 is now vlan 300) /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
auto vlan100
iface vlan100 inet static
[code]....
why it can't reach the gateway, when I do a tcpdump I can see the DHCP requests come in on eth0 but the server never responds and I'm pretty sure its because it isn't "seeing" them since it thinks there isn't a network connection but I don't know how to trouble shoot to find out where the problem lies.
View 6 Replies
View Related
Jul 1, 2010
Back in April I set up a Ubuntu DHCP server and a multiple VLAN network [URL] to migrate our various servers, workstations, etc off the 192.168.1.1 /24 network that everything was on because we where running out of address space. I built out the new network and everything worked great except our AD server would never get an IP address from the DHCP server (static reservation) and even if I set the IP statically on the AD server it couldn't ping the gateway and noone could log in. After several attempts to resolve this, including bringing in outside help, we where never able to figure out what the problem was.
Now 6 months later I have time to revisit the issue without effecting the live network. I used Acronis and imaged the AD server last Friday, cloned it on to another box with the same hardware, and put it up on the new network that's been sitting unused for the last 6 months. Today when I statically set the IP on the AD server (which is what I want) it connects and I can ping it's gateway 192.168.1.1 and all the way across vlans to a test sales agent workstation at 192.168.8.xxx on vlan 800 but only if I statically assign the agents station an IP address.
When I try to get an IP address via DHCP it fails as destination unreachable. Nothing has changed in the last 6 months on the DHCP server but now it for some reason can't ping its default gateway 192.168.1.1. All of the config files are the same as they where left from the post linked above aside from the vlan id's used where changed from 1's to 100's (i.e. vlan 3 is now vlan 300) /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
auto vlan100
[code]....
why it can't reach the gateway, when I do a tcpdump I can see the DHCP requests come in on eth0 but the server never responds and I'm pretty sure its because it isn't "seeing" them since it thinks there isn't a network connection but I don't know how to trouble shoot to find out where the problem lies.
View 2 Replies
View Related
Jul 6, 2010
My ISP provides my internet via DHCP. I have a home wireless router to provide internet access, wired for my desktop machine and wireless for my laptop. My question is: Is it possible to configure the router (the Access Point) to provide internet to the desktop and the laptop via static IP? Currently I have managed to configure the internet to them via DHCP and it works. I am just curious to know whether it is possible to provide the internet for them by static IPs, given that the internet that actually goes into the Access Point (the wireless home router), is DHCP.I fiddled with this a lot yesterday, but I only managed to get a working configuraton by DHCP for both the desktop and the laptop. If I supply them with static IPs, I can only ping the Access Point, but not beyond it. So does it at all make any sense to try to configure them by static IPs, i.e. is that virtually possible?
View 10 Replies
View Related
Jan 10, 2011
I am trying to get a Slackware server up and running. I got a static IP working kinda. The computer gets a response when I ping the router but not the internet. Basically it can communicate with other computers on the network but nothing outside of the network. Its not a problem with the router because I have a couple other computer with static IPs. Also the network card works fine as it can get on the internet fine normally.
[Code]....
View 9 Replies
View Related
Aug 17, 2010
I have 2 Ethernet connections, one (eth0) for the internet which gets set with dhcp, and one (eth1) for my internal network on which I have dhcp3-server running. I set eth1 to use static IP in interfaces, but every time I reset the network, it is fine for a couple of minutes, and switches over do being served by my own dhcp server on the same machine. (the interfaces file clearly says "iface eth1 inet static")
View 7 Replies
View Related
Sep 1, 2011
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.
View 1 Replies
View Related
Nov 10, 2010
I have an Ubuntu Server 10.04.1 that I have given a static IP address. Every six hours or so I will lose connectivity to it and when I type ifconfig to look at the network information, it has been given an address via dhcp. If I run the /etc/init.d/networking restart command the IP address goes back to my static address and things are fine for another 6 hours or so. Here is what is in my interfaces file:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.60.82.15
netmask 255.255.0.0
broadcast 10.60.255.255
gateway 10.60.254.254
This machine is also a DHCP server and I checked to make sure there are no other DHCP servers on my network. Right now my fix is to have a Cron job running that runs the reset command every 5 hours, but I would like to find a more permanent solution.
View 8 Replies
View Related
May 7, 2010
I have installed Centos 5 on a virtual machine (esx4i). I set it to obtain an IP address from the DHCP sever, which is a broadband router, it has been given an IP address of 10.10.11.159 the router is 10.10.11.1 but I can't ping the router and I can't get any access to the network! I have a SCO Openserver server on the same physical box and it works fine so I know the network card & cable is ok.
View 9 Replies
View Related
Jan 2, 2011
I'm setting up a home network and trying to set up a Ubuntu Server (10.04) as a samba file server and a web server.I installed Ubuntu 10.04 Server and the automatic network configuration during installation failed. I've looked into host.conf, networks, interfaces, hosts and resolv.conf and either my settings are wrong or it's something else. I have a Win7 computer connected to same router and DSL modem and it works fine (edit: most of the time--- see below).
More information:
*ifconfig shows eth0 is broadcasting but without an IP address
*route shows an empty routing table
Code:
sudo route add default gw 192.168.1.254 doesn't work:
SIOCADDRT: No such process
[code]
sudo /etc/init.d/networking restart doesn't work:
[code].....
View 3 Replies
View Related
Feb 16, 2011
I'm having mysterious wired network problem with my Karmic/9.10 machine. It hasn't been in network a while, but now I finally got the cabling done. I can't get the IP from dhcp server (TW-EA510), and static settings doesn't work either. Fresh cabling showed OK 1Gb connection on tester, and win7 laptop works fine. I even tried with long cable though the rooms, but it doesn't help, so it definately isn't the new cabling.
Log from the router after issuing #"dhclient":
Feb 16 23:01:43 DHCP SERVER: DHCPDISCOVER from 00:01:29:fb:c5:d1 via br0
Feb 16 23:01:43 DHCP SERVER: DHCP offer to 00:01:29:fb:c5:d1
Feb 16 23:01:49 DHCP SERVER: DHCP request from 00:1b:ea:c8:a0:ba
Feb 16 23:01:49 DHCP SERVER: DHCP ack to 00:1b:ea:c8:a0:ba
Feb 16 23:01:54 DHCP SERVER: DHCPDISCOVER from 00:01:29:fb:c5:d1 via br0
Feb 16 23:01:54 DHCP SERVER: DHCP offer to 00:01:29:fb:c5:d1
Feb 16 23:02:03 DHCP SERVER: DHCPDISCOVER from 00:01:29:fb:c5:d1 via br0
[Code]....
Motherboard is some old Lanparty with two ethernet ports, NVidia CK804 and Marvell 88E800 rev 13 Gigabit netwok adapters, neither of them works. At least another of them has been worked earlier when I last got it wired. It's been a while, so I'm not sure which one of them and with different router if that matters.
View 3 Replies
View Related
May 26, 2010
I have Mandriva One 2009.0 (192.168.1.100) on one box and Mandriva Free 2010.0 (192.168.1.118) on the other. I can ping router (192.168.1.1) from both of these boxes but I can't ping one box to the other and the other way around. What's going on?.
Do I have to change some settings in router?. Or is it firewall issue on those two machines?. Both of these boxes are connected by cable. Symbol of the router: TL-WR340G.
View 2 Replies
View Related
Aug 2, 2011
Recently, I have encountered a problem when setting my network configuration.I want to automatically get an IP address through DHCP at system startup, and this can be done by editing /etc/network/interfaces file, adding
auto eth0
iface eth0 inet dhcp
The problem is that I want to set a static DNS, but DHCP will automatically overwritten /etc/resolv.conf file.
What should I do?
View 9 Replies
View Related
May 21, 2010
basically I set the static ip address:
auto lo
iface lo inet loopback
auto seth0
iface seth0 inet static
[code]....
Restart networking:
"sudo /etc/init.d/networking restart"
Everything is fine but 24 hours later the server resets to the DHCP address assigned to it. I have not installed any GUI im just running Ubuntu 10.04 LTS in Hyper V. After it resets to DHCP I log into it using the dhcp address and reset the networking service "sudo /etc/init.d/networking restart". It goes back to the static IP specified in interfaces. I have rebooted several times but every 24 hours it resets.
BTW - Before someone asks about iface seth0 instead of it being iface eth0. It is a Hyper V module running.[URL]
Also FYI-
# ps -ef | grep dhclient
root 1234 1 0 May19 ? 00:00:00 dhclient3 -e IF_METRIC=100 -pf /var/run/dhclient.seth0.pid -lf /var/lib/dhcp3
[code]....
View 7 Replies
View Related
Jan 5, 2011
Where I work we use almost exclusively Ubuntu 8.04 in command-line only form. I need to know if it is possible to configure one of these devices to use DHCP and a given Static IP at the same time. I know how to do one, or the other, but not both. #1. Is this possible?
#2. If so, how?P.S. Yes, I did look around before I asked this, but I could not find anything. Maybe I suck at searching?
View 4 Replies
View Related
Jul 19, 2011
ps3 lan, psp wan, xp desktop lan, netbook W7 wan, fujitsu laptop ubuntu wan for surfing but often lan for large files, android 2.1 phone wan, mac sawtooth G3 (rarley) lan. near future, tablet wan, crappy ancient laptop xp lan rarely.next week i am having 6TB DS211j NAS (omg cant wait)I think, from what i have been reading, that moving to a static ip for each device will be better suited.I manage the belkin router from the ubuntu latop and wondered what the best way to proceed is, which first, what order etc etc.I can understand what needs to be done, i have the primary dns and ip numbers and mac address for every device ( the network is mac filtered)
so how would you begin...... a peice of paper and some drawings i have ready to plan it out.the reason i choose to change from dhcp to static is because of the arrival of the DS112j. from my understanding this device would benefit from never having its ip changed on the network. There have been times when the ip has changed on some of the devices in the past when the belkin has suffered a power failure or reset.
View 5 Replies
View Related
Jan 12, 2010
I have a MB with 2 NICs and on 1 I would like to have a static IP, on the other a DHCP for a local network.The problem is the DHCP provided gateway is made default vs the one for the static IP and resolv.conf is overwritten.Any suggestions how could this be resolved? I can tweak both the DHCP server settings and the box settings.
View 14 Replies
View Related
Oct 17, 2010
I set up my interfaces file just fine on one of my computers and everything works. On my desktop its a no go. This is what I've done. I set my interfaces file to look like this
Code:
# The loopback network interface
auto lo
iface lo inet loopback
[code]....
Then I uninstalled network manager (sudo apt-get remove network-manager-gnome). Now I can restart my computer, but I do NOT get a static IP of 112, instead I get the last working dhcp given address (.104). It connects and I get internet using .104.
BUT, if I run
Code:
sudo /etc/init.d/networking restart
then it DOES work. It changes to my address .112 and the internet works. But when I get that I get an error SIOCDELRT: No such process found (or something similar to that). But after it sits, it still finished with [OK] and my internet works. Clearly something is amiss though. Because it doesn't go to the static IP imediately. I even tried setting up a rcS.d link to a file with that networking restart command, but still no go. It starts with the .101 IP.
View 9 Replies
View Related
Nov 14, 2010
Does anyone know an easy way to do this? I can't seem to figure it out.
View 6 Replies
View Related
Jan 16, 2010
Can't change from dhcp to static ip address.I've installed Oracle's version of Linux Redhat 5, but I'm having no success changing from dhcp to a static IP address. My machine is plugged directly into a Belkin router which has the IP address: 192.168.2.1.If I use the gui: /usr/bin/system-config-network and set the network device to dhcp,it works fine. But if I set the IP address manually, I get no internet traffic, and if I ping an internet website, "network unreachable".The installation instructions for Oracle say that they want a full domainname. I've tried gateway.2wire.net. This worked in the last place I did a successful installation.It was the address of my ATT router. If I plunked that into a browser, I got the router configuration.
View 7 Replies
View Related
Aug 22, 2010
I want to run networking on my laptops in different environment (home, office, airport etc). I found that Netowrk Manager assigns information from DHCP although I requested fixed IP and configured the gateway and DNS. If I reconfigure the DHCP server so that there is no free IP address, the laptop refuses to connect. When I remove the interfaces from the network manager, I get the fixed IP address, /etc/resolv.conf is not overwritten from DHCP but WiFi connection cannot be established, there is no dialog for setting WPA-PSK. The static IP address seems to be taken into account only if the DHCP server is not found. I need the static address at home and in my office because I need the possibility to ssh to my laptop from another computer but I need IP from DHCP possibly authenticating against RADIUS (Eduroam) when travelling somewhere else. Is there an easy way how to achieve it and how to switch profiles easily? And I cannot switch DHCP off because some devices in my LAN cannot work without it.
View 6 Replies
View Related
Mar 21, 2009
Yes, another newbie question. Just loaded and updated FC 10. Everything works great with dhcp. Tried to setup static ip to learn more about how to set it up and nothing seems to work. I'm connected to DSL via a router when I ifconfig I get:(basic stuff)inet addr: 192.168.1.7 Bcast: 192.168.1.255 Mask: 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
I have also tried default gateway 192.168.1.255 and 192.168.1.254.Most of what I have tried above has come from linux websites and faq's.Keeping in mind I am worst than any new newbie you have ever worked with
View 13 Replies
View Related
May 28, 2009
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!
View 2 Replies
View Related
Oct 18, 2009
I'm pulling my hair out to figure out what's gone wrong. I have a small home network with a router and 4 computers, 3 linux boxes and 1 windoze machine.The windoze machine and 2 of the linux boxes (newer ones, one with FC11 and the other with Ubuntu Hardy) are using the router's "Set Static IP" option just fine. However an older FC5 machine I have always gets its IP assigned randomly. As this is the machine I ssh into from overseas via a Dynamic DNS, this is a huge frustration when the power goes off or I need to restart the machine. It's usually 192.168.0.2 but sometimes 192.168.0.3 and occasionally other numbers as well. It _should_ be 192.168.0.130. As near as I can tell, I'm doing everything the same between the machines. The router config is very simple and works for the other systems so I suspect I may have a legacy tweak that I did years ago that's causing the problem.
Anyone know what I can try? I'm afraid I'm not a networking guru (ahem, wouldn't be posting if I were!) so things like "check the this" will be more helpful if there's a clear example. "Check the this...emacs /etc/thisfile/config" and see if XYZ option is TRUE" is far more useful. Again, many thanks. If none of the systems were working right then it would be totally different...but 3 seem to work just fine and happily get their assigned static IPs. It's the one non-conformist that's the trouble...
View 1 Replies
View Related
Apr 19, 2010
I decided to take the plunge and change the existing static ip configuration for my home network to a dynamic (DHCP) configuration. The DHCP server in this new network config is my gt701-wg actiontec DSL modem.
[Code]....
View 5 Replies
View Related
May 26, 2010
I am having several boxex with centos on it. No pb. I have recently setup a new box with centos 5.4 and I am not able to get the network working on it when configuring a static ip.I've configured eth0 and dns using "setup": unsuccessfulI've used the network config GUI: unsuccessfulAnd it is working very well when I let the dhcp getting the setting.I need a static IP.Here is the getinfo output when static ip setup, and below it, the getinfo for dhcp setting
== BEGIN uname -rmi ==
2.6.18-194.3.1.el5 i686 i386
== END uname -rmi ==
[code]....
View 3 Replies
View Related
Jan 7, 2011
I had something I think if very odd happen to one of my computers at work today, it appears to have spontaneously switched from having a static address set to getting its address by dhcp.this is a small office with a mix of mostly linux servers and desktops with a few stand alone windows computers, mostly notebooks. Most of the desktop computers get their address by dhcp, they all have NIS /NFS for remote mounted home directories (interchangeable desktops so anyone can log in at any desk). The particular desktop computer in question here has a shared printer on its parallel port, so has a static IP. Yesterday a UPS in the server rack died, after pulling it and plugging things back in and restarting the servers, it was easiest just to reboot all the desktops, everything came up ok including the desktop in question, and the printer did work.
Today I pulled the oversized UPS from this desktop to replace the dead one, and put a more appropriately sized one in its place, shut the servers down again, rebooted, etc,About an hour later someone tells me the printer is not working on the desktop, and after a lot of searching I find this desktop has the wrong IP address, I ran system-config-network and it showed the address was set to dhcp, I changed this back to the correct static IP and things seem to be working ok now.
View 3 Replies
View Related
Jul 26, 2011
I am using centOS 5.0. After I change from DHCP to static IP address, I cannot ping hosts on the same subnet. The error message says destination host unreachable. Before I made the changes I was able to ping and now even I change it back to DHCP I still cannot ping with the same destination host unreachable message. The centOS is running on VMware on a Windows host.
ifconfig shows
eth0 Link encap:Ethernet HWaddr 00:0C29:A1:9A:10
inet addr: 192.168.0.202 Bcast:192.168.0.255 Mask: 255.255.255.0
inet6 addr ......
After pinging 192.168.0.106 (106 is on and other host can ping it), arp -a shows ? (192.168.0.106) at <incomplete> on eth0 I tried different ways by disabling the firewall and and disabling SE protection. No Luck.
View 13 Replies
View Related
Dec 1, 2010
I am trying to set up SSH so that I can edit files on a home server (linux). I know this question has been asked many times before, but none of the answers seem to apply to me.
Here's my setup. I have the modem connected to a switch (wired) that connects 2 PCs to the internet (one desktop, one server, both wired).
All of the threads I see that discuss static IPs seem to require that I set up a router. Is this necessary? Can I still transfer files through a switch?
View 9 Replies
View Related