Line 3: |
Line 3: |
| | fw_version = {{{fw_version}}} | | | fw_version = {{{fw_version}}} |
| }}<br> | | }}<br> |
− |
| |
| This article provides a guide on how to configure the LAN ports as WAN. It can be usefull as wired ISP redundant connection or even to change the port for physical damage or a custom mounting. | | This article provides a guide on how to configure the LAN ports as WAN. It can be usefull as wired ISP redundant connection or even to change the port for physical damage or a custom mounting. |
− |
| |
| ==Configuration overview and prerequisites== | | ==Configuration overview and prerequisites== |
− |
| |
| Before we begin, let's overview the configuration that we are attempting to achieve and the prerequisites that make it possible. | | Before we begin, let's overview the configuration that we are attempting to achieve and the prerequisites that make it possible. |
− |
| |
| '''Prerequisites''': | | '''Prerequisites''': |
| * One RUTxxx series router (excluding [[RUT850]]). | | * One RUTxxx series router (excluding [[RUT850]]). |
Line 16: |
Line 12: |
| <br> | | <br> |
| '''Configuration scheme:''' | | '''Configuration scheme:''' |
− | | + | [[File:{{{image}}}|border|class=tlt-border]] |
− | [[File:Schem31.jpg|border|class=tlt-border]] | |
− | | |
| ==WebUI Router configuration== | | ==WebUI Router configuration== |
| Connect to the router’s WebUI navigate to '''Network -> VLAN -> LAN Network''' and create a new interface by entering name and clicking '''Add New'''.<br> | | Connect to the router’s WebUI navigate to '''Network -> VLAN -> LAN Network''' and create a new interface by entering name and clicking '''Add New'''.<br> |
Line 24: |
Line 18: |
| After you clicked '''Add New''' new configuration window will pop-up, there you leave as default and press '''Save.''' | | After you clicked '''Add New''' new configuration window will pop-up, there you leave as default and press '''Save.''' |
| [[File:LANASWAN02.jpg|border|class=tlt-border|600px]] | | [[File:LANASWAN02.jpg|border|class=tlt-border|600px]] |
− |
| |
| After saving settings, you will be redirected back to '''Network -> VLAN -> VLAN Networks''', now you need to open VLAN Network tab in the same window and you will need to: | | After saving settings, you will be redirected back to '''Network -> VLAN -> VLAN Networks''', now you need to open VLAN Network tab in the same window and you will need to: |
| <ul> | | <ul> |
Line 40: |
Line 33: |
| [[File:LANASWAN003.jpg|border|class=tlt-border|600px]] | | [[File:LANASWAN003.jpg|border|class=tlt-border|600px]] |
| </ul> | | </ul> |
− |
| |
| ===Using DCHP=== | | ===Using DCHP=== |
| Leave the settings as default and click '''save'''<br> | | Leave the settings as default and click '''save'''<br> |
Line 46: |
Line 38: |
| ===Using a Static IP=== | | ===Using a Static IP=== |
| <li style="color: red;">'''Note: Just if you want to use a Static IP, see the instructions below.'''</li> | | <li style="color: red;">'''Note: Just if you want to use a Static IP, see the instructions below.'''</li> |
− |
| |
| '''Static IP need to be set as router’s WAN IP.''' | | '''Static IP need to be set as router’s WAN IP.''' |
| Static IP should be in the same subnet as gateway’s LAN interface.<br> | | Static IP should be in the same subnet as gateway’s LAN interface.<br> |
| For example: if gateway’s LAN subnet is 192.168.10.1, then router’s WAN IP could be for example '''192.168.10.125'''</div> | | For example: if gateway’s LAN subnet is 192.168.10.1, then router’s WAN IP could be for example '''192.168.10.125'''</div> |
| [[File:LANASWAN04.jpg|border|class=tlt-border]] | | [[File:LANASWAN04.jpg|border|class=tlt-border]] |
− |
| |
− |
| |
| ==CLI/SSH Router configuration== | | ==CLI/SSH Router configuration== |
| For the next part you will be configuring router via SSH. For this you need to use the command line interface (CLI) or a SSH software if you’re using Windows or iOS. In this example software '''putty''' will be used. Open '''putty''' enter routers LAN IP address and press '''Open'''.<br> | | For the next part you will be configuring router via SSH. For this you need to use the command line interface (CLI) or a SSH software if you’re using Windows or iOS. In this example software '''putty''' will be used. Open '''putty''' enter routers LAN IP address and press '''Open'''.<br> |
| [[File:LANASWAN005.jpg|border|class=tlt-border|400px]] | | [[File:LANASWAN005.jpg|border|class=tlt-border|400px]] |
− |
| |
| After clicking '''Open''' you will need to enter router credentials. | | After clicking '''Open''' you will need to enter router credentials. |
| <li>Login as: '''root'''</li> | | <li>Login as: '''root'''</li> |
| <li>Password: routers admin password (by default admin01)</li> | | <li>Password: routers admin password (by default admin01)</li> |
− | [[File:LANASWAN06.jpg|border|class=tlt-border|400px]] | + | [[File:LANASWAN06.jpg|thumb]]<br> |
− | <br> | |
− | | |
| Now when you are connected you will need to make changes to network settings, this will be | | Now when you are connected you will need to make changes to network settings, this will be |
| achieved via SSH command: '''vi''', which allows you to edit settings in the router. Enter following | | achieved via SSH command: '''vi''', which allows you to edit settings in the router. Enter following |
| command in SSH: | | command in SSH: |
− |
| |
| <li>'''vi /etc/config/network''' press latter '''i''' to be able to edit.</li> | | <li>'''vi /etc/config/network''' press latter '''i''' to be able to edit.</li> |
| ===Using DHCP=== | | ===Using DHCP=== |
Line 74: |
Line 59: |
| <li>3. '''option backup '1''''</li> | | <li>3. '''option backup '1''''</li> |
| <li>4. '''option metric '10''''</li> | | <li>4. '''option metric '10''''</li> |
− | [[File:Lanaswan010.jpg|border|class=tlt-border]] | + | [[File:Lanaswan010.jpg|border|class=tlt-border]]<br> |
− | <br> | |
| ===Using Static IP=== | | ===Using Static IP=== |
| Using arrows navigate and find '''config interface 'lan_wan'''' and add two options: | | Using arrows navigate and find '''config interface 'lan_wan'''' and add two options: |
Line 82: |
Line 66: |
| <li>3. '''option backup '1''''</li> | | <li>3. '''option backup '1''''</li> |
| <li>4. '''option metric '10''''</li> | | <li>4. '''option metric '10''''</li> |
− | [[File:LANASWAN006.jpg|border|class=tlt-border]] | + | [[File:LANASWAN006.jpg|border|class=tlt-border]]<br> |
− | <br> | |
− | | |
− | | |
| Press '''Esc''' and write ''':wq'''. | | Press '''Esc''' and write ''':wq'''. |
| After that you will need to restart network service on the router, for this use command: | | After that you will need to restart network service on the router, for this use command: |
| <li>'''/etc/init.d/network restart'''</li><br> | | <li>'''/etc/init.d/network restart'''</li><br> |
− | [[File:LANASWAN007.jpg|border|class=tlt-border]] | + | [[File:LANASWAN007.jpg|border|class=tlt-border]]<br> |
− | <br> | |
− | | |
| After restart is completed go back to routers WebUI and navigate to '''Network -> Firewall -> General Settings'''. | | After restart is completed go back to routers WebUI and navigate to '''Network -> Firewall -> General Settings'''. |
− |
| |
| Scroll down, in '''Zone Forwarding''' find source zone '''lan_wan''' and change “Default forwarding action” from '''reject''' to '''accept''' and also check '''Masquerading''' and save settings.<br> | | Scroll down, in '''Zone Forwarding''' find source zone '''lan_wan''' and change “Default forwarding action” from '''reject''' to '''accept''' and also check '''Masquerading''' and save settings.<br> |
− | [[File:008-2.jpg|border|class=tlt-border|800px]] | + | [[File:008-2.jpg|border|class=tlt-border|800px]]<br> |
− | <br> | |
− | | |
| ==Testing the configuration== | | ==Testing the configuration== |
| If you did the steps in the right way, your end device should have internet connection according the scheme.<br> | | If you did the steps in the right way, your end device should have internet connection according the scheme.<br> |
| Go to '''Network --> WAN''' and check if the new LAN_WAN is enable and if it has an assigned IP<br> | | Go to '''Network --> WAN''' and check if the new LAN_WAN is enable and if it has an assigned IP<br> |
| [[File:WAN.jpg|border|class=tlt-border|800px]] | | [[File:WAN.jpg|border|class=tlt-border|800px]] |
− |
| |
| [[Category:{{{name}}} Configuration Examples]] | | [[Category:{{{name}}} Configuration Examples]] |