I connected a laptop directly to the uplink cable, configured the static IP address. Lo and behold, the pings go through. Apparently the uplink Ethernet port on my OpenWRT router got fried.
Luckily, this router does not just have an uplink port and four lan ports, it has a programmable switch and an open firmware (OpenWRT 7.09 "Kamikaze") lets me tap into it.
I looked at /etc/config/network, and found the following lines at the top:
#### VLAN configuration
config switch eth0
option vlan0 "0 1 2 3 5*"
option vlan1 "4 5"
vlan0 is the internal lan, 0-3 are the external lan ports, and 5 is the host port. vlan1 connects the uplink port (4) to the router (5). The asterisk probably means packet tagging. As the router internally has just one physical ethernet port, the internal and external interfaces are virtuals employing the same physical interface. Their packets are distinguished by tags.
So, I changed the config thus:
#### VLAN configuration
config switch eth0
option vlan0 "0 1 2 5*"
option vlan1 "3 4 5"
I rebooted the router and plugged the blue uplink cable into the first LAN port (the numbering of the holes on the router is backwards). Tada! Here's my Internet connection again!
3 comments:
Nice!
So, you can survive two more storms then?
*Shrug* probably I should pull a shielded cable for the antenna and ground the shield.
mes kadaise 1999 metais pirkom savadarbį ethernet filtrą su įžeminimu iš justneto ;]
labai puikiai saugojo nuo žaibų, nes turėjom 120m utp kabelį lauke.
pkmk
Post a Comment