OpenWrt Forum Archive

Topic: fix for no WAN connectivity?

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

I've tried 3 different routers and all give no WAN connectivity with OpenWrt 12.09. All 3 routers are listed as being compatible with openwrt.

Can anyone help me figure out how to fix this? The default openwrt config will not get WAN connectivity. Is there ANYTHING I can try to get it working?

Router model ?

check one by one:

How do you test "wan connectivity" ?

please post

network config
ifconfig -a  (ip a list)
dmesg
ifstatus wan

do you have LAN access (console) ?

regards

3zl

What type of Internet connection do you have? Cable internet, DSL... ?

router model: netgear wndr3800
i'm testing WAN connectivity by running cat6 cable from cable modem to the "physical" WAN port (i.e., the yellow port that sits demarcated/spaced  from the other 4 ports). I then connect a cat6 UTP ethernet cable from one of the LAN ports to my computer's network adapter port. When I do this I cannot get any internet connectivity.

thx guys. will post answers as soon as I have time to install it back onto a router. got work and don't have time for few days.

let's see, wndr3800 was tried. Buddy had wndr3700v2 from netgear. buddy also had TP-Link, a wdr model, I forget which one but it was on the support list.

using Cable internet with a cable modem. And was able to get all 3 routers working fine with "default" firmware.

Yes I had LAN connectivity and could reach console fine when I had openwrt installed with a standard   cable-modem--->openwrt   setup.  That is, I had working LAN, but no working WAN. I was able to get a wifi SETUP working by using another router's WAN port. Check this out and see if it gives you any ideas:


1) netgear wndr3700 model with NETGEAR firmware installed (named NETGEAR)
2) netgear wndr3800 model with OPENWRT firmware installed (named OPENWRT)

I disconnected an "old router" from the cable modem. I then spoofed OPENWRT's MAC address to the "old router" address so my IP address would stay the same. ISP gives dynamic IP address, but IP will stay same with same MAC address. I then connected OPENWRT's WAN port (i.e., the physical port on the router) to the cable modem and rebooted router: I got zero internet and WAN connectivity. But LAN worked and I could reach console when using cat6 cable from one of the "lan" ports.

I disconnected OPENWRT router and then spoofed NETGEAR's MAC address to that of the "old router." I then connected NETGEAR's WAN port (i.e., the physical WAN port) to cable modem and rebooted router: I got working internet and WAN connectivity.  I then disabled both radios on the NETGEAR so there is no wireless possible from NETGEAR.

I returned to the OPENWRT box and created a new interface and called it "WLAN". WLAN consists of 5ghz radio bridged with eth1 (ethernet adapter).

then using one of NETGEAR's LAN ports I ran cat6 cable to OPENWRT's "physical" WAN port (i.e., the yellow port where you would normally connect the cable modem to). I then had fully operational 5GHz wifi from the OPENWRT. I could browse the internet and everything. Yet if I tried using any of the other 4 "lan" ports on OPENWRT, nothing would work. For example, if I connected a laptop to one of the 4 lan ports on OPENWRT with cat6 cable, I could not access internet nor the openwrt console. The only change I made to OPENWRT was to create the WLAN interface. Everything else is stock config.

I'll post the info you ask for as soon as I get a chance to reinstall openwrt. I have work stuff so don't have time at the moment.

Thanks SO MUCH for posting guys and offering your assistance. OpenWrt is Sweet, I hope I can use it for wired connections in the future!!



By the way, is there a way to see all the computers that are connected to an openwrt router? Netgear firmware offers an "attached" option I think it's called that lists all hostnames of connected computers. This is a neat feature and I wondered if openwrt firmware has anything comparable?

(Last edited by bmo on 2 Jun 2014, 00:02)

bmo wrote:

router model: netgear wndr3800
By the way, is there a way to see all the computers that are connected to an openwrt router? Netgear firmware offers an "attached" option I think it's called that lists all hostnames of connected computers. This is a neat feature and I wondered if openwrt firmware has anything comparable?

cat /tmp/dhcp.leases

regards
3zl

I woke up early to have time. Here's the info you asked for. THANKS!

