Ubuntu命令行修改网络配置,静态ip,hostname ,解决hostname ping不通的办法
打开后里面可设置DHCP或手动设置静态ip。前面autoeth0,让网卡开机自动挂载.1.以DHCP方式配置网卡编辑文件/etc/network/interfaces:sudovi/etc/network/interfaces并用下面的行来替换有关eth0的行:#Theprimarynetworkinterface-useDHCPtofindouraddressautoeth0ifaceeth0i