Configure HA1/HA2 command line

Announcements

ATTENTION Customers, All Partners and Employees: The Customer Support Portal (CSP) will be undergoing maintenance and unavailable on Saturday, November 7, 2020, from 11 am to 11 pm PST. Please read our blog for more information.

Reply
Highlighted
L2 Linker

Configure HA1/HA2 command line

Need to configure the following in CLI:

Control Link (HA1)

Port ha1-a

 

Control Link (HA1 Backup)
Port ha1-b
 
Data Link (HA2)
Port ethernet1/1
 
Data Link (HA2 Backup)
Port ethernet1/2
 
Any insight would be appreciated.
Highlighted
L2 Linker

configure
set network interface ethernet ethernet1/1 ha
set network interface ethernet ethernet1/2 ha

set deviceconfig high-availability enabled yes

set deviceconfig high-availability interface ha1 port ha1-a
set deviceconfig high-availability interface ha1 ip-address 192.168.6.44
set deviceconfig high-availability interface ha1 netmask 255.255.255.0

set deviceconfig high-availability interface ha1 port ha1-b
set deviceconfig high-availability interface ha1 ip-address 192.168.16.44
set deviceconfig high-availability interface ha1 netmask 255.255.255.0

set deviceconfig high-availability interface ha2 port ethernet1/1
set deviceconfig high-availability interface ha2 ip-address 192.168.26.44
set deviceconfig high-availability interface ha2 netmask 255.255.255.0

set deviceconfig high-availability interface ha2 port ethernet1/2
set deviceconfig high-availability interface ha2 ip-address 192.168.36.44
set deviceconfig high-availability interface ha2 netmask 255.255.255.0

set deviceconfig high-availability group group-id 1 peer-ip 192.168.6.45
set deviceconfig high-availability group group-id 1 peer-ip-backup 192.168.16.45
set deviceconfig high-availability group group-id 1 mode active-passive passive-link-state auto
set deviceconfig high-availability group group-id 1 election-option device-priority 100
set deviceconfig high-availability group group-id 1 election-option timers aggressive
set deviceconfig high-availability group group-id 1 state-synchronization enabled yes
set deviceconfig high-availability group group-id 1 state-synchronization transport ip

commit description "Configuring high availability"

Highlighted
L4 Transporter

The HA commands are all under:

set deviceconfig high-availability

 

To set the ethernet interfaces as HA, you need to use the:

set network interface ethernet 1/1 ha

Highlighted
L2 Linker

@rmfalconer 

Thank you, for the most part i think I got it:

configure
set network interface ethernet ethernet1/1 ha
set network interface ethernet ethernet1/2 ha

set deviceconfig high-availability enabled yes

set deviceconfig high-availability interface ha1 port ha1-a
set deviceconfig high-availability interface ha1 ip-address 192.168.6.44
set deviceconfig high-availability interface ha1 netmask 255.255.255.0

set deviceconfig high-availability interface ha1 port ha1-b
set deviceconfig high-availability interface ha1 ip-address 192.168.16.44
set deviceconfig high-availability interface ha1 netmask 255.255.255.0

set deviceconfig high-availability interface ha2 port ethernet1/1
set deviceconfig high-availability interface ha2 ip-address 192.168.26.44
set deviceconfig high-availability interface ha2 netmask 255.255.255.0

set deviceconfig high-availability interface ha2 port ethernet1/2
set deviceconfig high-availability interface ha2 ip-address 192.168.36.44
set deviceconfig high-availability interface ha2 netmask 255.255.255.0

set deviceconfig high-availability group group-id 1 peer-ip 192.168.6.45
set deviceconfig high-availability group group-id 1 peer-ip-backup 192.168.16.45
set deviceconfig high-availability group group-id 1 mode active-passive passive-link-state auto
set deviceconfig high-availability group group-id 1 election-option device-priority 100
set deviceconfig high-availability group group-id 1 election-option timers aggressive
set deviceconfig high-availability group group-id 1 state-synchronization enabled yes
set deviceconfig high-availability group group-id 1 state-synchronization transport ip

commit description "Configuring high availability"

 

My issue now is that when i try to commit I get the following:

Validation Error:
network -> virtual-wire -> default-vwire -> interface1 'ethernet1/1' is not a valid reference
network -> virtual-wire -> default-vwire -> interface1 is invalid
[edit]

 

And I'm stuck again........

 

Highlighted
L4 Transporter

There is a default-vwire that comes with new PAs that includes e1/1 and e1/2. Delete that vwire first then apply the config.

Highlighted
L2 Linker

I can't figure out how to do that via the CLI.  Do you happen to know?

Highlighted
L2 Linker

I can't find how to do that via the CLI, do you happen to know?

Highlighted
L2 Linker

# delete network virtual-wire
<name> <name>

# delete network virtual-wire default-vwire

No object to delete in delete handler

 

I thought that was it, bit it isn't working.

Highlighted
L4 Transporter

You need quotes since there's a space in the name.

delete network virtual-wire "Default VWire"

Highlighted
Cyber Elite

 

@MrWonderful 

Normally you should see this from CLI

delete network virtual-wire
default default
<name> <name>

)# delete network virtual-wire default

[edit]

Where default is name of virtual wire.

 

In your case you need command  below

PA# delete network virtual-wire  "default-vwire"

Check the output of below command 

 

PA>show virtual-wire all

total virtual-wire shown : 0
flags : m - multicast firewalling
p - link state pass-through
s - vlan sub-interface
i - ip+vlan sub-interface
t - tenant sub-interface

name interface1 interface2 flags allowed-tags
--------------------------------------------------------------------------------

 

You should see none here if you have no virtual wire config in your PA.

 

Regards

 

MP
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!