network config:
Automatic DHCP. just your basic hookup of utp cat6 from a lan port to computer. Cable broadband with cable modem. No username/password or anything with ISP.


ifconfig -a: 
eth0      Link encap:Ethernet  HWaddr 38:42:9b:2a:fa:ca 
          inet addr:192.168.1.248  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::7686:7aff:fe6b:bfdc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2260 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2487 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:681965 (681.9 KB)  TX bytes:268363 (268.3 KB)
          Interrupt:18
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:384 errors:0 dropped:0 overruns:0 frame:0
          TX packets:384 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:29120 (29.1 KB)  TX bytes:29120 (29.1 KB)


ifstatus wan:
eth0: link beat detected
lo: link beat detected


dmesg:
How much of this do you want me to post? I redirected the command to gedit and got 11 pages of stuff. Should I post all 11 pages here?

(Last edited by bmo on 2 Jun 2014, 13:54)

here's a screenshot of what I see in the Network > Interfaces after a clean install.

http://i.imgur.com/MgMP2gM.png

The screenshot depicts a connection that has cable modem hooked up to physical WAN port on router and a cat6 utp cable connected from one lan port to computer. As can be seen there is no WAN connectivity. And although I can access the openwrt console, I cannot access the internet.

I do have correct MAC addresses listed in the Network > Interfaces. They are blank in the screenshot because I blotted them out, not because they don't show up.

I've got a new problem now. I'm trying to login to router from Terminal to run the command you gave me: cat /tmp/dhcp.leases and I can't gain access.

If I plug in a cable to openwrt lan port and use firefox to navigate to 192.168.1.1 I can login fine to luci. but if I open a Terminal and ssh 192.168.1.1 it connects but it won't accept my password. I've tried copy/paste and manually inputting it numerous times. I always get this message after failing 3 times: Permission denied (publickey,password).

Any idea what's wrong with this? I have dropbear enabled and set for "lan" with port 22 specified. The DEFAULT config except for my changing to "lan"

try:

ssh root@192.168.1.1

im not accquainted with that CPE of yours but your ifconfig-a shows only eth0 !

according to http://wiki.openwrt.org/toh/netgear/wndr3700 there is an internal switch for the lan/wan vlan-ports of eth0.

i would suggest you'd do a reset/failsafe and start configuration from scratch, telnet  to console,set passwd and reconnect via ssh.

post a "cat /etc/config/network" and "ifconfig -a" from there.

i would not mess with LUCI until the interface settings are right

mass amount of text info you might save in pastebin

edit:
verify wan & lan interface by posting
iftstatus wan
ifstaus lan


regards
3zl

(Last edited by 3zl on 2 Jun 2014, 16:26)

3zl wrote:

post a "cat /etc/network"

I guess you mean "cat /etc/config/network"

wink

tnx for pointer ...edited

regards
3zl

router with netgear firmware (that works) also shows only eth0.

here's the ifconfig -a for a working router with the Netgear firmware installed (YES, can access internet):
eth0      Link encap:Ethernet  HWaddr 38:42:9b:2a:fa:ca
          inet addr:192.168.100.21  Bcast:192.168.100.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:205 errors:0 dropped:0 overruns:0 frame:0
          TX packets:272 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:47302 (47.3 KB)  TX bytes:43639 (43.6 KB)
          Interrupt:18

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:710 errors:0 dropped:0 overruns:0 frame:0
          TX packets:710 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:56382 (56.3 KB)  TX bytes:56382 (56.3 KB)


Here's ifconfig -a with the same router but with openwrt installed (NOT working, cannot access internet):
eth0      Link encap:Ethernet  HWaddr 38:42:9b:2a:fa:ca
          inet addr:192.168.1.248  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:105 errors:0 dropped:0 overruns:0 frame:0
          TX packets:135 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:17004 (17.0 KB)  TX bytes:14969 (14.9 KB)
          Interrupt:18

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:638 errors:0 dropped:0 overruns:0 frame:0
          TX packets:638 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:49808 (49.8 KB)  TX bytes:49808 (49.8 KB)


Should I try chaning "Pysical Settings" on the WAN interface or something?

