>>На linux: >> >>ip tunnel add ipip1 mode ipip local 91.144.150.13 remote 91.144.149.70 >>ifconfig ipip1 172.20.1.1 netmask 255.255.255.0 mtu 1400 >> >>На cisco: >> >>interface Tunnel0 >>ip address 172.20.1.2 255.255.255.0 >>ip mtu 1400 >>tunnel source Loopback0 >>tunnel destination 91.144.150.13 >>tunnel mode ipip >> >> >>Смотрим: >> >>Tunnel0 is up, line protocol is up >>Hardware is Tunnel >>Internet address is 172.20.1.2/24 >>MTU 1514 bytes, BW 9 Kbit, DLY 500000 usec, >>reliability 255/255, txload 1/255, rxload 1/255 >>Encapsulation TUNNEL, loopback not set >>Keepalive not set >>Tunnel source 91.144.148.70 (Loopback0), destination 91.144.150.13 >>Tunnel protocol/transport IP/IP >>Tunnel TTL 255 >>Fast tunneling enabled >> >>Пингуем: >> >>ping 172.20.1.1 >>Type escape sequence to abort. >>Sending 5, 100-byte ICMP Echos to 172.20.1.1, timeout is 2 seconds: >>!!!!! >>Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms >> >>Радуемся жизни. > >На линуксе: >ip tunnel add ipip1 mode ipip local 192.168.2.1 remote 192.168.1.1 >ifconfig ipip1 192.168.3.2 netmask 255.255.255.0 mtu 1514 > >eth0 Link encap:Ethernet HWaddr 00:0C:F1:6B:61:CE > inet addr:192.168.2.1 > Bcast:192.168.2.255 Mask:255.255.255.0 > inet6 addr: >fe80::20c:f1ff:fe6b:61ce/64 Scope:Link > UP BROADCAST >RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:2051 >errors:0 dropped:0 overruns:0 frame:0 > TX packets:86 >errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > > RX bytes:199589 >(194.9 Kb) TX bytes:11870 (11.5 Kb) > Interrupt:20 > >ipip1 Link encap:IPIP Tunnel HWaddr > inet addr:192.168.3.2 > P-t-P:192.168.3.2 Mask:255.255.255.0 > UP POINTOPOINT >RUNNING NOARP MTU:1514 Metric:1 > RX packets:262 >errors:0 dropped:0 overruns:0 frame:0 > TX packets:262 >errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > > RX bytes:22008 >(21.4 Kb) TX bytes:27248 (26.6 Kb) > >На циске: >interface Tunnel0 > ip address 192.168.3.1 255.255.255.0 > ip mtu 1514 > tunnel source 192.168.1.1 > tunnel destination 192.168.2.1 > tunnel mode ipip > >#show interfaces tunnel0 >Tunnel0 is up, line protocol is down > Hardware is Tunnel > Internet address is 192.168.3.1/24 > MTU 1514 bytes, BW 9 Kbit, DLY 500000 usec, > reliability 255/255, txload 1/255, rxload 1/255 > Encapsulation TUNNEL, loopback not set > Keepalive not set > Tunnel source 192.168.1.1, destination 192.168.2.1 > Tunnel protocol/transport IP/IP > Tunnel TTL 255 > > > >и совсем не радуемся жизни :( >тоже самое если маска /30 Глупы
|