Solved [Solved] Cannot SSH since Failover implementation

Dear all,

I have a server with 4 network ports and I decided to use 2 of them and network failover.
To do this, I added the following in my /etc/rc.conf
Code:
cloned_interfaces="lagg0"
ifconfig_bce0="up"
ifconfig_bce1="up"
ifconfig_lagg0="laggproto failover laggport bce0 laggport bce1 192.168.0.121/24"

I tested it by unplugging the cable and it work as expected.
I latter realized that I was unable to access the server via ssh.
I have disabled the firewall with pfctl -d and I was still unable to access the server.

Here is my /etc/rc.conf file
Code:
### General Settings ###
zfs_enable="YES"
keymap="uk.iso"
sshd_enable="YES"
syslogd_enable="YES"
syslogd_flags="-ss"
moused_enable="NO"
dumpdev="NO"
rpc_bind_enable="NO"

### Time Synchronisation ###
openntpd_enable="Yes" # Synchronize The Local Clock
openntpd_flags="-s"

### FIREWALL - Packet filter configuration ###
pf_enable="YES"
pflog_enable="YES"
pflog_logfile="/var/log/pflog"
pf_rules="/etc/pf.conf"

### brute force attacks prevention ###
sshguard_enable="YES"
sshguard_safety_thresh="30"
sshguard_pardon_min_interval="600"
sshguard_prescribe_interval="7200"

### Local network configuration ###
hostname="trinity.trinitech.ltd"
#ifconfig_bce0="dhcp"
ifconfig_bce0="inet 192.168.0.121 netmask 255.255.255.0"
defaultrouter="192.168.0.1"

### lagg Failover Mode
cloned_interfaces="lagg0"
ifconfig_bce0="up"
ifconfig_bce1="up"
ifconfig_lagg0="laggproto failover laggport bce0 laggport bce1 192.168.0.121/24"

Could someone please help me to work out where I went wrong?

Thank you
Fred
 
Re: Cannot SSH since Failover implementation

Could someone please clarify something for me please.
At the moment (no failover), my network card is set as follow in my rc.conf file
Code:
### Local network configuration ###
hostname=”FreeBSD_ZFS”
ifconfig_bce0=”inet 192.168.0.121 netmask 255.255.255.0″
defaultrouter=”192.168.1.0″
What I would like to know is:
  • In the lagg setup, do I use the same IP address as the one I currently have for bce0 or a new one?
  • Do I need to set an IP for my 2nd NIC card (bce1)?
  • Do I need to delete the line below after the lagg is created
Code:
ifconfig_bce0=”inet 192.168.0.173 netmask 255.255.255.0″

Thank You in advance
 
Back
Top