this is a extra element for clear the floated element
在命令行下,给网卡加第二个IP地址且重启有效
  • 12/31
  • 2008
网络配置 | Linux 4189 次查看
  cd /etc/sysconfig/network-scripts

  cp ifcfg-eth0 ifcfg-eth0:1

  vi ifcfg-eth0:1

  然后改动相应的地方,一般有两个

  1. device=eth0-------->device=eth0:1

  2. IP地址

  重启一般就可以了