okay, I reset the firmware via the failsafe/terminal method. and I have set ssh password.

How do I spoof the MAC address via the SSH connection? You said not to use luci, so is there a way to spoof from the terminal? Once I spoof the MAC, I'll restart the router and run the commands you said.

(Last edited by bmo on 2 Jun 2014, 16:53)

to get an overview if the CPE is initialized :

after reboot please post
/etc/config/network
iftstatus wan
ifstatus lan
dmesg

dealing with wan connection afterwards

regards
3zl

(Last edited by 3zl on 2 Jun 2014, 21:16)

THANKS!

/etc/config/network:
root@OpenWrt:~# /etc/config/network
-ash: /etc/config/network: Permission denied


iftstatus wan:
{
        "up": false,
        "pending": true,
        "available": true,
        "autostart": true,
        "proto": "dhcp",
        "device": "eth1",
        "data": {
               
        }
}


ifstatus lan:
{
      "up": true,
      "pending": false,
      "available": true,
      "autostart": true,
      "uptime": 240,
      "l3_device": "br-lan",
      "proto": "static",
      "device": "br-lan",
      "metric": 0,
      "ipv4-address": [
              {
                      "address": "192.168.1.1",
                      "mask": 24
              }
      ],
      "ipv6-address": [
             
      ],
      "ipv6-prefix": [
             
      ],
      "route": [
             
      ],
      "dns-server": [
             
      ],
      "dns-search": [
             
      ],
      "inactive": {
              "ipv4-address": [
                     
              ],
              "ipv6-address": [
                     
              ],
              "route": [
             }
      ],
      "ipv6-address": [
             
      ],
      "ipv6-prefix": [
             
      ],
      "route": [
             
      ],
      "dns-server": [
             
      ],
      "dns-search": [
             
      ],
      "inactive": {
              "ipv4-address": [
                     
              ],
              "ipv6-address": [
                     
              ],
              "route": [
                     
              ],
              "dns-server": [
                     
              ],
              "dns-search": [
                     
              ]
      },
      "data": {
             
      }
}


ifconfig -a:
br-lan    Link encap:Ethernet  HWaddr 12:DD:5F:62:DC:B1 
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:286 errors:0 dropped:3 overruns:0 frame:0
          TX packets:189 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15256 (14.8 KiB)  TX bytes:17538 (17.1 KiB)

eth0      Link encap:Ethernet  HWaddr 12:DD:5F:62:DC:B1 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:291 errors:0 dropped:1 overruns:0 frame:0
          TX packets:193 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:20790 (20.3 KiB)  TX bytes:19487 (19.0 KiB)
          Interrupt:4

eth0.1    Link encap:Ethernet  HWaddr 12:DD:5F:62:DC:B1 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:289 errors:0 dropped:0 overruns:0 frame:0
          TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15394 (15.0 KiB)  TX bytes:17676 (17.2 KiB)

eth1      Link encap:Ethernet  HWaddr 10:DD:5F:62:DC:B2 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:5

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1344 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1344 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:91392 (89.2 KiB)  TX bytes:91392 (89.2 KiB)

