Networking :: Skip DHCP Request When Interface Is Down?
Apr 26, 2010
Google is full of users which cannot get a DHCP address So no matter what search term I use, I only see solutions which do not apply to this problem. I am running Debian Squeeze on a netbook eeePC 1001P I have a wireless interface and a wired interface defined in /etc/network/interfaces:
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
[code]....
Both interfaces WORK! When I have plugged in a cable, eth0 acquires and gets an IP, when I am in reach of the WiFi, wlan0 gets an IP address. Now when I want to use only wireless, and I have no LAN connected, this is what happens at boot:
Code:
ADDRCONF(NETDEV_UP): eth0: link is not ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
[code]....
This is fine, however it takes forever (I think 60 seconds) before DHCP decides to time out. That is awkward. This is my wife's computer and I cannot tell her to intervene manually when she is either in Wifi range or on the LAN. Why is dhclient called when it is detected that eth0 is not ready? How can I disable acquiring a DHCP address on an interface which is not ready? when a link is not ready, acquiring a DHCP address is skipped. How can I configure that? I have looked thru the ifup scripts, but nothing. Where do I see what is happening when the interface is auto eth0?
View 3 Replies
ADVERTISEMENT
Feb 14, 2010
I just had an ATT Uverse RG installed. However my Smoothwall router that previously worked fine with the ADSL SpeedStream is no longer accepting an address assignment DHCP ip address from this new gateway. (3800HGV-B)Any thoughts ideas or experience working with this hardware? ATT only supports Windows and Mac
View 2 Replies
View Related
May 18, 2009
I am running a 2 NIC system with the routing table for eth0 allows user access to the internet,etc. and eth1 routes to another private network (192.168.x.x). eth1 is configured to handle DHCP requests.When a device connected via eth1 boots, it requests an IP from the DHCP server. Using tcpdump, eth1 is receiving the request but is not offering a lease.dhcp.conf seems to be configuring the DHCP service correctly. and dhcpd is running.The host is running Red Hat Enterprise Linux (Server Edition) 5.1. Perhaps I need to modify fire-wall rules (or disable them on eth1 altogether)?
View 2 Replies
View Related
Dec 12, 2010
Running 2.6.29-gentoo-r1 on a Sun Ultrasparc 10 with a Sun Happy Meal on eth0 connected directly to my cable modem. Intermittently, with a frequency between a few hours and a few days, I lose internet connectivity. Running ifconfig eth0 indicates all is well and I have a valid IP address but I cannot even ping the cable modem's management address; pings to 127.0.0.1 and eth0's IP address do get a reply but no other address I've tried does. I can 'fix' the problem by issuing
Code:
If I check the CM logs, it appears that it has rebooted itself prior to the loss of connectivity. The strange thing is that the incoming traffic doesn't seem to be affected by this, my PSAD log is full of incoming scans even during the periods when I can't connect to the net. I suspect this is an ISP problem (they own the CM);
View 2 Replies
View Related
Mar 10, 2009
is it possible to setup a DHCP server using the loopback or a virtual interface? I installed Sun VirtualBox on my fedora system and want to try and kickstart them from within the same box on a virtual network. Is this possible and has anyone done it? I only have a single NIC in the box and it is on my public network.
View 1 Replies
View Related
Jun 25, 2010
I have configured dhcp3-server on my debian box and I'm wanting to offer dhcp on one of the vlan interfaces. The dhcp is functioning but when I test applying it to a different vlan, the original PC can still get an IP. For example: eth1 has vlan100 and vlan200. Our managed switch has the ports configured such the pc1 is on vlan100 and pc2 is on vlan2. This works fine and I can inter-route between vlans with static IPs. Our dhcp config is currently set as:
ping-check true;
ddns-update-style none;
default-lease-time 21600;
max-lease-time 86400;
INTERFACES="vlan100";
authoritative;
[code]....
View 2 Replies
View Related
May 13, 2011
Is there a way trigger a shell script after my DHCP server successfully gives out, either a specific IP address or to a specific MAC address.I have two Xbox360's in my house that both receive IP address via DHCP reservations from the Ubuntu server.I have come to accept that without having two public IP addresses getting both to have an open NAT will be very difficult. I have decided that I am OK with only one being able to have an Open NAT at a time, but I want to change the firewall rules according to which Xbox 360 turned on first. This way I can move between level in my house and play online without having to modify rules manually.
View 3 Replies
View Related
Apr 7, 2011
I am totally new to Linux and have just installed ubuntu 10.10. After configuring the network interface via dhcp I started getting these messages that come in so frequently I can't configure anything else.
[87.186415] Stack:
Why I am getting this messages and more importantly how do I get rid of them.
The installation is on a VM on Hyper-V.
View 1 Replies
View Related
Jun 10, 2011
I have proxy running. I have seen LAN machines sending packets by iftop -P -F 192.168.10./24
[Code]....
How do i set my iptables so that I can only send and recieve http,smtp,ssh,dns,dhcp request in and out of the proxy
[Code]...
View 3 Replies
View Related
May 18, 2011
I have an ARM system that has been pre-loaded with some variant of Linux. I don't know the distribution; I can only see the kernel number in dmesg.
In /etc/network/interfaces, I set eth0 to
auto eth0
iface eth0 inet dhcp
After I save and reboot (or run ifdown eth0 followed by ifup eth0), I can see that the networking system is searching for a DHCP server and actually obtains a lease on a valid IP address, but when I run ifconfig, the interface has not been assigned the address that it pulled down from DHCP. It has been assigned a 192.168.. address.
I noticed in dmesg that a variable "ip" is passed to the kernel at boot with the same address that is overriding my DHCP address. How can I disable this overriding behavior? I noticed a dynamic environment variable in u-boot called ip. I set it dhcp and saved it to nv storage, but the problem persisted. I tried to set the u-boot environment variable ipaddr to dhcp, but was informed that this wasn't a valid value for the variable.How can I get the interface to be configured through DHCP?
View 1 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
Mar 25, 2010
I am puzzled with trying to configure a linux (openSUSE) client to dhcp to eBox DHCP server. I am using dhclient to lease an IP address with dhclient eth0 -s 10.45.48.108 and get a response
openSUSE11232CL1 dhclient: DHCPDISCOVER on eth0 to 10.45.48.108 port 67 interval 4
openSUSE11232CL1 dhclient: DHCPOFFER from 10.45.48.108
openSUSE11232CL1 dhclient: DHCPREQUEST on eth0 to 10.45.48.108 port 67
openSUSE11232CL1 dhclient: send_packet: Network is unreachable
openSUSE11232CL1 dhclient: send_packet: please consult README file regarding broadcast address.
The server reports eBox141 dhcpd: DHCPDISCOVER from 00:0c:29:3e:57:a3 (openSUSE11232CL1.domain.net) via eth0
eBox141 dhcpd: DHCPOFFER on 10.45.200.2 to 00:0c:29:3e:57:a3 (openSUSE11232CL1.domain.net) via eth0
I interpret this as the server receives the request and the client accepting it but the lease does not last long and the connection breaks. what this could be and why the connection breaks? Or my undestanding is totally wrong on how it works and should work? And BTW, where is that README file that's referenced in the message I receive on the client?
View 2 Replies
View Related
Mar 8, 2010
Currently I have my eth0 interface getting a DHCP address but at times the DHCP server will not be reachable. Sooo what I would like my server to do is if it cannot find a DHCP server assign a static address to eth0. Then start the DHCP service so it can then dish out some addresses.How can I do this? Surely it is possible
View 2 Replies
View Related
Jun 25, 2010
how to redirect all client http request to https request in squid
View 1 Replies
View Related
Jul 18, 2011
I have a ppp0 entry with post-up options like this
mapping ppp0
map none photon-plus motorola
map timeout: 12
[code]...
View 8 Replies
View Related
Apr 19, 2010
Well, first off I'd like to say that I am much happier with the wireless on Ubuntu 10.04 than I was on 8.10 (the last time I tried Ubuntu). However, there is a small annoyance I'd like to fix: every time I log in, I get a prompt saying that an application (the wireless network manager) is requesting the password for such-and-such keyring. I have to enter the password before I can connect to my network. Is there a way to get around this somehow so that I don't have to enter the keyring password for this keyring (the "default" keyring) every time I log in?
View 3 Replies
View Related
Oct 9, 2010
I try use Squid as my proxy server. When I set my firefox to use my proxy server (squid), all is ok, but when I set firefox on another pc (from internet, not local network), all request returned time out turn off my router and connect PC to internet (without router), but still don't work.In iptables is all ok, I think. Where is problem? I think, It isn't problem with squid (because squid don't show error page), but I don't know how fix it
iptables:
Code:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Edit: SSH from remote pc work fine.
View 7 Replies
View Related
Feb 14, 2011
Hi
I want to send non get request for HTTP from linux server.
Please let me knwo how to do that
Thanks
Lakshmikant
View 1 Replies
View Related
Nov 9, 2010
I use slackware current, and curl and wget give the following errors:
Code:
repo@cannabis ~]$ wget -r http://users.telenet.be/reggersjans
--2010-11-09 13:48:14-- http://users.telenet.be/reggersjans
Resolving users.telenet.be (users.telenet.be)... ::ffff:74.117.221.11, 74.117.221.11
Connecting to users.telenet.be (users.telenet.be)|::ffff:74.117.221.11|:80... connected.
HTTP request sent, awaiting response... 400 Bad Request
[Code]...
View 7 Replies
View Related
Jan 10, 2011
Hi,
In squid i have blocked some sites like facebook and ......I want to know is there any way when user type in his browser like www.facebook.com instead it show something like following it automatically redirect to www.google.com
Error
The requested URL could not be retrieved
The following error was encountered:
Access Denied.
Basically I want to redirect the http request so the user should not see the page not found error but www.google.com page may open automatically.
thanks
garden
View 2 Replies
View Related
Feb 26, 2009
hi
i want to redirect the packet to proxy server. can u help me.
Present network.
MY internal network ==> switch ==> proxyserver ==> router ==> internet.
(for internet i use
to connect proxy, in web browser==> lan settings ==> proxy server ip address )
What i want is
My internal network ==> getway or firewall ==> switch ==> proxy server ==> router==> internet. ( where this getway or firewall i can configure for forward http request to proxy server.)
so that i can separate my internal network from intranet but able to access the internet.
help me out
raghu
View 2 Replies
View Related
Feb 8, 2011
Why firewalls does not allow ICMP echo request packets. Why are pings not allowed to certain systems?
View 1 Replies
View Related
Sep 14, 2010
haow can I parametrize the time of answer of a snmp request?
View 3 Replies
View Related
Feb 18, 2011
I have to retrieve a http request from a particular port using libcurl. I'm using localhost .I am done with retrieving http request using socket programming. how to start integration of libcurl in simple socket programming code.
View 1 Replies
View Related
Feb 10, 2011
For the past three days I have been trying to install a mail server on my Request Tracker server and everything that I have tried either failed or didn't work at all. I am running Ubutnu 10.10 server and I am making this request tacker as a senior project and this server is ideally going to be the Ticketing system for my school but I can't seem to figure out how to install a Mail sever?
View 2 Replies
View Related
Aug 11, 2011
i am forwarding HTTP request to a internal server, it is quiet successful but access logs donot show the ip of the external m/c. Rather it shows the ip of the machine on which i have enabled port forwarding.
View 2 Replies
View Related
Jul 31, 2010
I am using Kubuntu 10.04, but I am posting here because the Kubuntu forums seems to be user agnostic. I just couldn't get past the verificaiton process. This should be a general networking problem that Ubuntu users can answer. On my home network, I have a Windows machine whose shared folders I can access from one machine running Ubuntu 9.04. I've had to do no network configuration on Ubuntu, it just works out of the box. On Windows I do not have a password that I use to login. Ubuntu does not ask for it either.
But on Kubuntu, when I browse the network samba shares, I can see my Windows share, open it, navigate it, but every time I cd into another level in the share or click on a file (say a music file to play), the authentication window pops up asking for a user name and password. What login information should I use here? I tried my Windows user name and a blank password,
View 8 Replies
View Related
Dec 25, 2010
yesterday i update my ubuntu 10.04 lts, and began the problens. i am using 2.6.32-24-generic, in a HP DV6 2145es do we know?
syslog saidme: wpa_supplicant[1093]: Association request to the driver failed search in google i founded that the problem is possible that it is in wpa_supplicant.conf. my fiel is in : /etc/dbus-1/system.d/wpa_supplicant.conf and i think that is necesary be in /etc . it is truh? when i check my fiel, i founded this:
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
[code]....
View 7 Replies
View Related
Feb 17, 2011
There is a segmentation fault error while receiving http request side program. Following is the code:
Code:
#include<iostream>
#include <sys/types.h>
[code]...
View 1 Replies
View Related