Sheng Yang 2973ab5ef5 Enable multiply public ips for redundant router
Also solve duplicate mac issue.
2011-06-07 14:47:46 -07:00

8 lines
157 B
Plaintext

#!/bin/bash
ifconfig eth2 down && \
ifconfig eth2 hw ether [ETH2MAC] && \
ifconfig eth2 up && \
ip route add 0/0 via [GATEWAY] && \
service dnsmasq restart