[root@idc]cat start_gre.sh #!/bin/bash modprobe ip_gre ip tunnel add netb mode gre remote 218.66.B.45 local 222.77.A.72 ttl 255 ip link set netb up ip addr add 10.59.96.72 dev netb ip route add 10.5.0.0/16 dev netb ip route add 10.59.97.0/24 dev netb
[root@idc]cat stop_gre.sh #!/bin/bash ip link set netb down ip tunnel del netb
|