Monday, July 6, 2015

Host Based Routing

# ip route add 192.168.0.125/24 via 192.168.0.1 dev eth0:1 src 192.168.1.20

here,
192.168.0.125/24   ->> Dest host
/24   --->>  Netmask
192.168.0.1  --->>   default router for the network
eth0:1    --->>  Network Interface
192.168.1.20  -->>   source route

No comments:

Post a Comment