9.linux常用命令(网络配置)

9.网络配置

     9.1  VIM命令配置

查看网卡配置:cat   /etc/sysconfig/network-scripts/ifcfg-eth0

概要信息如下:

DEVICE=eth0    #网卡名称

TYPE=Ethernet     #网卡类型

ONBOOT=yes    #是否开机启动网卡

BOOTPROTO=static    #静态获取IP,其他值:dhcp(如果设置dhcp下面红色部分 不需要)

IPADDR=192.168.44.100   #ip地址

GATEWAY=192.168.44.2   #ip网关

NETMASK=255.255.255.0     #子网掩码

     9.2  setup命令配置

命令:setup

猜你喜欢

转载自blog.csdn.net/Feng0811xin/article/details/87644251