linux网卡配置

6.3网卡配置

DEVICE=eth0

TYPE=Ethernet

BOOTPROTO=dhcp

ONBOOT=yes

NETMASK=255.255.255.0

GETWAY=192.168.1.255

IPADDR=192.168.1.254

7.0网卡配置

HWADDR=00:0C:29:2F:57:70

TYPE=Ethernet

BOOTPROTO=dhcp

DEFROUTE=yes

PEERDNS=yes

PEERROUTES=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=yes

IPV6_AUTOCONF=yes

IPV6_DEFROUTE=yes

IPV6_PEERDNS=yes

IPV6_PEERROUTES=yes

IPV6_FAILURE_FATAL=no

NAME=eno16777736

UUID=1a3eaf73-a82e-45fc-865e-aa4c24b837f5

ONBOOT=no

ubuntu 12.04

打开/etc/network/interface

auto eth0

iface eth0 inet static

address 10.10.10.40

netmask 255.0.0.0

注意:这两个软件安装必须在连接外网的情况下才能成功

ubuntu允许ssh远程连接

sudo apt-get install openssh-server

ubuntu允许ssh传输文件

sudo apt-get install lszrz

ubuntu关闭防火墙

ufw disable

相关推荐