misc-scripts/routers/share/activate.sh

16 lines
278 B
Bash
Raw Normal View History

2012-07-29 11:34:35 +02:00
#!/bin/bash
#
# Example router activation script
#
# 1/ Remove default route through peer
# 2/ Take active router address
# 3/ Activate PPP link
# 4/ Wait for a few seconds
#
ip route del default via 192.168.1.1 dev eth0
ip addr add 192.168.1.1/24 dev eth0
ifup ppp0
sleep 10