Skip to content

Add-RouterOsInterfaceBridgePort

SYNOPSIS

Creates a new interface bridge port

SYNTAX

Default

Add-RouterOsInterfaceBridgePort [-ComputerName] <String> [-Port] <Int32> [-Credential] <PSCredential>
 [-ShowCommand] [-AutoIsolate <String>] [-BpduGuard <String>] -Bridge <String> [-BroadcastFlood <String>]
 [-Comment <String>] [-CopyFrom <String>] [-Disabled <String>] [-Edge <String>] [-FastLeave <String>]
 [-FrameTypes <String>] [-Horizon <String>] [-HW <String>] [-IngressFiltering <String>] -Interface <String>
 [-InternalPathCost <String>] [-Learn <String>] [-MulticastRouter <String>] [-MvrpApplicantState <String>]
 [-MvrpRegistrarState <String>] [-PathCost <String>] [-PlaceBefore <String>] [-PointToPoint <String>]
 [-Priority <String>] [-Pvid <String>] [-RestrictedRole <String>] [-RestrictedTcn <String>]
 [-TagStacking <String>] [-Trusted <String>] [-UnknownMulticastFlood <String>] [-UnknownUnicastFlood <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

Session

Add-RouterOsInterfaceBridgePort [-ShowCommand] -Session <RouterOsSession> [-AutoIsolate <String>]
 [-BpduGuard <String>] -Bridge <String> [-BroadcastFlood <String>] [-Comment <String>] [-CopyFrom <String>]
 [-Disabled <String>] [-Edge <String>] [-FastLeave <String>] [-FrameTypes <String>] [-Horizon <String>]
 [-HW <String>] [-IngressFiltering <String>] -Interface <String> [-InternalPathCost <String>] [-Learn <String>]
 [-MulticastRouter <String>] [-MvrpApplicantState <String>] [-MvrpRegistrarState <String>] [-PathCost <String>]
 [-PlaceBefore <String>] [-PointToPoint <String>] [-Priority <String>] [-Pvid <String>]
 [-RestrictedRole <String>] [-RestrictedTcn <String>] [-TagStacking <String>] [-Trusted <String>]
 [-UnknownMulticastFlood <String>] [-UnknownUnicastFlood <String>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

Create new interface bridge port

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-RouterOsInterfaceBridgePort -Session $session -Bridge "MyBridge" -Interface "ether2"
Remove-RouterOsSession -Session $session
RouterOS CLI
/interface bridge port add interface=ether2 bridge=local

Example

Using PSCredential
$Credential = $([pscredential]::New('admin',$(ConvertTo-SecureString -String 'admin' -AsPlainText -Force)))
Add-RouterOsInterfaceBridgePort -ComputerName '10.0.0.1' -Port 22 -Credential $Credential -Bridge "MyBridge" -Interface "ether2"
RouterOS CLI
/interface bridge port add interface=ether2 bridge=local

PARAMETERS

-AutoIsolate

{{ Fill AutoIsolate 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

-BpduGuard

{{ Fill BpduGuard 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

-Bridge

{{ Fill Bridge Description }}

Type: String
Parameter Sets: (All)
Aliases:

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

-BroadcastFlood

{{ Fill BroadcastFlood 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

-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

-Edge

{{ Fill Edge Description }}

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

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

-FastLeave

{{ Fill FastLeave 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

-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

-HW

{{ Fill HW 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

-Horizon

{{ Fill Horizon 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

-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

-Interface

{{ Fill Interface Description }}

Type: String
Parameter Sets: (All)
Aliases:

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

-InternalPathCost

{{ Fill InternalPathCost Description }}

Type: String
Parameter Sets: (All)
Aliases:

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

-Learn

{{ Fill Learn Description }}

Type: String
Parameter Sets: (All)
Aliases:

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

-MvrpApplicantState

{{ Fill MvrpApplicantState Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: non-participant, normal-participant

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

-MvrpRegistrarState

{{ Fill MvrpRegistrarState Description }}

Type: String
Parameter Sets: (All)
Aliases:
Accepted values: fixed, normal

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

-PathCost

{{ Fill PathCost Description }}

Type: String
Parameter Sets: (All)
Aliases:

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

-PlaceBefore

{{ Fill PlaceBefore Description }}

Type: String
Parameter Sets: (All)
Aliases:

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

-PointToPoint

{{ Fill PointToPoint Description }}

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

Required: False
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

-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

-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

-RestrictedRole

{{ Fill RestrictedRole 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

-RestrictedTcn

{{ Fill RestrictedTcn 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

-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

-TagStacking

{{ Fill TagStacking 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

-Trusted

{{ Fill Trusted 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

-UnknownMulticastFlood

{{ Fill UnknownMulticastFlood 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

-UnknownUnicastFlood

{{ Fill UnknownUnicastFlood 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