Group :: Sistema/Servidores
RPM: gvpe
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
#!/bin/sh
# A script that will be called immediately after
# the network interface is initialized
# Configure VPN tap interface here, or use etcnet
# If using etcnet just quit:
exit 0
/sbin/ip link set $IFNAME address $MAC mtu $MTU up
[ $NODENAME = first ] && /sbin/ip addr add 10.0.1.1/24 dev $IFNAME
[ $NODENAME = second ] && /sbin/ip addr add 10.0.1.2/24 dev $IFNAME
[ $NODENAME = third ] && /sbin/ip addr add 10.0.1.3/24 dev $IFNAME
/sbin/ip route add 10.0.0.0/8 dev $IFNAME