iptables -A OUTPUT -t mangle -p icmp -j MARK --set-mark 100
iptables -A POSTROUTING -t nat -p icmp -j SNAT --to-source 192.168.110.135
from all fwmark 0x64 lookup gw-a
from 192.168.210.6 lookup gw-d
from 192.168.110.135 lookup gw-a
# ip ro
default via 192.168.210.1 dev eth0
192.168.210.0/24 dev eth0 scope link src 192.168.210.6
192.168.110.128/26 dev eth1 scope link src 192.168.110.135
# ip ro sh table gw-a
default via 192.168.110.129 dev eth1
192.168.110.128/26 dev eth1 scope link src 192.168.110.135
# ip ro sh table gw-d
default via 192.168.210.1 dev eth0
192.168.210.0/24 dev eth0 scope link src 192.168.210.6
cat /etc/yum.repos.d/RHEL_7_Disc.repo
[RHEL_7_Disc]
name=RHEL_7_x86_64_Disc
baseurl="file:///media/rhel7-repo-iso/"
gpgcheck=0