networks network
To add a bridge to a network, use the networks network command, in global configuration mode. To remove the bridge from a network, use the no form of the command.
networks network networkname { bridge | bridgename | | sriov | true | | trunk true | | trunk false | | vlan | vlannumber | | vlan-range | range }
no networks network networkname
Syntax Description
network networkname |
Specifies the name of the network. |
bridge bridgename |
Specifies the name of the bridge. |
sriov true |
Specifies the SRIOV network. |
trunk true |
Adds the network to trunk mode. |
trunk false |
Removes the network from trunk mode and puts it in access mode. |
vlan vlannumber |
Specifies the VLAN number to be associated with the network. |
vlan-range range |
Specifies the VLAN range. |
Command Default
None
Command Modes
Global configuration (config)
Command History
Release | Modification |
---|---|
3.5.1 |
This command was introduced. |
4.8.1 |
The vlan-range keyword was added. |
Examples
nfvis(config)# bridges bridge eth2-1-br
nfvis(config-bridge-eth2-1-br)# port eth2-1
nfvis(config-port-eth2-1)# commit
nfvis(config)# networks network eth2-1-net bridge eth2-1-br
nfvis (config-network-eth2-1-net)# commit
nfvis(config)# networks network eth2-1-SRIOV-1 sriov true
nfvis(config-network-eth2-1-SRIOV-1)# commit
nfvis(config)# networks network eth2-1-net trunk true
nfvis(config-network-eth2-1-net)# commit
nfvis(config)# networks network eth2-1-net trunk false
nfvis(config-network-eth2-1-net)# commit
nfvis(config)# networks network eth2-1-net vlan 100 trunk true
nfvis(config-network-eth2-1-net)# commit
nfvis# show running-config networks network eth2-1-net
networks network eth2-1-net
vlan [ 100 ]
trunk true
bridge eth2-1-br
nfvis(config)# networks network eth2-1-net bridge eth2-1-br vlan-range [ 100-103 200 205-207 ]
nfvis(config-network-eth2-1-net)# commit
nfvis# show running-config networks network eth2-1-net
networks network eth2-1-net
vlan-range [ 100-103 200 205-207 ]
bridge eth2-1-br
nfvis# show system networks network eth2-1-net
system networks network eth2-1-net
bridge eth2-1-br
ports eth2-1
type openvswitch
vlan 100,101,102,103,200,205,206,207,1
Note |
|