Hey! I'm trying to use my OpenWRT router instead of my router provided from my ISP.
This should be possible as per this post.
Here is my /etc/config/network
IP address output.
Logs after a /etc/init.d/network restart
I can't ping google from the ssh shell. Any help would be appreciated.
frollic
January 26, 2024, 11:02am
3
which port do you actually use for wan ?
wan or usb_lan ?
usb_lan doesn't exist, hw wise, and wan is in the wrong firewall zone - should be wan, not lan.
3 Likes
mk24
January 26, 2024, 1:27pm
4
There appears to be no physical link carrier on wan. Confirm that with ip link show
. Is OpenWrt's wan a direct fiber interface or Ethernet to an ONT?
Change IP to router to 192.168.2.1
Change l'IP de ton routeur en 192.168.2.1
sorry my translate is bad
i has seen in more to box fai then general fai use 19.168.1.1
as long as there's no IP on the wan port (which isn't assigned to the wan zone anyway), there's no reason to change the subnet.
1 Like
I'm using the wan port on the router, I just deleted the usb_lan. How does this look?
https://imgur.com/a/dCcHRgQ
edit: I changed to wan -> lan to reject, reject, reject
root@OpenWrt:~# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP qlen 1000
link/ether e8:9f:80:d7:3a:cd brd ff:ff:ff:ff:ff:ff
3: lan1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether e8:9f:80:d7:3a:cd brd ff:ff:ff:ff:ff:ff
4: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
link/ether e8:9f:80:d7:3a:cd brd ff:ff:ff:ff:ff:ff
5: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
link/ether e8:9f:80:d7:3a:cd brd ff:ff:ff:ff:ff:ff
6: lan4@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
link/ether e8:9f:80:d7:3a:cd brd ff:ff:ff:ff:ff:ff
7: wan@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN qlen 1000
link/ether a0:b5:49:b3:e5:b0 brd ff:ff:ff:ff:ff:ff
10: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether e8:9f:80:d7:3a:cd brd ff:ff:ff:ff:ff:ff
11: wl0-ap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether e8:9f:80:d7:3a:ce brd ff:ff:ff:ff:ff:ff
12: wl1-ap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether e8:9f:80:d7:3a:cf brd ff:ff:ff:ff:ff:ff
mk24
January 29, 2024, 8:05pm
11
The port is "UP" meaning it is ready to connect, but there is "NO-CARRIER" meaning that the normal "idle" signal has not been detected on the Ethernet cable from the device at the other end. This is a hardware connection issue.
Test the WAN port with some other device, if it is able to go from "NO-CARRIER" to "LOWER_UP" (despite the name, that is a good thing), there must be a problem with your ONT or Ethernet cable.