1. ubuntu14网络配置
1 | cd /etc/network/ |
1 | # This file describes the network interfaces available on your system |
2. redhat网络配置
配置文件位于: /etc/sysconfig/network-scripts/
编辑文件 : vim ifcfg-eth0
1
2
3
4
5
6
7
8
9
10
11DEVICE=eth0
HWADDR=08:00:27:84:ba:8b
TYPE=Ethernet
UUID=ef3bdd7e-fc7f-43cd-b057-536128da39fe
ONBOOT=yes
BOOTPROTO=dhcp
IPADDR=192.168.56.102
GETWAY=192.168.0.1
PREFIX=24
DNS=192.168.1.1
NETMASK=255.255.255.0
重启服务:servie network restart