xiaoyu233
V2EX  ›  macOS

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

  •  
  •   xiaoyu233 · Nov 12, 2016 · 2473 views
    This topic created in 3514 days ago, the information mentioned may be changed or developed.

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

    4 replies    2016-11-12 23:16:55 +08:00
    bazingaterry
        1
    bazingaterry  
       Nov 12, 2016 via iPhone
    是可以的, macOS 的大部分程序都提供了命令行版本,具体是我记不清楚了,楼主可以查一下。
    zander
        2
    zander  
       Nov 12, 2016   ❤️ 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
       Nov 12, 2016
    @zander 谢谢,我会试试
    xiaoyu233
        4
    xiaoyu233  
    OP
       Nov 12, 2016
    @zander 可以的,谢谢大神
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3038 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 07:03 · PVG 15:03 · LAX 00:03 · JFK 03:03
    ♥ Do have faith in what you're doing.