add bridge and vlan support
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
meta:
|
||||
id: "lab-bridge"
|
||||
name: "L2 Bridge"
|
||||
description: "Two hosts in separate networks joined by a Linux bridge at L2."
|
||||
|
||||
networks:
|
||||
- name: net1
|
||||
- name: net2
|
||||
|
||||
nodes:
|
||||
- name: srv
|
||||
role: host
|
||||
interfaces:
|
||||
eth1:
|
||||
network: net1
|
||||
ip: "10.0.0.1/24"
|
||||
|
||||
- name: client
|
||||
role: host
|
||||
interfaces:
|
||||
eth1:
|
||||
network: net2
|
||||
ip: "10.0.0.2/24"
|
||||
|
||||
- name: bridge
|
||||
role: switch
|
||||
interfaces:
|
||||
eth1:
|
||||
network: net1
|
||||
eth2:
|
||||
network: net2
|
||||
bridges:
|
||||
- name: br0
|
||||
stp: false
|
||||
members: [eth1, eth2]
|
||||
@@ -0,0 +1,6 @@
|
||||
Name,Role,Adapter,Interface,Interface Type,Slave Interfaces,Network,VLAN,Network IP,Mask,Device IP,Default Gateway
|
||||
srv,Host,Adapter1,eth1,,,net1,,10.0.0.0,/24,10.0.0.1,
|
||||
client,Host,Adapter1,eth1,,,net2,,10.0.0.0,/24,10.0.0.2,
|
||||
bridge,Switch,Adapter1,eth1,,,net1,,,,,
|
||||
bridge,Switch,Adapter2,eth2,,,net2,,,,,
|
||||
bridge,Switch,,br0,bridge,"eth1,eth2",,,,,,
|
||||
|
Reference in New Issue
Block a user