OpenWrt Forum Archive

Topic: RC6 Problems

The content of this topic has been archived on 24 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I decided to upgrade to RC6 since the packages repository no longer worked for RC5. I don't know if this was intentional but I had RC5 and tried to install qos-scripts and the package didn't work because it was the RC6 one.

I had these problems with RC6:

- The bin distribution no longer includes pppoe. There's now a pppoe one. This wasn't explained anywhere so when I installed bin like I did for RC5 I no longer had a pppoe connection, thus no internet. To fix this I used mtd to go back to the original linksys firmware by flashing it's .bin file. I had to press the reset button for it to actually work again so I guess it copied a firmware from a ROM and mtd didn't work?

- After I installed pppoe I had no internet DNS. I changed the /etc/resolv.conf symlink to point to /tmp/resolv.conf.auto instead of /tmp/resolv.conf and that fixed it. What's the correct solution?

The bin image should not contain ppp, that's why there are ppp variants; same firmware just with additional ppp packages. This was explained in the documentation.

As for the resolv, when you boot the symlinks will be as follows:
/etc/resolv.conf -> /tmp/resolv.conf -> /tmp/resolv.conf.auto

This is done for the benefit of dnsmasq -- as of rc6, local queries are run through dnsmasq. Dnsmasq will insert itself between /tmp/resolv.conf and /tmp/resolv.conf.auto.

mbm wrote:

The bin image should not contain ppp, that's why there are ppp variants; same firmware just with additional ppp packages. This was explained in the documentation.

What documentation? The wiki says that bin contains pppoe and that's what happens in RC5. And http://downloads.openwrt.org/whiterussian/rc6/00-README says that bin contains pppoe and says nothing about the ppp variants.

mbm wrote:

As for the resolv, when you boot the symlinks will be as follows:
/etc/resolv.conf -> /tmp/resolv.conf -> /tmp/resolv.conf.auto

This is done for the benefit of dnsmasq -- as of rc6, local queries are run through dnsmasq. Dnsmasq will insert itself between /tmp/resolv.conf and /tmp/resolv.conf.auto.

This didn't happen in my install. Both /tmp/resolv.conf and /tmp/resolv.conf.auto are regular files.

My problems with RC6 are mostly because of no "Firewall" tab in it's webif...
I miss it.

I'll try to install webif^2 now and see if it helps.

PS
I had to create the two NVRAM variables manually: dhcp_start and dhcp_count for dnsmasq to work properly...
It was not nesessary on RC5.

(Last edited by booBot on 8 Nov 2006, 16:22)

I'm still having the /tmp/resolv.conf.auto symlink problem. If I reboot /etc/resolv.conf is a symlink to /tmp/resolv.conf which is a real file with the content:

nameserver 127.0.0.1
search lan

instead of a symlink to /tmp/resolv.conf.auto. Seems like something is overwriting /tmp/resolv.conf on every boot. I've solved this by changing /etc/resolv.conf to point to /tmp/resolv.conf.auto directly.

It's not a bug. If dnsmasq is running, /tmp/resolv.conf will not be a symlink...

booBot wrote:

My problems with RC6 are mostly because of no "Firewall" tab in it's webif...
I miss it.

I'll try to install webif^2 now and see if it helps.

We still include the firewall page in webif^2

thepeople wrote:

We still include the firewall page in webif^2

Already updated - very much satisfyed now!
big_smile

ping: www.google.com: Unknown host

From console mode DNS does not work. I tried creating resolv.conf.local with wan_dns IP's and it doesn't work.
resolv.conf.auto doesn't get created.
The only way this works is if I create /etc/resolv.conf with wan_dns IP's.

/tmp/resolv.conf gets rewritten by /etc/init.d/S50dnsmasq

Jan  1 02:43:21 (none) kern.info dnsmasq[1143]: reading /tmp/resolv.conf.auto
Jan  1 02:43:21 (none) kern.warn dnsmasq[1143]: ignoring nameserver 127.0.0.1 - local interface

(Last edited by VeNoM on 13 Nov 2006, 12:23)

Hi,

had the same problem like pedrocr, after installation of the default .bin there was no pppoe. I had to explicitly install the pppoe binary. If you look at http://wiki.openwrt.org/OpenWrtDocs/Installing the definition of the different types of bins is a little bit confusing, because the default bin does NOT contain pppoe-

MM

pedrocr wrote:

I'm still having the /tmp/resolv.conf.auto symlink problem. If I reboot /etc/resolv.conf is a symlink to /tmp/resolv.conf which is a real file with the content:

nameserver 127.0.0.1
search lan

instead of a symlink to /tmp/resolv.conf.auto. Seems like something is overwriting /tmp/resolv.conf on every boot. I've solved this by changing /etc/resolv.conf to point to /tmp/resolv.conf.auto directly.

===========================

This is a change in RC6 so the local resolver will take advantage of dnsmasq.  The problem is you copied an old dnsmasq config from non-rc6. 

You need to add the line:
resolv-file=/tmp/resolv.conf.auto

in your /etc/dnsmasq.conf

booBot wrote:
thepeople wrote:

We still include the firewall page in webif^2

Already updated - very much satisfyed now!
big_smile

I can't find the firewall page anywhere in the RC6 gui.  I have all the webif packages installed.  Is it on a different page than RC5?

One major difference I am noticing between RC5 and RC6 is that dhcp leases last for less than 1 minute.  I have uncommented this line in dnsmasq.conf:
dhcp-range=192.168.1.100,192.168.1.110,255.255.255.0,12h

but it has no affect.

What other setting am I missing?  I have looked all over google.  Are others seeing this issue and if so is there a known fix?

Thanks.

I have a problem with mounting samba share from NAS.
Please, look at this:

root@OpenWrt:/mnt# mount.cifs //192.168.61.43/PUBLIC /mnt/public -o guest
mount error 20 = Not a directory
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

smbclient works well.

Note to the resolv.conf problem:

Some statements (al least the line resolv-file=/tmp/resolv.conf.auto) in /etc/dnsmasq.conf seem to be ignored if dnsmasq is started with command line options like it is done in /etc/init.d/S50dnsmasq.

For me it works to make a new /etc/init.d/S50dnsmasq script with only one line of content:

dnsmasq

After reboot there are symlinks /etc/resolv.conf -> /tmp/resolv.conf -> /tmp/resolv.conf.auto and in /tmp/resolv.conf.auto there are the right lines from the dhcp offer the wan iface got from the ISP. DNS lookups work fine now.

(Last edited by weiszespferd on 5 Jan 2007, 14:21)

cejot wrote:

I have a problem with mounting samba share from NAS.
Please, look at this:

root@OpenWrt:/mnt# mount.cifs //192.168.61.43/PUBLIC /mnt/public -o guest
mount error 20 = Not a directory
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

smbclient works well.

You have to turnoff linux extensions before you mount (after every reboot):
echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled

That one liner will fix your cifs problem.  See here:
http://www.dd-wrt.com/phpBB2/viewtopic. … 2848#92848

http://www.dd-wrt.com/phpBB2/viewtopic. … p;start=60

The discussion might have continued from here.