I have in linux envrioment:

1) firewall (

2) server1 (

3) server2 ubuntu (NIC1 - - NIC2 - - can customize)

4) device1 - - can customize

5) client (

I can acccess from client all thins except device1, serer2 can access device1

how I can confgure server2 to route nic2 traffic in same subnet and access it from client?


You need to use the ip route add command. The man page, many posts on this site and on other sites, will give you numerous examples.

# ip route add dev eth1 src table eth1
# ip route add default via dev eth1 table eth1


Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.