首页 > 其他 > 详细

OPENVSWITCH - Playing with Bonding on Openvswitch

时间:2020-05-21 11:05:55      阅读:61      评论:0      收藏:0      [点我收藏+]
 ovs-vsctl add-port br0 vlan10 tag=10 -- set interface vlan10 type=internal
 ovs-vsctl add-port br0 vlan20 tag=20 -- set interface vlan20 type=internal
 
   
 ovs-vsctl add-port br0 enahisic2i1 trunks=10,20

 ovs-vsctl add-port br0 enahisic2i3 trunks=10,20


[root@bogon ~]# ovs-vsctl show
153bc919-e549-4c26-bc18-8ebc22b32581
Bridge "br0"
Port "enahisic2i1"
trunks: [10, 20]
Interface "enahisic2i1"
Port "vlan20"
tag: 20
Interface "vlan20"
type: internal
Port "vlan10"
tag: 10
Interface "vlan10"
type: internal
Port "enahisic2i3"
trunks: [10, 20]
Interface "enahisic2i3"
Port "br0"
Interface "br0"
type: internal
ovs_version: "2.12.0"
[root@bogon ~]#

bogon# conf t
bogon(config)# hostname 81.bogon
81.bogon(config)# interface vlan10
81.bogon(config-if)# ip address 192.168.10.1/24
81.bogon(config-if)# no shutdown
81.bogon(config-if)# interface vlan20
81.bogon(config-if)#  ip address 192.168.20.1/24
81.bogon(config-if)# no shutdown
81.bogon(config-if)# do wr
Note: this version of vtysh never writes vtysh.conf
Building Configuration...
Configuration saved to /etc/frr/zebra.conf
Configuration saved to /etc/frr/ospfd.conf
Cant backup old configuration file /etc/frr/bgpd.conf.sav.
Configuration saved to /etc/frr/staticd.conf
81.bogon(config-if)# exit
81.bogon(config)# exit
81.bogon# show running-config
Building configuration...

Current configuration:
!
frr version 7.3-MyOwnFRRVersion
frr defaults traditional
hostname localhost.localdomain
log file /var/log/frr/bgpd.log
hostname 81.bogon
!
interface vlan10
 ip address 192.168.10.1/24
!
interface vlan20
 ip address 192.168.20.1/24
!
line vty
!
end
81.bogon# 
[root@bogon ~]# ip a show vlan10
12: vlan10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether fa:82:57:cb:d0:dc brd ff:ff:ff:ff:ff:ff
    inet 192.168.10.1/24 brd 192.168.10.255 scope global vlan10
       valid_lft forever preferred_lft forever
    inet6 fe80::f882:57ff:fecb:d0dc/64 scope link 
       valid_lft forever preferred_lft forever
[root@bogon ~]# ip a show vlan20
13: vlan20: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether 46:ee:73:2b:ab:65 brd ff:ff:ff:ff:ff:ff
    inet 192.168.20.1/24 brd 192.168.20.255 scope global vlan20
       valid_lft forever preferred_lft forever
    inet6 fe80::44ee:73ff:fe2b:ab65/64 scope link 
       valid_lft forever preferred_lft forever
[root@bogon ~]# 

 

 

https://brezular.com/2011/12/04/openvswitch-playing-with-bonding-on-openvswitch/

OPENVSWITCH - Playing with Bonding on Openvswitch

原文:https://www.cnblogs.com/dream397/p/12928988.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!