请问 mac pppoe 怎么在命令行拨号而非通过界面设置,想用 python 写个帮助拨号的小程序
1
bazingaterry 2016-11-12 02:16:43 +08:00 via iPhone
是可以的, macOS 的大部分程序都提供了命令行版本,具体是我记不清楚了,楼主可以查一下。
|
2
zander 2016-11-12 08:37:26 +08:00 1
Usage: networksetup -createpppoeservice <device name ie., en0> <service name> <account name> <password> [pppoe service name]
Create a PPPoE service on the specified device with the service name specified. The "pppoe service name" is optional and may not be supported by the service provider. Usage: networksetup -deletepppoeservice <service name> Delete the PPPoE service. Usage: networksetup -setpppoeaccountname <service name> <account name> Sets the account name for the specified service. Usage: networksetup -setpppoepassword <service name> <password> Sets the password stored in the keychain for the specified service. Usage: networksetup -connectpppoeservice <service name> Connect the PPPoE service. Usage: networksetup -disconnectpppoeservice <service name> Disconnect the PPPoE service. |