Cisco to linux tunnel
思科的隧道默认是gre模式, 用tunnel mode ipip可以选择ipip模式
Cisco配置:
interface Tunnel0 ip address 172.16.1.1 255.255.255.0 ip tcp adjust-mss 1420 tunnel source 10.23.30.1 #tunnel mode ipip tunnel destination 10.23.30.206
linux下的操作:
linux下的操作: modprobe ip_gre iptunnel add tun0 mode gre remote 10.23.30.1 local 10.23.30.206 ttl 225 ifconfig tun0 172.16.1.2/24 ifconfig tun0 up ifconfig tun0 pointopoint 172.16.1.1 ifconfig tun0 multicast
思科隧道能玩的参数大致如下
tunnel bandwidth tunnel checksum tunnel destination tunnel endpoint service-policy output tunnel entropy tunnel key tunnel mode tunnel path-mtu-discovery tunnel rbscp ack_split tunnel rbscp delay tunnel rbscp input_drop tunnel rbscp long_drop tunnel rbscp report tunnel rbscp window_stuff tunnel route-via tunnel sequence-datagrams tunnel source tunnel tos tunnel ttl tunnel vrftunnel bandwidth tunnel checksum tunnel destination tunnel endpoint service-policy output tunnel entropy tunnel key tunnel mode tunnel path-mtu-discovery tunnel rbscp ack_split tunnel rbscp delay tunnel rbscp input_drop tunnel rbscp long_drop tunnel rbscp report tunnel rbscp window_stuff tunnel route-via tunnel sequence-datagrams tunnel source tunnel tos tunnel ttl tunnel vrf
none