centos+bond+bridge+docker(ssh容器)固定ip實現測試環境(二)

來源:互聯網
上載者:User

標籤:bridge   ssh   docker   centos   

建立bond介面請查看:

http://568273240.blog.51cto.com/2921150/1689541

建立bridge介面直接上設定檔,應該nmtui沒成功。

# cat /etc/sysconfig/network-scripts/ifcfg-Bond_connection_1 

DEVICE=bond0

TYPE=Bond

BONDING_MASTER=yes

BOOTPROTO=none

DEFROUTE=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=no

NAME="Bond connection 1"

UUID=3787f827-24bd-4a2c-bd24-b9b085bcf002

ONBOOT=yes

BONDING_OPTS="updelay=0 resend_igmp=1 use_carrier=1 miimon=100 downdelay=0 xmit_hash_policy=0 primary_reselect=0 fail_over_mac=0 arp_validate=0 mode=802.3ad lacp_rate=0 arp_interval=0 ad_select=0"

#IPADDR=192.168.1.84

#PREFIX=24

#GATEWAY=192.168.1.1

BRIDGE="bridge0"


# cat /etc/sysconfig/network-scripts/ifcfg-bridge0 

TYPE="Bridge"

BOOTPROTO="static"

IPADDR=192.168.1.84

PREFIX=24

GATEWAY=192.168.1.1

NAME="bridge0"

DEVICE="bridge0"

ONBOOT="yes"


# systemctl restart network

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/72/55/wKioL1XhYObgdtFlAAbl-LB74Q0768.jpg" title="bridge3.png" alt="wKioL1XhYObgdtFlAAbl-LB74Q0768.jpg" />

建議將BOOTPROTO改成none或static,不容易出問題。

    博主QQ:568273240

    部落格:http://568273240.blog.51cto.com/

本文出自 “一夢千年” 部落格,請務必保留此出處http://568273240.blog.51cto.com/2921150/1689547

centos+bond+bridge+docker(ssh容器)固定ip實現測試環境(二)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.