R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide

22
<RouterB> system-view
[RouterB] interface GigabitEthernet 2/1/1
[RouterB-GigabitEthernet2/1/1] ip address 172.16.20.1 255.255.255.0
[RouterB-GigabitEthernet2/1/1] quit
# Configure interface Serial 2/1/1 to borrow an IP address from GigabitEthernet 2/1/1.
[RouterB] interface serial 2/1/1
[RouterB-Serial2/1/1] ip address unnumbered interface GigabitEthernet 2/1/1
[RouterB-Serial2/1/1] quit
# Create a route to the subnet attached to Router A, specifying interface Serial 2/1/1 as the
output interface.
[RouterB] ip route-static 172.16.10.0 255.255.255.0 serial 2/1/1
3. Ping a host attached to Router B from Router A to verify the configuration.
[RouterA] ping 172.16.20.2
PING 172.16.20.2: 56 data bytes, press CTRL_C to break
Reply from 172.16.20.2: bytes=56 Sequence=1 ttl=255 time=25 ms
Reply from 172.16.20.2: bytes=56 Sequence=2 ttl=255 time=25 ms
Reply from 172.16.20.2: bytes=56 Sequence=3 ttl=255 time=26 ms
Reply from 172.16.20.2: bytes=56 Sequence=4 ttl=255 time=26 ms
Reply from 172.16.20.2: bytes=56 Sequence=5 ttl=255 time=26 ms
--- 172.16.20.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 25/25/26 ms
The output shows that the host can be pinged.
Displaying and maintaining IP addressing
Task Command Remarks
Display IP configuration information
for a specific Layer 3 interface or all
Layer 3 interfaces.
display ip interface [ interface-type
interface-number ] [ | { begin | exclude |
include } regular-expression ]
Available in any view.
Display brief IP configuration
information for a specific Layer 3
interface or all Layer 3 interfaces.
display ip interface [ interface-type
[ interface-number ] ] brief [ description ] [ |
{ begin | exclude | include }
regular-expression ]
Available in any view.