[Bug 139217] Re: dhcp fails for gateway on different subnet - SIOCADDRT: Network is unreachable

2010-01-15 Thread descary
I got the same problem with Ubuntu 9.10 server, trying to connect to DHCP 
through a Proxy.
I resolve it with Rodney's work around.: editing the file /sbin/dhclient-script

for router in $new_routers; do
  route add -host $router dev $interface
  route add default dev $interface gw $router $metric_arg
done

I did not create 'gateway' file as suggest.

Thank.

-- 
dhcp fails for gateway on different subnet - SIOCADDRT: Network is unreachable
https://bugs.launchpad.net/bugs/139217
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 139217] Re: dhcp fails for gateway on different subnet - SIOCADDRT: Network is unreachable

2009-05-31 Thread Teej
Thank you raboof for updating us. I shall mark this as Fix Released as you 
stated that it works after (I assume) an update.
Aaron, I do not believe that this is the same problem, therefore you will need 
to open a new report, although if I am wrong I apologise. Feel free to reopen 
this bug if it is still an issue by changing the status back to "New".

** Changed in: dhcp3 (Ubuntu)
   Status: Confirmed => Fix Released

-- 
dhcp fails for gateway on different subnet - SIOCADDRT: Network is unreachable
https://bugs.launchpad.net/bugs/139217
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 139217] Re: dhcp fails for gateway on different subnet - SIOCADDRT: Network is unreachable

2009-05-31 Thread Teej
** Summary changed:

- dhcp fails for gateway on different subnet
+ dhcp fails for gateway on different subnet - SIOCADDRT: Network is unreachable

-- 
dhcp fails for gateway on different subnet - SIOCADDRT: Network is unreachable
https://bugs.launchpad.net/bugs/139217
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 139217] Re: dhcp fails for gateway on different subnet

2009-05-30 Thread raboof
Haven;t have any problems recently.  Thanks.

On Sat, 2009-05-30 at 16:56 +, Teej wrote:
> Thank you for taking the time to report this bug and helping to make
> Ubuntu better. You reported this bug a while ago and there hasn't been
> any activity in it recently. We were wondering if this is still an issue
> for you. Can you try with the latest Ubuntu release? Thanks in advance.
> 
> ** Changed in: dhcp3 (Ubuntu)
>Status: New => Incomplete
>

-- 
dhcp fails for gateway on different subnet
https://bugs.launchpad.net/bugs/139217
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 139217] Re: dhcp fails for gateway on different subnet

2009-05-30 Thread Aaron Kurtz
Teej, this is definitely still a problem in Jaunty, as /sbin/dhclient-
script has not changed

DHCPREQUEST of 71.130.218.22 on eth0 to 255.255.255.255 port 67
DHCPACK of 71.130.218.22 from 192.168.1.254
SIOCADDRT: No such process
bound to 71.130.218.22 -- renewal in 78774 seconds.

from /tmp/dhclient-script.debug:

Sat May 30 21:53:02 PDT 2009: entering dhclient-enter-hooks.d, dumping 
variables.
reason='REBOOT'
interface='eth0'
medium=''
alias_ip_address=''
new_ip_address='71.130.218.22'
new_subnet_mask='255.255.0.0'
new_domain_name=''
new_domain_search='hardsun.net.'
new_domain_name_servers='127.0.0.1'
new_routers='151.164.187.111'
new_static_routes=''

r...@roseroar:~# route add default dev eth0 gw 151.164.187.111
SIOCADDRT: No such process

If I remove the if,fi for

if [ "$new_subnet_mask" == "255.255.255.255" ]; then
for router in $new_routers; do
route add -host $router dev $interface
done
fi

then I can connect properly.

** Changed in: dhcp3 (Ubuntu)
   Status: Incomplete => Confirmed

-- 
dhcp fails for gateway on different subnet
https://bugs.launchpad.net/bugs/139217
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 139217] Re: dhcp fails for gateway on different subnet

2009-05-30 Thread Teej
Thank you for taking the time to report this bug and helping to make
Ubuntu better. You reported this bug a while ago and there hasn't been
any activity in it recently. We were wondering if this is still an issue
for you. Can you try with the latest Ubuntu release? Thanks in advance.

** Changed in: dhcp3 (Ubuntu)
   Status: New => Incomplete

-- 
dhcp fails for gateway on different subnet
https://bugs.launchpad.net/bugs/139217
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 139217] Re: dhcp fails for gateway on different subnet

2009-03-22 Thread Rodney Berriman
reading the first post more carefully, I see that the netmask
conditional is also the problem in the original report:

  new_subnet_mask='255.255.255.128'

therefore the host route to the gateway is not added because the netmask
is not 255.255.255.0


While waiting for this bug report to be addressed, a suggested solution is to 
add a dhclient exit-hook:

create a file "gateway" in /etc/dhcp3/dhclient-exit-hooks.d, containing
this text:

for router in $new_routers; do
  route add -host $router dev $interface
  route add default dev $interface gw $router $metric_arg
done

-- 
dhcp fails for gateway on different subnet
https://bugs.launchpad.net/bugs/139217
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 139217] Re: dhcp fails for gateway on different subnet

2009-03-22 Thread Rodney Berriman
It still doesn't seem to work on Optus ADSL (Australia), and I think the
reason is that the creation of the host route is conditional on the
netmask:

/sbin/dhclient-script:198: 
   if [ "$new_subnet_mask" == "255.255.255.255" ]; then ...

because the interface is given an IP address with subnet 255.255.255.0, and a 
gateway address that
is not in this range.

Why not just remove the conditional line?
No harm in (trying to) creating a host route to the gateway, even if it is 
redundant?

-- 
dhcp fails for gateway on different subnet
https://bugs.launchpad.net/bugs/139217
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 139217] Re: dhcp fails for gateway on different subnet

2009-02-26 Thread Paul Donohue
This bug is either invalid or has been fixed.
/sbin/dhclient-script in Intrepid does the following starting at line 194:
ifconfig $interface inet $new_ip_address $new_subnet_arg \
$new_broadcast_arg $mtu_arg

# point to point
if [ "$new_subnet_mask" == "255.255.255.255" ]; then
for router in $new_routers; do
route add -host $router dev $interface
done
fi

for router in $new_routers; do
route add default dev $interface gw $router $metric_arg
done

-- 
dhcp fails for gateway on different subnet
https://bugs.launchpad.net/bugs/139217
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 139217] Re: dhcp fails for gateway on different subnet

2008-08-28 Thread palceksmuk
Ive got the same problem but I don't know how to solve it.
Would you mind writing the commands to manually enter the gateway on a 
different subnet, because I can't get it working?

-- 
dhcp fails for gateway on different subnet
https://bugs.launchpad.net/bugs/139217
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs