RDK Resources
RDK Preferred
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
EthWAN | Docsis |
---|---|
GwProvApp-EthWan is used for EthWan configuration | GwProvApp is used for Docsis configuration |
Default CR device profile used is cr-ethwandeviceprofile.xml | There is a dependency on CM agent. |
parodus2ccsp, xsmart ,ccsp LM lite and webpa are not having dependencies on CM agent | DML is used to verify in which MODE the box is currently operating |
WEBPA & Reverse SSH is working over WAN MAC assigned to ifconfig erouter0 interface | The Device is using CM MAC as defined in hardware system |
XB6 Ethernet Port 1 must not be available for LAN side connections | Ethernet Port 1 must be usable for LAN side client connectivity |
The Cable Modem is not active and there is no active CM IP address | Cable Modem is active and there is active CM IP Address |
DM | Description |
---|---|
Device.Ethernet.X_RDKCENTRALCOM_WAN.Enabled | The DML is used to ON/OFF the EthWan Feature. The default value is OFF. |
Device.Ethernet.X_RDKCENTRALCOM_WAN.Port | The DML provides the port number that is configured if the feature is ENABLED with Device.Ethernet.X_RDKCENTRAL-COM_WAN.Enabled |
Device.DeviceInfo.X_RDKCENTRALCOM_EthernetWAN.CurrentOperationalMode | The DML is used to verify in which MODE the box is currently operating |
dmcli eRT setv Device.Ethernet.X_RDKCENTRAL-COM_WAN.Enabled bool True dmcli eRT setv Device.Ethernet.X_RDKCENTRAL-COM_WAN.Port uint 0
To support manual configuration via local GUI (user side) to change configuration to Ethernet WAN or DOCSIS WAN.
Gateway> Connection > WAN Network
Ccsp EthAgent Dmcli Code flow
GW Prov Ethwan Code flow
Commands to get EthWAN info from hal
Command | Description |
---|---|
hal_test ethwan enableEthwan | To enable EthWan |
hal_test ethwan disableEthwan | To disable EthWan |
hal_test ethwan GetEthWanInterfaceName | To get the EthWan Interface name |
hal_test ethwan getEthWanEnabled | To get the EthWan status (enabled or disabled) |
hal_test ethwan getEthWanPort | To know which port is enabled for EthWan feature |
https://wiki.rdkcentral.com/courses/playcourse.action?course=90113230&capsule=3
9 Comments
Z-Mohamed Habib Mallek
Hello,
I try the command:
Narayanaswamy Ramaiyer
Hi Z-Mohamed Habib Mallek
On which platform are you trying out this command? What is the output of 'getv' for the same command ?
Z-Mohamed Habib Mallek
Hi Narayanaswamy Ramaiyer
About the platform:
1/ Output of uname -a: Linux RaspberryPi-Gateway 4.14.68 #1 SMP Fri Dec 25 CET 2020 arm7l GNU/Linux.
2/ Output of cat /etc/os-release:
ID=rdk
NAME=RDK (A Yocto Project based Distro)
VERSION=2.0 (morty)
VERSION_ID=2.0
PRETTY_NAME=RDK (A Yocto Project based Distro) 2.0 (morty)
the output of 'getv' for the same command:
Device.Ethernet.X_RDKCENTRAL-COM_WAN.Enabled
type: bool, value: false
Thanks Ramaiyer
Narayanaswamy Ramaiyer
Hi Z-Mohamed Habib Mallek
Thanks for the update. We see the getv value is 'False' for you . Could you please share us the output of below command too?
syscfg get eth_wan_enabled
Thanks,
Swamy
Z-Mohamed Habib Mallek
Hi Narayanaswamy Ramaiyer
Output of: syscfg get eth_wan_enabled is empty.
Output of : ps | grep 'ethwan' is:
227 root 6:26 /usr/ccsp/gw_prov_ethwan
Thanks.
sipra samantray
Hi Z-Mohamed Habib Mallek ,
EthWan in RDKB is a protected feature, could you try to enable the flag "ENABLE_ETH_WAN" for rpi ( using CFLGAS_append ) and then check please.
Thank you.
Mihir Sevak
HI sipra samantray,
even after adding ENABLE_ETH_WAN in CFLAGS in ./meta-cmf-raspberrypi/meta-rdk-broadband/recipes-ccsp/ccsp/ccsp-gwprovapp-ethwan.bbappend file and ./meta-rdk-broadband/recipes-ccsp/ccsp/ccsp-gwprovapp-ethwan.bb file I am not able to enable ETH_WAN on my raspberrypi. I am getting same error as invalid value. Can you please advise what should be correct procedure to resolve this??? By the way for me syscft get is returning true so does that mean value is set to true in configuration???
Moreover, I am under impression that by enabling this feature and changing values of WAN_PROTO and ip address etc in syscfg.db file I will be able to assign static IP addess on my WAN interface (erouter0). If I am wrong please advise.
Here is output:
root@RaspberryPi-Gateway:~# syscfg get eth_wan_enabled
true
root@RaspberryPi-Gateway:~# dmcli eRT setv Device.Ethernet.X_RDKCENTRAL-COM_WAN.Enabled bool True
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
setv from/to component(eRT.com.cisco.spvtg.ccsp.ethagent): Device.Ethernet.X_RDKCENTRAL-COM_WAN.Enabled
Execution fail(error code:CCSP_ERR_INVALID_PARAMETER_VALUE(9007)).
root@RaspberryPi-Gateway:~#
Thanks.
Have a great day.
sipra samantray
Hi Mihir Sevak
Which CMF release code you are using for Rpi ? For Rpi there is only one profile which is FIXED_MODE and it is Ethwan mode.
By default the Rpi will come up with ethwan mode now. You don't have to set anything, those tr181 not required to set to ethwan mode.
Thank you.
Mihir Sevak
Hi sipra samantray ,
thanks for response. I used
repo init -u https://code.rdkcentral.com/r/rdkcmf/manifests -m rdkb-extsrc.xml -b rdkb-2022q2-dunfell
to download and build image for Raspberry Pi. I also think EthWan is enabled because in syscfg.db it is true. My objective is to assign a static IP address on the WAN port. In syscfg.db there are fields like wan_proto and wan_ipaddr etc. Can you please advise what do you mean by FIXED_MODE and if that will allow me to assign a fixed IP on WAN side?? Also how do I accomplish that? What values or modules I should turn on in order to do this?Thanks.