咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

CentOS6.4下一块网卡绑定多个IP

2016-06-14 19:24:38 10609次

#vim /etc/sysconfig/network-scripts/ifcfg-seth0

 方法一:

DEVICE="eth0"
BOOTPROTO="static"
HWADDR="XX:XX:XX:XX:XX:XX"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="aa3baac5-aaa7-4aa5-9aaa-baa284b2d231"


IPADDR=xx.xx.81.167
NETMASK=255.255.255.0
NETWORK=xx.xx.81.160
BROADCAST=xx.xx.81.191
GATEWAY=xx.xx.81.161

IPADDR2=192.168.0.48
NETMASK2=255.255.255.0
NETWORK2=192.168.0.0
BROADCAST2=192.168.0.255
GATEWAY2=192.168.0.11

DNS1=114.114.114.114

方法二;

#ifconfig

#Ifconfig seth0:0 182.247.238.33 netmask 255.255.255.0 up

blob.png

blob.png

blob.png

首页
最新活动
个人中心