macOS pppoe 怎么在命令行拨号而非通过界面设置?

2016-11-12 02:04:52 +08:00
 xiaoyu233

请问 mac pppoe 怎么在命令行拨号而非通过界面设置,想用 python 写个帮助拨号的小程序

1920 次点击
所在节点    macOS
4 条回复
bazingaterry
2016-11-12 02:16:43 +08:00
是可以的, macOS 的大部分程序都提供了命令行版本,具体是我记不清楚了,楼主可以查一下。
zander
2016-11-12 08:37:26 +08:00
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.
xiaoyu233
2016-11-12 14:21:14 +08:00
@zander 谢谢,我会试试
xiaoyu233
2016-11-12 23:16:55 +08:00
@zander 可以的,谢谢大神

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/319960

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX