Ubuntu网络环境配置
2013-03-13 19:36
447 查看
未修改过的/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
auto eth2
iface eth2 inet dhcp
auto ath0
iface ath0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
修改过的/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.200.99
netmask 255.255.255.0
gateway 192.168.200.100
auto eth1
iface eth1 inet dhcp
auto eth2
iface eth2 inet dhcp
auto ath0
iface ath0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
启动项 /etc/init.d/networking
重启 sudo /etc/init.d/networking restart
---by(vangeldoro)
使用ssh2远程连接时,注意用户名和远程登陆用户名保持一致。
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
auto eth2
iface eth2 inet dhcp
auto ath0
iface ath0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
修改过的/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.200.99
netmask 255.255.255.0
gateway 192.168.200.100
auto eth1
iface eth1 inet dhcp
auto eth2
iface eth2 inet dhcp
auto ath0
iface ath0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
启动项 /etc/init.d/networking
重启 sudo /etc/init.d/networking restart
---by(vangeldoro)
使用ssh2远程连接时,注意用户名和远程登陆用户名保持一致。
相关文章推荐
- Ubuntu14.04+CUDA6.5环境下神经网络工具包Deepnet配置
- Ubuntu中网络编程的环境配置
- Ubuntu中网络编程的环境配置
- Ubuntu环境下网络连接配置
- ubuntu下配置python2.7.13神经网络环境
- Ubuntu系统安装、网络配置、lamp环境搭建
- ubuntu 下网络环境配置及互ping通过
- Ubuntu 16.04 配置网络环境
- Linux网络编程 2 - ubuntu 16.04 环境配置
- 机会网络平台haggle在Ubuntu下的运行环境配置过程遇到问题的解决方案
- UBUNTU网络环境配置(VMWARE虚拟机)
- Ubuntu 16.04.1 Server 64bit 系统安装后的网络配置(Vmware Workstation 12.5 & Windows 10 X64 环境)
- 在Ubuntu环境下,为Qemu配置桥接网络
- 在Ubuntu环境下为Qemu配置桥接网络
- Ubuntu环境下配置网络环境及ssh服务器搭建(openssh-server无法安装的终极解决方案)
- Ubuntu14.04+CUDA6.5环境下神经网络工具包Deepnet配置
- 在Ubuntu 8.10中配置的C,C++编程环境
- Ubuntu 环境变量及 ADB 配置
- Ubuntu 阿里源基础环境配置