run control(no route to host error)
rc
denotes "run-control",vi /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
echo 1 > /proc/sys/net/ipv4/tcp_syncookies
ifconfig em1 115.112.176.43 netmask 255.255.255.192
route add default gw 115.112.176.1
/sbin/ifconfig em1:1 115.112.176.44 netmask 255.255.255.192
/sbin/ifconfig em1:2 115.112.176.45 netmask 255.255.255.192
/sbin/ifconfig em1:4 115.112.176.57 netmask 255.255.255.192
#/sbin/ifconfig em2 192.168.2.43 netmask 255.255.255.0
/sbin/ifconfig em1:5 115.112.176.23 netmask 255.255.255.192
/sbin/ifconfig em1:6 115.112.176.33 netmask 255.255.255.192
/sbin/ifconfig em1:7 115.112.176.51 netmask 255.255.255.192
/sbin/ifconfig em1:8 192.168.2.43 netmask 255.255.255.0
/bin/sh /home/sas/timepass.sh
/usr/bin/rsync --daemon
#/usr/bin/spamd -d -c -m 10 -4
/usr/local/sbin/clamd &
/bin/mount /dev/sdb /allbackup
#########no route to host is caused due to firewall loading the default one you need to add your iptables file location in rc.local file
Comments
Post a Comment