从 CentOS 6.0 开始单网卡绑定多 IP 的配置方法不同于 6.0 以前的版本中的配置方法,但新的配置方法也很简单,比如,要在 eth0 网卡上绑定第二个 IP (192.168.10.100/25,网关192.168.10.1),可以这样做:
# vi   /etc/sysconfig/network-scripts/ifcfg-eth0                          //编辑网卡配置文件

添加三行:

IPADDR2=192.168.10.100
PREFIX2=25
GATEWAY2=192.168.10.1

其它的可以保持默认不作修改。同理,要添加第 n 个 IP 的话,对应每一个都添加三行即可。另外第一个 IP 的不需要写成 IPADDR1、PREFIX1、GATEWAY1,否则会无法识别!
实际应用中一般不需要配置多个网关,比如电信/网通双线的话,只用电信的网关,否则可能需要做策略,这里只是为了演示。

标签: centos

21条评论

  1. zaycev mp3 net viagra день без тебя can i buy viagra in patong
  1. viagra ciprofloxacin viagra dubbel dos
  1. viagra osama bin laden herbs act like viagra
  1. kegel exercises vs viagra yok3d and viagra
  1. how old must you be to take viagra dose correta viagra
  1. viagra dysmenorrhea viagra quarter pill
  1. effects of mixing cialis and viagra generic female viagra sildenafil citrate
  1. is viagra sold in walmart viagra e ataque cardiaco
  1. der kleine nils viagra mp3 el viagra puede producir infarto
  1. generico viagra onde comprar desde que edad se puede consumir viagra
  1. writing with a thesis thesis to book
  1. help with dissertations write dissertation
  1. dissertation writing fellowships dissertation methodology example
  1. good thesis writing law thesis
  1. coursework on a resume coursework writing
  1. help writing papers for college custom papers writing
  1. best essay writers review essay writers
  1. 没看懂

添加新评论

  • 上一篇:
  • 下一篇: