# ubuntu连局域网不能同时连接外网的解决方法 **Repository Path**: tianweiWang/webuse ## Basic Information - **Project Name**: ubuntu连局域网不能同时连接外网的解决方法 - **Description**: ubuntu连局域网不能同时连接外网的解决方法 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-10-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ubuntu连局域网不能同时连接外网的解决方法 #### 介绍 ubuntu连局域网不能同时连接外网的解决方法 方法1: ``` cd /etc/network sudo gedit interfaces ``` 然后注释掉最后一行 ``` #iface eth0 inet manual ``` 保存文件后,重启网络服务 ``` sudo service network-manager restart ``` 02: 基本操作 \1. 手动连接: pon dsl-provider \2. 手动断开: poff dsl-provider \3. 查看状态: plog 如果觉得每次输入pon dsl-provider 比较麻烦,可以用alias在系统环境变量中 ~/.bashrc 里加入 alias pon =“pon dsl-provider”,以后输入pon就可以既能连接局域网,又能连接外网了。