Task
Display information about
tunnel interfaces.
Display IPv6 information about
tunnel interface.
GRE configuration examples
GRE over IPv4 configuration example
Network requirements
Switch A and Switch B are connected to the Internet running IPv4. Establish a GRE tunnel between the
switches to interconnect the two private IPv4 networks Group 1 and Group 2.
Figure 82 Network diagram
Switch A
XGE1/1/5
XGE1/1/7
Vlan-int100
10.1.1.1/24
IPv4
Group 1
Configuration procedure
Before the configuration, make sure Switch A and Switch B can reach each other.
1.
Configure Switch A:
# Configure interface VLAN-interface 100.
<SwitchA> system-view
[SwitchA] vlan 100
[SwitchA-vlan100] port Ten-GigabitEthernet 1/1/7
[SwitchA-vlan100] quit
[SwitchA] interface vlan-interface 100
[SwitchA-Vlan-interface100] ip address 10.1.1.1 255.255.255.0
[SwitchA-Vlan-interface100] quit
# Configure interface VLAN-interface 101.
[SwitchA] vlan 101
[SwitchA-vlan101] port Ten-GigabitEthernet 1/1/6
[SwitchA-vlan101] quit
[SwitchA] interface vlan-interface 101
[SwitchA-Vlan-interface101] ip address 1.1.1.1 255.255.255.0
[SwitchA-Vlan-interface101] quit
Command
display interface [ tunnel [ number ] ]
[ brief ]
display ipv6 interface [ tunnel
[ number ] ] [ brief ]
XGE1/1/6
Vlan-int101
1.1.1.1/24
Internet
GRE tunnel
Tunnel1
10.1.2.1/24
Service loopback port
XGE1/1/6
Switch B
Vlan-int101
2.2.2.2/24
XGE1/1/5
XGE1/1/7
Vlan-int100
Tunnel1
10.1.3.1/24
10.1.2.2/24
IPv4
Group 2
190
Remarks
For more information about this
command, see Layer 3—IP Services
Command Reference.
For more information about this
command, see Layer 3—IP Services
Command Reference.