SHOW:
|
|
- or go back to the newest paste.
1 | - | #!/bin/bash |
1 | + | #!/bin/sh -e |
2 | - | # Adding Virtual IP |
2 | + | # |
3 | - | modprobe ipv6 |
3 | + | # rc.local |
4 | - | ip tunnel add he-ipv6 mode sit remote 209.51.181.2 local 192.168.1.200 ttl 255 |
4 | + | # |
5 | - | ip link set he-ipv6 up |
5 | + | # This script is executed at the end of each multiuser runlevel. |
6 | - | ip addr add 2001:470:1f10:6cc::2/64 dev he-ipv6 |
6 | + | # Make sure that the script will "exit 0" on success or any other |
7 | - | ip route add ::/0 dev he-ipv6 |
7 | + | # value on error. |
8 | - | ip -f inet6 addr |
8 | + | # |
9 | - | ip addr add 2001:470:1f10:6cc::3/64 dev he-ipv6 |
9 | + | # In order to enable or disable this script just change the execution |
10 | - | ip addr add 2001:470:1f10:6cc::4/64 dev he-ipv6 |
10 | + | # bits. |
11 | - | echo IPv6 has been added at $(date) >> /home/testuser/ipv6-status |
11 | + | # |
12 | - | & |
12 | + | # By default this script does nothing. |
13 | /home/testuser/scripts/batch03/ | |
14 | exit 0 |