Skip to content

Add-RouterOsInterfaceBridge

SYNOPSIS

Creates a new interface bridge

SYNTAX

Default

Add-RouterOsInterfaceBridge [-ComputerName] <String> [-Port] <Int32> [-Credential] <PSCredential>
 [-ShowCommand] [-AdminMac <String>] [-AgeingTime <String>] [-Arp <String>] [-ArpTimeout <String>]
 [-AutoMac <String>] [-Comment <String>] [-CopyFrom <String>] [-DhcpSnooping <String>] [-Disabled <String>]
 [-EtherType <String>] [-FastForward <String>] [-ForwardDelay <String>] [-FrameTypes <String>]
 [-IgmpSnooping <String>] [-IgmpVersion <Int32>] [-IngressFiltering <String>] [-LastMemberInterval <String>]
 [-LastMemberQueryCount <String>] [-MaxHops <String>] [-MaxMessageAge <String>] [-MembershipInterval <String>]
 [-MldVersion <String>] [-Mtu <String>] [-MulticastQuerier <String>] [-MulticastRouter <String>]
 [-Mvrp <String>] -Name <String> [-PortCostMode <String>] [-Priority <String>] [-ProtocolMode <String>]
 [-Pvid <String>] [-QuerierInterval <String>] [-QueryInterval <String>] [-QueryResponseInterval <String>]
 [-RegionName <String>] [-RegionRevision <String>] [-StartupQueryCount <String>]
 [-StartupQueryInterval <String>] [-TransmitHoldCount <String>] [-VlanFiltering <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

Session

Add-RouterOsInterfaceBridge [-ShowCommand] -Session <RouterOsSession> [-AdminMac <String>]
 [-AgeingTime <String>] [-Arp <String>] [-ArpTimeout <String>] [-AutoMac <String>] [-Comment <String>]
 [-CopyFrom <String>] [-DhcpSnooping <String>] [-Disabled <String>] [-EtherType <String>]
 [-FastForward <String>] [-ForwardDelay <String>] [-FrameTypes <String>] [-IgmpSnooping <String>]
 [-IgmpVersion <Int32>] [-IngressFiltering <String>] [-LastMemberInterval <String>]
 [-LastMemberQueryCount <String>] [-MaxHops <String>] [-MaxMessageAge <String>] [-MembershipInterval <String>]
 [-MldVersion <String>] [-Mtu <String>] [-MulticastQuerier <String>] [-MulticastRouter <String>]
 [-Mvrp <String>] -Name <String> [-PortCostMode <String>] [-Priority <String>] [-ProtocolMode <String>]
 [-Pvid <String>] [-QuerierInterval <String>] [-QueryInterval <String>] [-QueryResponseInterval <String>]
 [-RegionName <String>] [-RegionRevision <String>] [-StartupQueryCount <String>]
 [-StartupQueryInterval <String>] [-TransmitHoldCount <String>] [-VlanFiltering <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

This cmdlet is used to create a new interface bridge

EXAMPLES

Example

Using Session
$Credential = $([pscredential]::New('admin',$(ConvertTo-SecureString -String 'admin' -AsPlainText -Force)))
$session = New-RouterOsSession -ComputerName '10.0.0.1' -Port 22 -Credential $Credential
Add-RouterOsInterfaceBridge -Session $session -Name "MyBridge" -Interface "ether2"
Remove-RouterOsSession -Session $session
RouterOS CLI
/interface/bridge/add name="MyBridge" interface=ether2

Example

Using PSCredential
$Credential = $([pscredential]::New('admin',$(ConvertTo-SecureString -String 'admin' -AsPlainText -Force)))
$params = @{
    ComputerName = '10.0.0.1'
    Port         = 22
    Name       = "MyBridge"
    Interface    = "ether2"
    Credential   = $Credential
}
Add-RouterOsInterfaceBridge @params
RouterOS CLI
/interface/bridge/add name="MyBridge" interface=ether2

PARAMETERS

-AdminMac

{{ Fill AdminMac Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AgeingTime

{{ Fill AgeingTime Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Arp

{{ Fill Arp Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: disabled, enabled, local-proxy-arp, proxy-arp, reply-only

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ArpTimeout

{{ Fill ArpTimeout Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AutoMac

{{ Fill AutoMac Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: yes, no

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Comment

{{ Fill Comment Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ComputerName

{{ Fill ComputerName Description }}

Type: String
Parameter Sets: Default
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-CopyFrom

{{ Fill CopyFrom Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Credential

{{ Fill Credential Description }}

Type: PSCredential
Parameter Sets: Default
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-DhcpSnooping

{{ Fill DhcpSnooping Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: yes, no

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Disabled

{{ Fill Disabled Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: yes, no

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-EtherType

{{ Fill EtherType Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: 0x88a8, 0x8100, 0x9100

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-FastForward

{{ Fill FastForward Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: yes, no

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ForwardDelay

{{ Fill ForwardDelay Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-FrameTypes

{{ Fill FrameTypes Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: admit-all, admit-only-untagged-and-priority-tagged, admit-only-vlan-tagged

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-IgmpSnooping

{{ Fill IgmpSnooping Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: yes, no

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-IgmpVersion

{{ Fill IgmpVersion Description }}

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-IngressFiltering

{{ Fill IngressFiltering Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: yes, no

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-LastMemberInterval

{{ Fill LastMemberInterval Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-LastMemberQueryCount

{{ Fill LastMemberQueryCount Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MaxHops

{{ Fill MaxHops Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MaxMessageAge

{{ Fill MaxMessageAge Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MembershipInterval

{{ Fill MembershipInterval Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MldVersion

{{ Fill MldVersion Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Mtu

{{ Fill Mtu Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MulticastQuerier

{{ Fill MulticastQuerier Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: yes, no

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MulticastRouter

{{ Fill MulticastRouter Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: disabled, permanent, temporary-query

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Mvrp

{{ Fill Mvrp Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: yes, no

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

{{ Fill Name Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Port

{{ Fill Port Description }}

Type: Int32
Parameter Sets: Default
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PortCostMode

{{ Fill PortCostMode Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: long, short

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Priority

{{ Fill Priority Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProtocolMode

{{ Fill ProtocolMode Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: mstp, none, rstp, stp

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Pvid

{{ Fill Pvid Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-QuerierInterval

{{ Fill QuerierInterval Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-QueryInterval

{{ Fill QueryInterval Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-QueryResponseInterval

{{ Fill QueryResponseInterval Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RegionName

{{ Fill RegionName Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RegionRevision

{{ Fill RegionRevision Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Session

{{ Fill Session Description }}

Type: RouterOsSession
Parameter Sets: Session
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ShowCommand

{{ Fill ShowCommand Description }}

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-StartupQueryCount

{{ Fill StartupQueryCount Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-StartupQueryInterval

{{ Fill StartupQueryInterval Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-TransmitHoldCount

{{ Fill TransmitHoldCount Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-VlanFiltering

{{ Fill VlanFiltering Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: yes, no

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

System.Int32

System.Management.Automation.PSCredential

psrouteros.Helper.RouterOsSession

OUTPUTS

System.Void

NOTES