ubuntu常用使用方法.docVIP

  • 7
  • 0
  • 约5.26千字
  • 约 7页
  • 2016-12-21 发布于贵州
  • 举报
一、网络设定: VMware IP地址自动获取: VM--Settings-Network Adapter 默认使用NAT(share hosts IP)修改成Bridged(connect direct to physical network) A、以DHCP方式配置网卡 编辑文件/etc/network/interfaces: sudo gedit /etc/network/interfaces 并用下面的行来替换有关eth0的行: # The primary network interface - use DHCP to find our address auto eth0 iface eth0 inet dhcp 用下面的命令使网络设置生效: sudo /etc/init.d/networking restart 也可以在命令行下直接输入下面的命令来获取地址 sudo dhclient eth0 B、如果修改成为网卡配置静态IP地址 编辑文件/etc/network/interfaces: sudo vi /etc/network/interfaces 并用下面的行来替换有关eth0的行:# The primary network interface auto eth0 iface eth0 inet static ad

文档评论(0)

1亿VIP精品文档

相关文档