Linux服务器配置桥接网卡设备

 cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-br0
 vim /etc/sysconfig/network-scripts/ifcfg-br0
  TYPE=Bridge
  DEVICE=br0
  ONBOOT=yes
  NM_CONTROLLED=yes
  BOOTPROTO=static
  IPADDR=10.0.0.90
  GATEWAY=10.0.0.2
  NETMASK=255.255.255.0
 vim /etc/sysconfig/network-scripts/ifcfg-eth0
  DEVICE=eth0
  BRIDGE=br0
  ONBOOT=yes
  TYPE=Ethernet

重启网卡使之生效。

你可能感兴趣的:(Linux)