Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

1. Scope of the work

                       To disable router mode and enable brigdemode in BPIR4 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.

2. Target Audience  

  • RDK-B Operators
  • RDK-B SoC Vendors
  • RDK-B OEM's
  • RDK-B Application Vendors
  • RDK-B System Integrators 

3. 

...

High level Code Flow Design

...

 

...

         Image Removed

    

1

...

During boot-up

Gliffy Diagram
macroIdccc84db4-b55c-4a04-ae75-7656c6ac283b
displayNameCode flow for Bridge mode during bootup.
nameFlow-diagram
pagePin4
             

4. Supported device  

  • Raspberry Pi4 32 bit
  • Raspberry Pi4 64 bit

5. Build Instructions

...

  • Bananapi R4 Device.

6. TR-181 Data Model Parameter of Bridge Mode





 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.


7. Test Procedure

7.1. 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

7.2. 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.

Image Removed

...

Once the BPI is in bridge-mode, below test cases are needs to be passed,

  • brlan0 will lose IP address
  • A new bridge is created lan0(interface link llan0) which will have 10.0.0.1 ip address
  • Private WiFi should stops broadcasting
  • Ethernet (lan) clients should get Public IP address(i,e in erouter ip series)
  • Verify whether the admin UI page is accessible by using 10.0.0.1 ip in ethernet client device 
  • Changing from bridgemode to router mode and verify basic functionalities are working fine like Private WiFi should be broadcasted, able to get ip & internet access for wifi and lan clients and admin UI also accessible in connected clients. 

8.

...

BPI  Test Results

8.1. Router → Bridge-Static 

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

          Image Added

   

...

    

     

...

   2. A new bridge is created

...

net0(interface link

...

lnet0) which will have 10.0.0.1 ip address

Image Added         

...

   

...

         

...

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

           

...

Image Added

     

...

         

...

 4. brlan0 shouldn't have  IP address

           

...

Image Added

8.2. Bridge-Static → Router

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

         

...

Image Added

       2.

...

net0 and

...

lnet0 interfaces should be deleted

...

        Image Removed

...

.

...

       

...

Image Added

             

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

          Image Removed

        5.Admin UI should be accessible via connected clients.

           Image Removed

        6.brlan0 should have IP address

       

...

  

Tested Image details,

...

Image Added

9. References

9.1. Ticket details

...

Image RemovedREFPLTB-2901 - Bridge-Mode functionality is not working properly after manual reboot Resolved

Image RemovedREFPLTB-2843 - RPI4 Kirkstone sanity in Bridge Mode - Failing Resolved

...

Jira
serverJIRA
serverId11deff04-0380-3a3d-a916-0849d4e573f7
keyRDKBACCL-313
 

Jira
serverJIRA
serverId11deff04-0380-3a3d-a916-0849d4e573f7
keyRDKBACCL-512

https://code.rdkcentral.com/r

...

/c/rdkb/components/opensource/ccsp/Utopia/+/111599

https://github.com/rdkcentral/meta-cmf-bananapi/pull/68