[OpenWrt Wiki] OpenWrt as router device (2024)

See also:OpenWrt as client device,Router vs switch vs gateway and NAT

If your device has some ports labeled LAN and at least a port labeled WAN and you want it to operate as a router (a connection between two different networks).Depending on actual hardware support, it may be possible to create a WAN port on a device with only LAN ports, see your device's page for more info about this.The default IP of the LAN ports of a OpenWrt device is 192.168.1.1, if the addresses of the devices in the network you connect to the WAN port are 192.168.1.X (X=any number), you need to change the IP address of the LAN interface on your OpenWrt router to 192.168.2.1 (or to something that isn't 192.168.1.X, anyway), or change the addressing of the other network you are connecting to.The LAN and WAN interfaces MUST have at least different subnets for routing to work.

This means:

Web interface instructions

  1. Click on NetworkInterfaces, then click on the Edit button of the LAN Network.

  2. In General Setup tab, in IPv4 address type in the desired static IP address for the LAN interface of your OpenWrt Router, if your main router's address is 192.168.1.1 (most common), set the IP address of your OpenWrt router LAN interface to 192.168.2.1 (or to something that isn't 192.168.1.X, anyway). Once you have chosen and written the IP address, write it down in the same sticker with the user/password above, it will be used to connect to your device in the future.

  3. By default the WAN interface/port is set as DHCP client, this will allow it to work with networks where there is another router giving addresses without further configuration. If you need to set static address please see the instructions for Client device, and change the WAN interface settings accordingly.

Command-line instructions

Configure the LAN interface statically with the new IP address 192.168.2.1.

uci set network.lan.ipaddr="192.168.2.1"uci commit networkservice network restart

Note that changing the IP address causes the SSH session to hang/disconnect.

Follow OpenWrt as client device to configure the WAN interface if necessary.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies

[OpenWrt Wiki] OpenWrt as router device (2024)
Top Articles
39+ Hobby Farm Income Ideas
5 Sneaky Ways To Save Money On Your Electric Bill
neither of the twins was arrested,传说中的800句记7000词
Section 4Rs Dodger Stadium
Swimgs Yuzzle Wuzzle Yups Wits Sadie Plant Tune 3 Tabs Winnie The Pooh Halloween Bob The Builder Christmas Autumns Cow Dog Pig Tim Cook’s Birthday Buff Work It Out Wombats Pineview Playtime Chronicles Day Of The Dead The Alpha Baa Baa Twinkle
Asist Liberty
What Are Romance Scams and How to Avoid Them
Week 2 Defense (DEF) Streamers, Starters & Rankings: 2024 Fantasy Tiers, Rankings
Get train & bus departures - Android
Milk And Mocha GIFs | GIFDB.com
What Happened To Maxwell Laughlin
Craigslist Blackshear Ga
Bcbs Prefix List Phone Numbers
Mzinchaleft
Florida History: Jacksonville's role in the silent film industry
Craigslistjaxfl
Keck Healthstream
Cta Bus Tracker 77
Missed Connections Inland Empire
The Ultimate Guide to Extras Casting: Everything You Need to Know - MyCastingFile
Manuela Qm Only
Bj타리
Carroway Funeral Home Obituaries Lufkin
Is Henry Dicarlo Leaving Ktla
Marlene2995 Pagina Azul
Riverstock Apartments Photos
Healthy Kaiserpermanente Org Sign On
Shoe Station Store Locator
Myaci Benefits Albertsons
Isablove
Craigslist Texas Killeen
Shiftwizard Login Johnston
2487872771
Gabrielle Enright Weight Loss
Hair Love Salon Bradley Beach
Devin Mansen Obituary
Back to the Future Part III | Rotten Tomatoes
Weapons Storehouse Nyt Crossword
That1Iggirl Mega
Myanswers Com Abc Resources
Taylor University Baseball Roster
Colorado Parks And Wildlife Reissue List
Citizens Bank Park - Clio
844 386 9815
Kjccc Sports
60 Days From August 16
Zits Comic Arcamax
Wild Fork Foods Login
Strawberry Lake Nd Cabins For Sale
Compete My Workforce
Bones And All Showtimes Near Emagine Canton
Morgan State University Receives $20.9 Million NIH/NIMHD Grant to Expand Groundbreaking Research on Urban Health Disparities
Latest Posts
Article information

Author: Rueben Jacobs

Last Updated:

Views: 6088

Rating: 4.7 / 5 (77 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Rueben Jacobs

Birthday: 1999-03-14

Address: 951 Caterina Walk, Schambergerside, CA 67667-0896

Phone: +6881806848632

Job: Internal Education Planner

Hobby: Candle making, Cabaret, Poi, Gambling, Rock climbing, Wood carving, Computer programming

Introduction: My name is Rueben Jacobs, I am a cooperative, beautiful, kind, comfortable, glamorous, open, magnificent person who loves writing and wants to share my knowledge and understanding with you.