Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2820 - ath79 19.07.x always creates an interface with 192.168.1.1. #7618

Open
openwrt-bot opened this issue Feb 7, 2020 · 8 comments
Open
Labels
flyspray release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release

Comments

@openwrt-bot
Copy link

gerardr1:

Hi!

I have a TP-Link Archer-C7-V2 device. I installed via tftp the factory.bin file for 19.07.1, and changed the br-lan IP address to 192.168.0.1. After installing some packages and rebooting, the lan side switch interface was given the address 192.168.1.1, despite the WAN interface getting 192.168.1.11 from an upstream router via DHCP. This does not happen with ar71xx 19.07.1. I've remained on the ar71xx version.

I've attached the output from several show interface config commands for both ath79 and ar71xx. Since I rsync the entire router filesystem to my Linux system, I've also included a recursive diff of the 'rom' directories for both ath79 and ar71xx if that helps. In the diff output, for smaller size and better clarity, I removed the diff output for '.control' files in opkg/info that only differed in kernel dependency and/or installed size.

@openwrt-bot
Copy link
Author

adrianschmutzler:

I suspect you have upgraded to ath79 without resetting your config?

@openwrt-bot
Copy link
Author

gerardr1:

Actually, it was a clean TFTP factory.bin install for both ath79 first and ar71xx afterward.

@openwrt-bot
Copy link
Author

adrianschmutzler:

For some reason eth1.1 keeps the old network on ath79 though br-lan looks correct:
eth1.1 Link encap:Ethernet HWaddr xx:xx:1F:73:4C:7A
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0

Can you provide /etc/config/network for both?

@openwrt-bot
Copy link
Author

gerardr1:

OK, attached, thanks.

Note, too, that it takes at least one reboot after the TFTP install for the issue to show up (primarily for changing the br-lan address). When first installed, br-lan is the default 192.168.1.1, and eth1.1 is as expected. The change to eth1.1 happens when I set br-lan to 192.168.0.1 or to 192.168.2.1 (I haven't tried any others). Since after that reboot the WAN interface is also in the 192.168.1.x range, the routing gets confused.

@openwrt-bot
Copy link
Author

adrianschmutzler:

Okay, /etc/config/network reveals nothing exceptional. I'm out of ideas for now.

@openwrt-bot
Copy link
Author

bjonglez:

Can you provide the output of the following commands while eth1.1 has the unexpected address?

ifstatus lan
ifstatus wan
dmesg
logread

Do you have anything in /etc/rc.local, or did you install any package?

@openwrt-bot
Copy link
Author

gerardr1:

For ath79, since I'm running the ar71xx version right now, the only IP info is in the files I attached to the initial post. I do not have any saved log output. I'll see if I can get some time to re-install the ath79 factory.bin, but it might be a few days.

Nothing was added to /etc/rc.local. The packages that I installed are:

diffutils, findutils-find, findutils-xargs, grep, libncurses6, libopenssl1.1, libpcap1, libpcre, libpopt0, openssh-client, openssh-client-utils, openssh-keygen, rsync, tcpdump, terminfo, vim, zlib

@openwrt-bot
Copy link
Author

gerardr1:

Spent some time on this today. I can definitively say that it is related to the installation of the grep package and its required libpcre package. This must somehow change the results of some tests in the basic setup scripts of the network. I no longer know whether this should remain in the bug list, or move to 'packages'.

You should hopefully be able to duplicate this error, now, by installing those two packages, and setting the lan interface to a different subnet than the default '1'. However, at the same time the workaround is to avoid installing the grep and libpcre packages.

I'll be remaining on the ath79 version, then, since I figure I could live without the full grep.

@aparcar aparcar added the release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release
Projects
None yet
Development

No branches or pull requests

2 participants