KylinV10-SP1 配置网桥

KylinV10-SP1 配置网桥

1.创建网桥的配置文件ifcfg-br0

vim /etc/sysconfig/network-scripts/ifcfg-br0
-----------------------------------------------------
STP=yes
BRIDGING_OPTS=priority=32768
TYPE=Bridge
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
IPADDR=xxx.xxx.xxx.xxx
PREFIX=xxx.xxx.xxx.xxx
GATEWAY=xxx.xxx.xxx.xxx
DNS1=xxx.xxx.xxx.xxx
DNS2=xxx.xxx.xxx.xxx
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_PRIVACY=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=br0
UUID=138b94fe-3c4a-4e8b-903e-e6c1cfadfba7
DEVICE=br0
ONBOOT=yes

1.编辑连接网线的配置文件ifcfg-enp125s0f0

不同服务器文件不一样需要自己找对

vim /etc/sysconfig/network-scripts/ifcfg-enp125s0f0
--------------------------------------------------------------------
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp125s0f0
UUID=3fe4f0c7-c402-3374-9da3-87f580d12892
DEVICE=enp125s0f0
ONBOOT=yes
AUTOCONNECT_PRIORITY=-999
BRIDGE=br0

你可能感兴趣的:(运维,linux)