dmesg:
[    0.000000] Linux version 3.3.8 (blogic@Debian-60-squeeze-64-minimal) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1
Sat Mar 23 16:49:30 UTC 2013
[    0.000000] MyLoader: sysp=aaaa5554, boardp=aaaa5554, parts=aaaa5554
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7161 rev 2
[    0.000000] Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, Ref:40.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00008000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00008000
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 802f1100, node_mem_map 81000000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32512 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line:  board=WNDR3700 console=ttyS0,115200 mtdparts=spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,960k(kernel),14912k(r
ootfs),64k(art)ro,15872k@0x70000(firmware) rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 126464k/131072k available (2211k kernel code, 4608k reserved, 418k data, 212k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Calibrating delay loop... 452.19 BogoMIPS (lpj=2260992)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 512
[    0.070000] NET: Registered protocol family 16
[    0.070000] gpiochip_add: registered GPIOs 0 to 15 on device: ath79
[    0.080000] MIPS: machine is NETGEAR WNDR3700/WNDR3800/WNDRMAC
[    2.680000] registering PCI controller with io_map_base unset
[    2.690000] bio: create slab <bio-0> at 0
[    2.700000] PCI host bridge to bus 0000:00
[    2.700000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ffffff]
[    2.710000] pci_bus 0000:00: root bus resource [io  0x0000]
[    2.710000] pci 0000:00:11.0: [168c:ff1d] type 0 class 0x000200
[    2.710000] pci 0000:00:11.0: fixup device configuration
[    2.720000] pci 0000:00:11.0: reg 10: [mem 0x00000000-0x0000ffff]
[    2.720000] pci 0000:00:11.0: PME# supported from D0 D3hot
[    2.720000] pci 0000:00:12.0: [168c:ff1d] type 0 class 0x000200
[    2.720000] pci 0000:00:12.0: fixup device configuration
[    2.720000] pci 0000:00:12.0: reg 10: [mem 0x00000000-0x0000ffff]
[    2.720000] pci 0000:00:12.0: PME# supported from D0 D3hot
[    2.720000] pci 0000:00:11.0: BAR 0: assigned [mem 0x10000000-0x1000ffff]
[    2.730000] pci 0000:00:12.0: BAR 0: assigned [mem 0x10010000-0x1001ffff]
[    2.730000] pci 0000:00:11.0: using irq 40 for pin 1
[    2.740000] pci 0000:00:12.0: using irq 41 for pin 1
[    2.740000] Switching to clocksource MIPS
[    2.750000] NET: Registered protocol family 2
[    2.750000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    2.750000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    2.760000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    2.760000] TCP: Hash tables configured (established 4096 bind 4096)
[    2.770000] TCP reno registered
[    2.770000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.780000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.780000] NET: Registered protocol family 1
[    2.790000] PCI: CLS 0 bytes, default 32
[    2.800000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.810000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.820000] msgmni has been set to 247
[    2.820000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[    2.830000] io scheduler noop registered
[    2.830000] io scheduler deadline registered (default)
[    2.840000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.870000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    2.870000] console [ttyS0] enabled, bootconsole disabled
[    2.890000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    2.890000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    2.900000] 6 cmdlinepart partitions found on MTD device spi0.0
[    2.900000] Creating 6 MTD partitions on "spi0.0":
[    2.910000] 0x000000000000-0x000000050000 : "u-boot"
[    2.920000] 0x000000050000-0x000000070000 : "u-boot-env"
[    2.920000] 0x000000070000-0x000000160000 : "kernel"
[    2.930000] 0x000000160000-0x000000ff0000 : "rootfs"
[    2.930000] mtd: partition "rootfs" set to be root filesystem
[    2.940000] mtd: partition "rootfs_data" created automatically, ofs=330000, len=CC0000
[    2.950000] 0x000000330000-0x000000ff0000 : "rootfs_data"
[    2.950000] 0x000000ff0000-0x000001000000 : "art"
[    2.960000] 0x000000070000-0x000000ff0000 : "firmware"
[    2.970000] Realtek RTL8366S ethernet switch driver version 0.2.2
[    2.970000] rtl8366s rtl8366s: using GPIO pins 5 (SDA) and 7 (SCK)
[    2.980000] rtl8366s rtl8366s: RTL8366 ver. 1 chip found
[    3.020000] rtl8366s: probed
[    3.020000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    3.330000] eth1: Atheros AG71xx at 0xba000000, irq 5
[    3.640000] ag71xx ag71xx.1: eth1: connected to PHY at rtl8366s:04 [uid=001cc960, driver=Generic PHY]
[    3.650000] TCP cubic registered
[    3.650000] NET: Registered protocol family 17
[    3.650000] Bridge firewalling registered
[    3.660000] 8021q: 802.1Q VLAN Support v1.8
[    3.670000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    3.670000] Freeing unused kernel memory: 212k freed
[    5.110000] ar71xx: pll_reg 0xb8050010: 0x11110000
[    5.110000] eth0: link up (1000Mbps/Full duplex)
[    5.130000] Registered led device: wndr3700:green:power
[    5.140000] Registered led device: wndr3700:orange:power
[    5.140000] Registered led device: wndr3700:green:wps
[    5.140000] Registered led device: wndr3700:orange:wps
[    5.140000] Registered led device: wndr3700:green:wan
[    8.380000] JFFS2 notice: (474) jffs2_build_xattr_subsystem: complete building xattr subsystem, 2 of xdatum (0 unchecked, 2 orphan) and 22 of
xref (0 dead, 22 orphan) found.
[    8.500000] eth0: link down
[    9.620000] Compat-drivers backport release: compat-drivers-2012-09-04-2-gddac993
[    9.630000] Backport based on wireless-testing.git master-2012-09-07
[    9.630000] compat.git: wireless-testing.git
[    9.650000] cfg80211: Calling CRDA to update world regulatory domain
[    9.660000] cfg80211: World regulatory domain updated:
[    9.660000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    9.670000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.680000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    9.690000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    9.690000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.700000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.930000] usbcore: registered new interface driver usbfs
[    9.930000] usbcore: registered new interface driver hub
[    9.940000] usbcore: registered new device driver usb
[   10.310000] PCI: Enabling device 0000:00:11.0 (0000 -> 0002)
[   10.320000] ath: EEPROM regdomain: 0x0
[   10.320000] ath: EEPROM indicates default country code should be used
[   10.320000] ath: doing EEPROM country->regdmn map search
[   10.320000] ath: country maps to regdmn code: 0x3a
[   10.320000] ath: Country alpha2 being used: US
[   10.320000] ath: Regpair used: 0x3a
[   10.320000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   10.320000] Registered led device: ath9k-phy0
[   10.330000] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=40
[   10.330000] PCI: Enabling device 0000:00:12.0 (0000 -> 0002)
[   10.340000] ath: EEPROM regdomain: 0x0
[   10.340000] ath: EEPROM indicates default country code should be used
[   10.340000] ath: doing EEPROM country->regdmn map search
[   10.340000] ath: country maps to regdmn code: 0x3a
[   10.340000] ath: Country alpha2 being used: US
[   10.340000] ath: Regpair used: 0x3a
[   10.350000] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   10.350000] Registered led device: ath9k-phy1
[   10.350000] ieee80211 phy1: Atheros AR9280 Rev:2 mem=0xb0010000, irq=41
[   10.360000] cfg80211: Calling CRDA for country: US
[   10.360000] cfg80211: Regulatory domain changed to country: US
[   10.370000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   10.380000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[   10.390000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[   10.390000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   10.400000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   10.410000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   10.420000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[   10.440000] PPP generic driver version 2.4.2
[   10.610000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.740000] NET: Registered protocol family 24
[   10.340000] ath: Country alpha2 being used: US
[   10.340000] ath: Regpair used: 0x3a
[   10.350000] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   10.350000] Registered led device: ath9k-phy1
[   10.350000] ieee80211 phy1: Atheros AR9280 Rev:2 mem=0xb0010000, irq=41
[   10.360000] cfg80211: Calling CRDA for country: US
[   10.360000] cfg80211: Regulatory domain changed to country: US
[   10.370000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   10.380000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[   10.390000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[   10.390000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   10.400000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   10.410000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   10.420000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[   10.440000] PPP generic driver version 2.4.2
[   10.610000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.740000] NET: Registered protocol family 24
[   10.750000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.760000] ehci-platform ehci-platform: Generic Platform EHCI Controller
[   10.760000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[   10.800000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[   10.820000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[   10.820000] hub 1-0:1.0: USB hub found
[   10.830000] hub 1-0:1.0: 2 ports detected
[   10.840000] nf_conntrack version 0.5.0 (1979 buckets, 7916 max)
[   10.980000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   10.990000] ohci-platform ohci-platform: Generic Platform OHCI Controller
[   11.000000] ohci-platform ohci-platform: new USB bus registered, assigned bus number 2
[   11.000000] ohci-platform ohci-platform: irq 14, io mem 0x1c000000
[   11.070000] hub 2-0:1.0: USB hub found
[   11.070000] hub 2-0:1.0: 2 ports detected
[   14.140000] ar71xx: pll_reg 0xb8050010: 0x11110000
[   14.140000] eth0: link up (1000Mbps/Full duplex)
[   14.150000] device eth0.1 entered promiscuous mode
[   14.150000] device eth0 entered promiscuous mode
[   14.160000] br-lan: port 1(eth0.1) entered forwarding state
[   14.160000] br-lan: port 1(eth0.1) entered forwarding state
[   16.160000] br-lan: port 1(eth0.1) entered forwarding state

~

bmo wrote:

/etc/config/network:
root@OpenWrt:~# /etc/config/network
-ash: /etc/config/network: Permission denied

please

"cat /etc/config/network"

(Last edited by nebbia88 on 2 Jun 2014, 17:30)

sorry!

/etc/config/network:
config interface loopback
    option ifname    lo
    option proto    static
    option ipaddr    127.0.0.1
    option netmask    255.0.0.0

config interface lan
    option ifname    eth0.1
    option type    bridge
    option proto    static
    option ipaddr    192.168.1.1
    option netmask    255.255.255.0

config interface wan
    option ifname    eth1
    option proto    dhcp

config switch
    option name    rtl8366s
    option reset    1
    option enable_vlan 1
    # Blinkrate: 0=43ms; 1=84ms; 2=120ms; 3=170ms; 4=340ms; 5=670ms
    option blinkrate    2

config switch_vlan
    option device    rtl8366s
    option vlan     1
    option ports    "0 1 2 3 5t"

config switch_port
    # Port 1 controls the GREEN configuration of LEDs for
    # the switch and the section does not correspond to a real
    # switch port.
    #
    # 0=LED off; 1=Collision/FDX; 2=Link/activity; 3=1000 Mb/s;
    # 4=100 Mb/s; 5=10 Mb/s; 6=1000 Mb/s+activity; 7=100 Mb/s+activity;
    # 8=10 Mb/s+activity; 9=10/100 Mb/s+activity; 10: Fiber;
    # 11: Fault; 12: Link/activity(tx); 13: Link/activity(rx);
    # 14: Link (master); 15: separate register
    # the switch and the section does not correspond to a real
    # switch port.
    #
    # 0=LED off; 1=Collision/FDX; 2=Link/activity; 3=1000 Mb/s;
    # 4=100 Mb/s; 5=10 Mb/s; 6=1000 Mb/s+activity; 7=100 Mb/s+activity;
    # 8=10 Mb/s+activity; 9=10/100 Mb/s+activity; 10: Fiber;
    # 11: Fault; 12: Link/activity(tx); 13: Link/activity(rx);
    # 14: Link (master); 15: separate register

    option device        rtl8366s
    option port        1
    option led        6

config switch_port
    # Port 2 controls the ORANGE configuration of LEDs for
    # the switch and the section does not correspond to a real
    # switch port.
    #
    # See the key above for switch port 1 for the meaning of the
    # 'led' setting below.
   
    option device        rtl8366s
    option port        2
    option led        9

config switch_port
    # Port 5 controls the configuration of the WAN LED and the
    # section does not correspond to a real switch port.
    #
    # To toggle the use of green or orange LEDs for the WAN port,
    # see the LED setting for wndr3700:green:wan in /etc/config/system.
    #
    # See the key above for switch port 1 for the meaning of the
    # 'led' setting below.

    option device        rtl8366s
    option port        5
    option led        2

~

3zl wrote:

to get an overview if the CPE is initialized :

after reboot please post
/etc/config/network
iftstatus wan
ifstatus lan
dmesg

dealing with wan connection afterwards

regards
3zl

Is the CPE initialized?

bmo wrote:

How do I spoof the MAC address via the SSH connection? You said not to use luci, so is there a way to spoof from the terminal? Once I spoof the MAC, I'll restart the router and run the commands you said.

http://wiki.openwrt.org/doc/uci/network


dmesg and network seems to be right, nothing sticks out.

I will have a closer look later.

btw: check the wan status change if you plug it to you cable router and check for traffic (ifconfig wan)

regards
3zl

3zl, can I enter Luci or should I stay with SSH?

If no luci, how do I spoof MAC address from SSH access? this way I can test wan status without having to reset my IP address.

Thanks!

The discussion might have continued from here.