Scope of the work

                       To disable router mode and enable brigdemode in RPI Router . It means, by default device will be in router mode. Once changed to bridge mode , Private WIFI will stop its broadcasting, Ethernet Client should get public IP address (in erouter series)  and Wireless client will lose its connection to private WIFI.

Target Audience  

 High level Code Flow Design

After boot-up

         


During boot-up

             

Supported device  

Build Instructions

TargetYocto versionBuild instruction
RPI4 32bitDunfell RPI 4B Model Reference Platform
RPI4 32bitKirkstonekirkstone RDK-B RPI4 32 bit
RPI4 64bitDunfellRPI 4B Model Reference Platform with 64bit Arch
RPI4 64bitKirkstoneKirkstone RDK-B RPI4 64 bit (Both User Space & Kernel Space)

TR-181 Data Model Parameter of Bridge Mode

ModuleTR-181 DM ParameterInputOutput
 CcspPandMDevice.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanModebridge-staticTo disable router mode functionalities and enable bridge mode functionalities in RPI Router. It means ,Private WIFI will stop its broadcasting, Ethernet Client should get public IP address (in erouter series)  and Wireless client will lose its connection to private WIFI.
 CcspPandMDevice.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanModerouterChange from bridge mode to router mode and verify basic functionality is working fine like internet connectivity for wifi and ethernet clients and also verify admin ui page is accessible.


Test Procedure

Enabling BridgeMode via dmcli 

          To enable bridge mode run the following dmcli commands,

dmcli eRT getv Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanMode
dmcli eRT setv Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanMode string bridge-static

Enabling BridgeMode via WebUI

Follow the below steps to enable the bridge mode in UI,

1. Open the RPI Router User Interface on web browser

2. From the left-hand column, select "Gateway -> At a Glance"

3. Next to "Enable Bridge Mode", click Enable.

Once the RPI is in bridgemode , below test cases are needs to be passed,

RPI Test Results

Router → Bridge-Static 

  1. Changing the LanMode from router to bridge-static mode

         

         2. A new bridge is created lan0(interface link llan0) which will have 10.0.0.1 ip address

         

         3. Private WiFi should stops broadcasting

         

         4.Ethernet (lan) clients should get Public IP address(i,e in erouter ip series)

           

        5. Verify whether the admin UI page is accessible by using 10.0.0.1 ip in ethernet client device 

           

        6. brlan0 shouldn't have  IP address

           

Bridge-Static → Router

  1.  Changing the LanMode from bridge-static to Router Mode

         

       2. lan0 and llan0 interfaces should be deleted

       

        3.Private WiFi Should be broadcasted

         

        4. WiFi and Lan connected clients should get IP address and internet access

         

        5.Admin UI should be accessible via connected clients.

           

        6.brlan0 should have IP address

           

Tested Image details,

References

Ticket details

 

Code review links

https://code.rdkcentral.com/r/q/topic:%22RPI_BRIDGEMODE%22