Welcome, Guest
Username: Password: Remember me
NOTE: This is a "Community" forum. Please be mindful that community members are here to help as part of a community effort. We therefore appreciate your effort in keeping this forum a happy place!

If you have a specific issue (e.g. hardware, failure) and want help from our support team, please use our tech support portal (Support menu - > Contact Us).
Thanks a lot of your help in making a better community.
  • Page:
  • 1

TOPIC:

WI-DG - Setup Process for Wired Ethernet 2 months 1 week ago #66290

  • penguinpages
  • penguinpages's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 23
  • Thank you received: 1
Does anyone have a clear document on how to configure, or better yet, after initial setup,  SSH into Wi-DG and adjust so it is just using wired,  NOT doing DHCP (got caught by this as several of my devices were using this as bridge and it was creating issues).

Goal:
1) Disable wireless adapter (don't need another wireless device roaming around)
2) Disable DHCP on wi-dg
3) Use DHCP or Static IP on eth0 (lan wired link)   <<< Broken and reason for this posting>>> 
4) If wi-dg needs bridge leave it... and link under eth0.     if not (and I don't see any containers or such that would be using this) then disable it.

############
Below under each task is starting script / process but it is broken in some areas.

Setup Network  
Static IP LAN
root@bragi:~# cp /etc/config/network /tmp/network.orig
root@bragi:~# vi /etc/config/network

#####
config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'
config globals 'globals'
        option ula_prefix 'fdeb:3978:f36d::/48'
config interface 'lan'
        option ifname 'eth0'
        option force_link '1'
        option macaddr '9c:65:f9:38:6d:27'
        option type 'bridge'
        option proto 'static'
        option netmask '255.255.255.0'
        option ipaddr '172.16.100.21'
        option dns '8.8.8.8'
config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '0'
config route 'default'
        option interface 'lan'
        option gateway '172.16.100.1'
        option target '0.0.0.0'
        option netmask '0.0.0.0'


###

Disable Wifi 
NOTE: It places WiFI SSID and Key clear txt in file and in shell from ps -ef  !!!
###
root@bragi:~# mv  /etc/config/wireless  /tmp/

###
Disable DHCP Services
###
root@bragi:~# mv /etc/init.d/odhcpd /tmp/
###
Set Hostname (if not done in initial GUI Setup when set password)
vi /etc/config/system
###
config system
        option timezone 'UTC'
#        option hostname 'miniDSP-Wi-DG'
        option hostname 'bragi'
        option firmware_version 'v0.9.4_miniDSP'
        option loader_version 'v0.8.2'
        option linkit_firstboot '1'
###
Restart network  (or just reboot)
```
root@bragi:~# /etc/init.d/network reload
```
SSH into static IP
```
[email protected]'s password:

BusyBox v1.23.2 (2018-05-29 17:08:16 HKT) built-in shell (ash)
  _______                     ________        __
 |       |.
.
.
.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 
 CHAOS CALMER (Chaos Calmer, r49610)
 
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 
root@bragi:~# ifstatus lan
{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": false,
        "uptime": 52,
        "l3_device": "br-lan",
        "proto": "static",
        "device": "br-lan",
        "updated": [
                "addresses",
                "routes"
        ],
        "metric": 0,
        "delegation": true,
        "ipv4-address": [
                {
                        "address": "172.16.100.21",
                        "mask": 24
                }
        ],
        "ipv6-address": [
        ],
        "ipv6-prefix": [
        ],
        "ipv6-prefix-assignment": [
        ],
        "route": [
                {
                        "target": "0.0.0.0",
                        "mask": 0,
                        "nexthop": "172.16.100.1",
                        "source": "0.0.0.0\/0"
                }
        ],
        "dns-server": [
                "172.16.100.22",
                "8.8.8.8"
        ],
        "dns-search": [
        ],
        "inactive": {
                "ipv4-address": [
                ],
                "ipv6-address": [
                ],
                "route": [
                ],
                "dns-server": [
                ],
                "dns-search": [
                ]
        },
        "data": {
        }
}
root@bragi:~# reboot
root@bragi:~#

Above is not correct.  I think type bridge is bridging wifi  interface to LAN.. things get quirky and then die.  But without console its hard to debug outside direct script changes and reboot. 

Please Log in or Create an account to join the conversation.

  • Page:
  • 1