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 81 Network diagram
Configuration procedure
Before the configuration, make sure Switch A and Switch B can reach each other.
Configure Switch A:
1.
# Configure interface VLAN-interface 100.
<SwitchA> system-view
[SwitchA] vlan 100
[SwitchA-vlan100] port Ten-GigabitEthernet 1/0/1
[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/0/2
[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 ]
184
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.