ifconfig -a
来查看网卡情况
就可以看到eth0和eth1等几个网卡,也有可能网卡名称是em0
配置网卡eth0
vi /etc/sysconfig/network-scripts/ifcfg-eth0
详细配置信息是:
DEVICE=eth0
TYPE=Ethernet
UUID=0cc2da7c-62ed-4eec-8d78-3cd4e3ba66de
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
HWADDR=00:30:48:C8:00:A0
IPADDR=121.14.154.33
PREFIX=26
GATEWAY=121.14.154.1
IPADDR2=121.14.154.35
PREFIX2=26
GATEWAY2=121.14.154.1
IPADDR3=122.13.158.41
PREFIX3=7
GATEWAY3=122.13.158.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
页:
[1]