All pastes #252023 Raw Edit

Stuff

public text v1 · immutable
#252023 ·published 2006-11-18 23:30 UTC
rendered paste body
# Default Route to use (thisisalan in this case)
/sbin/ip route add default via 192.168.0.1

#eth2 (thisisalan) routes
/sbin/ip route add 192.168.0.0/24 dev eth2 src 192.168.0.110 table eth2
/sbin/ip route add default via 192.168.0.1 table eth2
/sbin/ip route add 192.168.0.0/24 dev eth2 src 192.168.0.110
/sbin/ip rule add from 192.168.0.1 table eth2

#eth1 (tlp) routes
/sbin/ip route add 192.168.1.0/24 dev eth1 src 192.168.1.110 table eth1
/sbin/ip route add default via 192.168.1.1 table eth1
/sbin/ip route add 192.168.1.0/24 dev eth1 src 192.168.1.110
/sbin/ip rule add from 192.168.1.1 table eth1

#eth0 (inet) (uses dhcp)
#using /etc/init.d/ifaceinfo.pl to grab info from ifconfig (for dhcp'd iface)
#$IP =`/etc/init.d/ifaceinfo.pl eth0 ip`
#$GW =`/etc/init.d/ifaceinfo.pl eth0 gw`
#/sbin/ip route add `/etc/init.d/ifaceinfo.pl eth0 gw`/27 dev eth0 src `/etc/init.d/ifaceinfo.pl eth0 ip` table eth0