Re: route: network is unreachable

2009-02-28 Thread Sergey Khentov
It is dhclient, definitely. I've configured rl1 to use static IP, removed new task from root's crontab, and, at least for this time (about 3 hours) the route stays on his place. Thanks everyone for your help! PS Vadim, I'll be glad to test new dhclient-script. 2009/2/28 Sergey Khentov

route: network is unreachable

2009-02-27 Thread Sergey Khentov
Hello misc@, I have a OpenBSD-based router. Its configuration: rl0 is connected to internal network in my flat rl1 is connected to home network (several flats) - some local servers are located in that network rl2 is connected with ADSL-modem - Internet access ath0 is wifi - wireless AP in my

Re: route: network is unreachable

2009-02-27 Thread Vadim Zhukov
On 27 February 2009 c. 21:33:14 Sergey Khentov wrote: Hello misc@, I have a OpenBSD-based router. Its configuration: rl0 is connected to internal network in my flat rl1 is connected to home network (several flats) - some local servers are located in that network rl2 is connected with

Re: route: network is unreachable

2009-02-27 Thread Sergey Khentov
# cat /etc/hostname.pppoe0 inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev rl2 \ authproto pap authname szt authkey szt up !/sbin/route add default 0.0.0.1 Looks like you messed up ifconfig(8) and hostname.if(5) syntax. You need something like: inet 0.0.0.0 255.255.255.255 NONE

Re: route: network is unreachable

2009-02-27 Thread Sergey Khentov
Oops, it seems that the problem with disappearings of default route was not fixed. 30 minutes I was away from my PC - and route has disappeared. dmesg says nothing. Any ideas? # cat /etc/hostname.pppoe0 inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev rl2 \ authproto pap authname szt

Re: route: network is unreachable

2009-02-27 Thread Sergey Khentov
I've made a simple cron task */4 * * * * (route show -inet | grep ^default /dev/null) || route add default 78.36.32.1 I think it is not very good solution, but it'll work (at least for some time). Maybe someone knows a better was? 2009/2/27 Sergey Khentov

Re: route: network is unreachable

2009-02-27 Thread Vadim Zhukov
On 27 February 2009 c. 22:15:35 Sergey Khentov wrote: # cat /etc/hostname.pppoe0 inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev rl2 \ authproto pap authname szt authkey szt up !/sbin/route add default 0.0.0.1 Looks like you messed up ifconfig(8) and hostname.if(5) syntax. You

Re: route: network is unreachable

2009-02-27 Thread Vadim Zhukov
On 27 February 2009 c. 22:48:29 Sergey Khentov wrote: Oops, it seems that the problem with disappearings of default route was not fixed. 30 minutes I was away from my PC - and route has disappeared. dmesg says nothing. Any ideas? 1) What daemons do you run? Show your /etc/rc.local script.

Re: route: network is unreachable

2009-02-27 Thread Sergey Khentov
1) What daemons do you run? Show your /etc/rc.local script. Also, did you modify your root's crontab? If yes, please show it too. No local daemons. Almost no changes to root's crontab. # cat /etc/rc.local # $OpenBSD: rc.local,v 1.39 2006/07/28 20:19:46 sturm Exp $ # Site-specific

Re: route: network is unreachable

2009-02-27 Thread Claudio Jeker
On Fri, Feb 27, 2009 at 10:48:29PM +0300, Sergey Khentov wrote: Oops, it seems that the problem with disappearings of default route was not fixed. 30 minutes I was away from my PC - and route has disappeared. dmesg says nothing. Any ideas? Are you running dhclient on some interface?

Re: route: network is unreachable

2009-02-27 Thread Stuart Henderson
On 2009-02-27, Sergey Khentov sergey.khen...@gmail.com wrote: # cat /etc/hostname.rl1 dhcp NONE NONE NONE # cat /etc/hostname.pppoe0 inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev rl2 \ authproto pap authname szt authkey szt up !/sbin/route add default 0.0.0.1 the DHCP client on rl1