https://github.com/fpopic/openwrt-router-setup
(PoC) OpenWRT quick setup for TL-WR703N
https://github.com/fpopic/openwrt-router-setup
layer7 openwrt tp-link-wr703n
Last synced: 6 days ago
JSON representation
(PoC) OpenWRT quick setup for TL-WR703N
- Host: GitHub
- URL: https://github.com/fpopic/openwrt-router-setup
- Owner: fpopic
- Created: 2018-05-11T10:30:22.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-01T21:44:37.000Z (about 6 years ago)
- Last Synced: 2025-11-23T00:03:07.273Z (4 months ago)
- Topics: layer7, openwrt, tp-link-wr703n
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# openwrt-router-setup
1. Use static IP address on your PC ethernet interface (turn off dhcp)
```bash
# stop network-manager service
sudo service network-manager stop
# use static ip on your ethernet interface (enp1s0)
sudo ifconfig enp1s0 192.168.1.2 netmask 255.255.255.0
# set default gateway
sudo route add default gw 192.168.1.1
# confirm the enp1s0 interface
ifconfig enp1s0
enp1s0 Link encap:Ethernet HWaddr 68:f7:28:09:05:21
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::b118:968e:4a9:a3ba/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:15470 (15.4 KB)
```
2. Telnet to the router
```bash
telnet 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
=== IMPORTANT ============================
Use 'passwd' to set your login password
this will disable telnet and enable SSH
------------------------------------------
BusyBox v1.19.4 (2013-07-16 19:54:34 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
ATTITUDE ADJUSTMENT (12.09[SLboat_Mod_Build_20130716], r37346)
-----------------------------------------------------
* 1/4 oz Vodka Pour all ingredients into mixing
* 1/4 oz Gin tin with ice, strain into glass.
* 1/4 oz Amaretto
* 1/4 oz Triple sec
* 1/4 oz Peach schnapps
* 1/4 oz Sour mix
* 1 splash Cranberry juice
-----------------------------------------------------
root@(none):/#
```
```bash
# mount file system in write mode
root@(none):/ mount_root
# revert all files to their original state
root@(none):/ firstboot
# set password to enable ssh
root@(none):/ passwd
# enable LuCi via browser
root@(none):/ /etc/init.d/uhttpd enable
root@(none):/ /etc/init.d/uhttpd start
# change ip addr to 192.168.100.1
root@(none):/ vi /etc/config/network
# restart router
root@(none):/ reboot -f
```
3. Turn on dhcp on your PC
```bash
# remove static ip
sudo ip addr flush enp1s0
# use dhcp client
sudo service network-manager restart
```
4. If you need ssh access
```bash
# use static ip on your ethernet interface (enp1s0) with the new subnet .100.
sudo ifconfig enp1s0 192.168.100.99 netmask 255.255.255.0
# connect using ssh
ssh 192.168.100.1 -l root
```