On the presumption this is a real life problem and you can't reconfigure anything on the two sensors nor are they configured to use a router. And also assuming the sensors are configured as /24 (you don't actually say this).
- reduce the subnet mask on the host to /23 or smaller
- Assign addresses on the host in both subnets.
Of course you end up with mismatched subnets: the host considers the network to be /23, while the two sensors consider themselves to be in two non-overlapping /24 networks. This situation is to be avoided if you can possibly help it: all kinds of trouble can ensue. But if you have a practical problem, sometimes you have to be pragmatic. I'd consider this to be okay if you're taking final backups from something you're taking out of service, but just to repeat, try hard to ensure it's temporary.
Sensor A IP: 192.168.0.80
Sensor B IP: 192.168.1.201
Concretely for Unix-like systems including Ubuntu, assuming an ether interface eth0
:
ifconfig eth0 192.168.0.1 netmask 255.255.254.0
ifconfig eth0:1 192.168.1.1 netmask 255.255.254.0
For a Cisco router to be in both subnets, assuming interface Ethernet0
:
interface Ethernet0
ip address 192.168.0.1 255.255.254.0
ip address 192.168.1.1 255.255.254.0 secondary