V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
xiaoyu233
V2EX  ›  macOS

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

  •  
  •   xiaoyu233 · 2016-11-12 02:04:52 +08:00 · 1915 次点击
    这是一个创建于 2740 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    4 条回复    2016-11-12 23:16:55 +08:00
    bazingaterry
        1
    bazingaterry  
       2016-11-12 02:16:43 +08:00 via iPhone
    是可以的, macOS 的大部分程序都提供了命令行版本,具体是我记不清楚了,楼主可以查一下。
    zander
        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.
    xiaoyu233
        3
    xiaoyu233  
    OP
       2016-11-12 14:21:14 +08:00
    @zander 谢谢,我会试试
    xiaoyu233
        4
    xiaoyu233  
    OP
       2016-11-12 23:16:55 +08:00
    @zander 可以的,谢谢大神
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3295 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 13:54 · PVG 21:54 · LAX 06:54 · JFK 09:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.