Issue with USB storage and VLAN??? v44467 and 44340

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Author Message
bryanh99
DD-WRT Novice


Joined: 30 Aug 2018
Posts: 6

PostPosted: Sat Sep 26, 2020 19:01    Post subject: Issue with USB storage and VLAN??? v44467 and 44340 Reply with quote
I made a post for version 44340 about vlans not working, not being about to get IP's or access the internet. I upgraded to 44467 and determined a repeatable (and therefore bug) with both these versions.

I have a r7800 (actually 2 - same problem on both). Here are some up front details that I hope will reduce questions:
1) I always "nvram clear && nvram commit && reboot" both before and after firmware upgrades
2) I do the same between each test so that I can have accurate results
3) I NEVER use a backup of setting and only do all the settings by hand.

The short versions is this:
1) One router
2) Three subnets (one for port 1 and 2, one for port 3 and 4 and one for the VAP on each of the wireless set to a new bridge (br1)
3) Each of the second subnet and the VAP bridge have their own DHCP server running.

At that point - EVERYTHING works perfectly - three separate networks and all working as expected.

Now after a LOT of trial and error I have found that if I enable the "USB" service with "USB storage support" and "Automatic Drive Mount" and then reboot
1) I can completely access the USB stick I have attached
2) The subnet setup for the VLAN no longer functions - no client gets an IP as all.
3) Simply disabling USB support returns the router to working as expected.


Additional details
The VLan is created in Startup script as follows:

swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "3 4 6"
swconfig dev switch0 vlan 3 set ports "1 2 6t"
swconfig dev switch0 set apply
vconfig add eth1 3
ifconfig eth1.3 192.168.125.1 netmask 255.255.255.0


Firewall script
iptables -t nat -I POSTROUTING -o `get_wanface` -j MASQUERADE


And again - everything works as expected until USB is enabled and then works again when USB is disabled
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6123
Location: Romerike, Norway

PostPosted: Sat Sep 26, 2020 19:36    Post subject: Reply with quote
Is the drive mounted as jffs?

Can it contain configuration files that messes up dnsmasq?
bryanh99
DD-WRT Novice


Joined: 30 Aug 2018
Posts: 6

PostPosted: Sun Sep 27, 2020 15:36    Post subject: Reply with quote
Per Yngve Berg wrote:
Is the drive mounted as jffs?

Can it contain configuration files that messes up dnsmasq?


It is not mounted jffs.
It contains 4 shell scripts (*.sh) that I used to call via cron.

The cron jobs are not set so nothing on the stick is called at all. It's just mounted as /tmp/mnt/sda

But just to be sure I enabled USB again and deleted everything (the 4 shell scripts) from the stick and then rebooted and again the eth1.3 VLAN no longing "works" (the devices do not show up on the Status->Lan page and they are unreachable. Disable USB and all is working again
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 1644
Location: Canada

PostPosted: Sun Sep 27, 2020 19:36    Post subject: Re: Issue with USB storage and VLAN??? v44467 and 44340 Reply with quote
bryanh99 wrote:
1) I always "nvram clear && nvram commit && reboot" both before and after firmware upgrades


YIKES!!

Never used "nvram clear" don't know if it does anything. Doing "nvram commit" saves current ram settings to nvram which is no good for after erasing nvram.

Proper clearing of nvram is via CLI with SSH or Telnet is:

nvram erase && reboot

I'm using VLANs & USB Storage (NAS is Diabled, don't use it) without issues on every build I've tested, currently on r44467

_________________
Home Network on Telus PureFibre - 10GbE Copper Backbone
2x R7800 - Gateway & WiFi & 3xWireGuard - DDWRT r46885 Std
R7000 - Wired ISP 4K IPTV Gateway - DDWRT r46885 Std

Off Site 1

R7000 - Gateway & WiFi & WireGuard - DDWRT r46885 Std
E3000 - Client Bridge - DDWRT r46885 Mega K4.4

Off Site 2

R7000 - Gateway & WiFi - DDWRT r44483 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531


YAMon 3.4.6 | DNSCrypt-Proxy V2
bryanh99
DD-WRT Novice


Joined: 30 Aug 2018
Posts: 6

PostPosted: Sat Oct 03, 2020 4:34    Post subject: Re: Issue with USB storage and VLAN??? v44467 and 44340 Reply with quote
mac913 wrote:


YIKES!!

Never used "nvram clear" don't know if it does anything. Doing "nvram commit" saves current ram settings to nvram which is no good for after erasing nvram.

Proper clearing of nvram is via CLI with SSH or Telnet is:

nvram erase && reboot

I'm using VLANs & USB Storage (NAS is Diabled, don't use it) without issues on every build I've tested, currently on r44467


Ok, I am pretty sure that clear and erase do the same, BUT, just to test I did it your way and can again repeat this problem.

Additionally I have tested this on both my R7800, so it's not my hardware.

Other than that problem r44467 is working great, I have just given up using my USB stick on the unit.
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 2860

PostPosted: Sat Oct 03, 2020 5:23    Post subject: Reply with quote
Which brand & model USB stick is this? New build is out by the way, r44483, and so far it's all nice and sparkly.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 7692
Location: Netherlands

PostPosted: Sat Oct 03, 2020 9:54    Post subject: Reply with quote
If you think you have found a bug (although it is difficult to imagine what USB has to do with VLAN's, I have seen stranger things so it could well be a bug) file a bug report.

Forum guidelines will tell you how and where Smile

_________________
Routers:Netgear R7800, R6400v1, R6400v2, Linksys EA8500, EA6900 (XvortexCFE), E2000 (converted WRT320N), WRT54GS v1.
WireGuard Documents & Guides:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327397
OpenVPN Documents & Guides: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327398
IPSET: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327261
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6123
Location: Romerike, Norway

PostPosted: Sat Oct 03, 2020 10:43    Post subject: Reply with quote
If the USB stick is USB3, it may emit frequencies that will interfere with 2.4 Ghz wifi.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum