ifconfig用于获取网卡配置与网络状态信息 ifconfig用于获取网卡配置与网络状态信息 ifconfig [网络设备] [参数] ifconfig eth0 192.168.80.111 netmask 255.255.255.0ifconfig eth0 up#开启 eth0 网卡ifconfig eth0 down#关闭 eth0 网卡route add default gw 192.168.80.2 #使用 route 命令配置网关进入 etc/network 文件夹,配置相关文件,重启服务