我正在尝试使用connmanctl为wifi网络设置静态IP(手动,无dhcp)地址。我在运行angstrom linux。
我得到以下信息:
连接connmanctl
connmanctl> wifi_“散列”_managed_psk --ipv4 4手册192.168.10.2 255.255.255.0 192.168.10.1错误wifi_“哈希”_managed_psk:不支持
有人知道怎么做吗?
发布于 2015-08-24 16:41:54
通过在目录中手动创建一个名为“设置”的文件,我设法获得了一个静态IP地址:
/var/lib/connman/wifi_<HASH>_managed_psk/有以下内容:
[wifi_<HASH>_managed_psk]
Name=<SSID> ←Name of the network
SSID=544f52414445585f4252 ←Name of the network in hexadecimal format
Favorite=true
IPv4.method=manual ←Method to be used (in this case manual IP)
IPv4.netmask_prefixlen=24
IPv4.local_address=192.168.0.133 ←Desired IP address
IPv4.gateway=192.168.0.1
Passphrase=<PASS> ←Wifi network password
AutoConnect=true然后激活并连接到wifi
connmanctl enable wifi
connmanctl connect wifi_<HASH>_managed_psk发布于 2016-04-16 07:13:32
与其编辑/var/lib/connman/wifi_<HASH>_managed_psk/下的设置,不如编辑配置文件/var/lib/connman/wifi_<HASH>_managed_psk/。
例如:
debian@beaglebone:/var/lib/connman$ sudo cat wifi.config
[service_home]
Type = wifi
Name = yyyyyyyyy
Security = wpa
Passphrase = xxxxxxxxxx
IPv4=192.168.1.4/255.255.255.0/192.168.1.254
IPv6=off
Nameservers=8.8.8.8,8.8.4.4有关详细信息,请参阅手册页connman-service.config。
发布于 2015-08-11 13:49:53
尝试connmanctl enable wifi,然后您应该能够配置它
https://stackoverflow.com/questions/31943490
复制相似问题