GRE VPN 实验
RT1 的配置:
%Jun 4 23:11:04:970 2011 H3C SHELL/4/LOGIN: Console login from con0
sys
System View: return to User View with Ctrl+Z.
[H3C]dis bri int
The brief information of interface(s) under route mode:
Interface Link Protocol-link Protocol type Main IP
Eth0/1/0 UP DOWN ETHERNET --
NULL0 UP UP(spoofing) NULL --
S0/2/0 UP UP PPP --
The brief information of interface(s) under bridge mode:
Interface Link Speed Duplex Link-type PVID
Eth0/4/0 DOWN auto auto access 1
Eth0/4/1 DOWN auto auto access 1
Eth0/4/2 DOWN auto auto access 1
Eth0/4/3 DOWN auto auto access 1
Eth0/4/4 DOWN auto auto access 1
Eth0/4/5 DOWN auto auto access 1
Eth0/4/6 DOWN auto auto access 1
Eth0/4/7 DOWN auto auto access 1
[H3C]int e0/1/0
[H3C-Ethernet0/1/0]ip add 10.1.1.1 24
[H3C-Ethernet0/1/0]
%Jun 4 23:11:35:354 2011 H3C IFNET/4/UPDOWN:
Line protocol on the interface Ethernet0/1/0 is UP
[H3C-Ethernet0/1/0]int s0/2/0
[H3C-Serial0/2/0]ip add 2.2.2.1 24
[H3C-Serial0/2/0]undo ip add
[H3C-Serial0/2/0]ip add 192.13.2.1 24
[H3C-Serial0/2/0]
%Jun 4 23:15:09:331 2011 H3C IFNET/4/UPDOWN:
Protocol PPP IPCP on the interface Serial0/2/0 is UP
[H3C-Serial0/2/0]
[H3C-Serial0/2/0]
[H3C-Serial0/2/0]int
[H3C-Serial0/2/0]intq
^
% Unrecognized command found at '^' position.
[H3C-Serial0/2/0]q
[H3C]int
[H3C]interface tu
[H3C]interface Tunnel 0
[H3C-Tunnel0]ip add 10.1.2.1 24
[H3C-Tunnel0]sou
[H3C-Tunnel0]source 192.13.2.1
[H3C-Tunnel0]de
[H3C-Tunnel0]des
[H3C-Tunnel0]destination131.108.5.2
^
% Unrecognized command found at '^' position.
[H3C-Tunnel0]destination 131.108.5.2
[H3C-Tunnel0]
%Jun 4 23:24:02:668 2011 H3C TUNNEL/4/LINK UPDOWN:
Tunnel0: link status is UP
%Jun 4 23:24:02:668 2011 H3C IFNET/4/UPDOWN:
Line protocol on the interface Tunnel0 is UP
[H3C-Tunnel0]
[H3C-Tunnel0]q
[H3C]ip ro
[H3C]ip route-static 10.1.3.0 24 tu
[H3C]ip route-static 10.1.3.0 24 Tunnel 0
[H3C]
RT0 的配置:
%Jun 4 23:09:46:857 2011 H3C SHELL/4/LOGIN: Console login from con0
sys
System View: return to User View with Ctrl+Z.
[H3C]dis bri int
The brief information of interface(s) under route mode:
Interface Link Protocol-link Protocol type Main IP
Eth0/1/0 UP DOWN ETHERNET --
NULL0 UP UP(spoofing) NULL --
The brief information of interface(s) under bridge mode:
Interface Link Speed Duplex Link-type PVID
Eth0/4/0 DOWN auto auto access 1
Eth0/4/1 DOWN auto auto access 1
Eth0/4/2 DOWN auto auto access 1
Eth0/4/3 DOWN auto auto access 1
Eth0/4/4 DOWN auto auto access 1
Eth0/4/5 DOWN auto auto access 1
Eth0/4/6 DOWN auto auto access 1
Eth0/4/7 DOWN auto auto access 1
[H3C]int e0/1/0
[H3C-Ethernet0/1/0]ip add 10.1.1.2 24
[H3C-Ethernet0/1/0]
%Jun 4 23:10:27:836 2011 H3C IFNET/4/UPDOWN:
Line protocol on the interface Ethernet0/1/0 is UP
[H3C-Ethernet0/1/0]
[H3C-Ethernet0/1/0]q
[H3C]ip ro
[H3C]ip route-static 10.1.3.0 24 10.1.1.1
RT2 的配置:
%Jun 4 23:11:46:339 2011 H3C SHELL/4/LOGIN: Console login from con0
sys
System View: return to User View with Ctrl+Z.
[H3C]dis bri int
The brief information of interface(s) under route mode:
Interface Link Protocol-link Protocol type Main IP
Eth0/1/0 UP DOWN ETHERNET --
NULL0 UP UP(spoofing) NULL --
S0/2/0 UP UP PPP --
The brief information of interface(s) under bridge mode:
Interface Link Speed Duplex Link-type PVID
Eth0/4/0 DOWN auto auto access 1
Eth0/4/1 DOWN auto auto access 1
Eth0/4/2 DOWN auto auto access 1
Eth0/4/3 DOWN auto auto access 1
Eth0/4/4 DOWN auto auto access 1
Eth0/4/5 DOWN auto auto access 1
Eth0/4/6 DOWN auto auto access 1
Eth0/4/7 DOWN auto auto access 1
[H3C]int e0/1/0
[H3C-Ethernet0/1/0]ip add 10.1.3.1 24
[H3C-Ethernet0/1/0]
%Jun 4 23:14:48:271 2011 H3C IFNET/4/UPDOWN:
Line protocol on the interface Ethernet0/1/0 is UP
[H3C-Ethernet0/1/0]int s0/2/0
[H3C-Serial0/2/0]ip add 131.108.5.2 24
[H3C-Serial0/2/0]
%Jun 4 23:15:09:361 2011 H3C IFNET/4/UPDOWN:
Protocol PPP IPCP on the interface Serial0/2/0 is UP
[H3C-Serial0/2/0]
[H3C-Serial0/2/0]q
[H3C]int
[H3C]interface tu
[H3C]interface Tunnel 0
[H3C-Tunnel0]ip add 10.1.2.2 24
[H3C-Tunnel0]so
[H3C-Tunnel0]source 131.108.5.2
[H3C-Tunnel0]de
[H3C-Tunnel0]des
[H3C-Tunnel0]destination 192.13.2.1
[H3C-Tunnel0]q
[H3C]i
%Jun 4 23:25:12:649 2011 H3C TUNNEL/4/LINK UPDOWN:
Tunnel0: link status is UP
%Jun 4 23:25:12:649 2011 H3C IFNET/4/UPDOWN:
Line protocol on the interface Tunnel0 is UP
[H3C]
[H3C]ip ro
[H3C]ip route-static 10.1.1.0 24 tu
[H3C]ip route-static 10.1.1.0 24 Tunnel 0
[H3C]
RT3 的配置:
%Jun 4 23:15:44:582 2011 H3C SHELL/4/LOGIN: Console login from con0
sys
System View: return to User View with Ctrl+Z.
[H3C]dis bei inr
^
% Unrecognized command found at '^' position.
[H3C]
[H3C]dis bri inr
^
% Ambiguous command found at '^' position.
[H3C]dis bri int
The brief information of interface(s) under route mode:
Interface Link Protocol-link Protocol type Main IP
Eth0/1/0 UP DOWN ETHERNET --
NULL0 UP UP(spoofing) NULL --
The brief information of interface(s) under bridge mode:
Interface Link Speed Duplex Link-type PVID
Eth0/4/0 DOWN auto auto access 1
Eth0/4/1 DOWN auto auto access 1
Eth0/4/2 DOWN auto auto access 1
Eth0/4/3 DOWN auto auto access 1
Eth0/4/4 DOWN auto auto access 1
Eth0/4/5 DOWN auto auto access 1
Eth0/4/6 DOWN auto auto access 1
Eth0/4/7 DOWN auto auto access 1
[H3C]int e0/1/0
[H3C-Ethernet0/1/0]ip add 10.1.3.2 24
[H3C-Ethernet0/1/0]
%Jun 4 23:16:12:682 2011 H3C IFNET/4/UPDOWN:
Line protocol on the interface Ethernet0/1/0 is UP
[H3C-Ethernet0/1/0]
[H3C-Ethernet0/1/0]ping 10.1.3.1
PING 10.1.3.1: 56 data bytes, press CTRL_C to break
Reply from 10.1.3.1: bytes=56 Sequence=1 ttl=255 time=10 ms
Reply from 10.1.3.1: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 10.1.3.1: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 10.1.3.1: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 10.1.3.1: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 10.1.3.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/2/10 ms
[H3C-Ethernet0/1/0]q
[H3C]ip ro
[H3C]ip route-static 10.1.1.0 24 10.1.3.1
[H3C]ping 10.1.1.2
PING 10.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=253 time=20 ms
Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=253 time=1 ms
Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=253 time=1 ms
Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=253 time=1 ms
Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=253 time=1 ms
--- 10.1.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/4/20 ms
[H3C]