HCIP------网络类型

在这里插入图片描述
在这里插入图片描述

The device is running!

sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sy r1
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
Jan 20 2021 15:02:25-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r1-GigabitEthernet0/0/0]int s4/0/0
[r1-Serial4/0/0]ip add 15.1.1.1 24
[r1-Serial4/0/0]q
[r1]ip rou
[r1]ip route
[r1]ip route-static 0.0.0.0 0 15.1.1.2
[r1]dhcp en
[r1]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[r1]ip pool 1
Info: It’s successful to create an IP address pool.
[r1-ip-pool-1]net
[r1-ip-pool-1]netbios-type
[r1-ip-pool-1]network 192.168.1.0 mask 24
[r1-ip-pool-1]ga
[r1-ip-pool-1]gateway-list 192.168.1.1
[r1-ip-pool-1]dns
[r1-ip-pool-1]dns-list 8.8.8.8
[r1-ip-pool-1]q
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]int g0/0/0
[r1-GigabitEthernet0/0/0]dhcp se
[r1-GigabitEthernet0/0/0]dhcp select gl
[r1-GigabitEthernet0/0/0]dhcp select global
[r1]ping 15.1.1.2
PING 15.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 15.1.1.2: bytes=56 Sequence=1 ttl=255 time=170 ms
Reply from 15.1.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 15.1.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 15.1.1.2: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 15.1.1.2: bytes=56 Sequence=5 ttl=255 time=50 ms

— 15.1.1.2 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/58/170 ms

[r1]int s4/0/0
[r1-Serial4/0/0]li
[r1-Serial4/0/0]link-protocol ppp
[r1-Serial4/0/0]ppp pap lo
[r1-Serial4/0/0]ppp pap local-user huawei pa
[r1-Serial4/0/0]ppp pap local-user huawei password ci
[r1-Serial4/0/0]ppp pap local-user huawei password cipher 123
[r1-Serial4/0/0]ip add 10.1.1.2 24
Jan 20 2021 15:21:50-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
IPCP on the interface Serial4/0/0 has entered the DOWN state.
[r1-Serial4/0/0]
Jan 20 2021 15:21:50-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
IPCP on the interface Serial4/0/0 has entered the UP state.
[r1-Serial4/0/0]
Jan 20 2021 15:21:50-08:00 r1 %%01RM/4/IPV4_DEFT_RT_CHG(l)[2]:IPV4 default Route
is changed. (ChangeType=Delete, InstanceId=0, Protocol=Static, ExitIf=Unknown,
Nexthop=15.1.1.2, Neighbour=0.0.0.0, Preference=1006632960, Label=NULL, Metric=0
)
[r1-Serial4/0/0]ping 10.1.1.1
PING 10.1.1.1: 56 data bytes, press CTRL_C to break
Reply from 10.1.1.1: bytes=56 Sequence=1 ttl=255 time=40 ms
Reply from 10.1.1.1: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 10.1.1.1: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 10.1.1.1: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 10.1.1.1: bytes=56 Sequence=5 ttl=255 time=20 ms

— 10.1.1.1 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/24/40 ms

[r1-Serial4/0/0]q
[r1]int tun0/0/0
[r1-Tunnel0/0/0]ip add 20.1.1.1 24
[r1-Tunnel0/0/0]tu
[r1-Tunnel0/0/0]tunnel-protocol gre
[r1-Tunnel0/0/0]tunnel-protocol gre
[r1-Tunnel0/0/0]so
[r1-Tunnel0/0/0]source 15.1.1.1
[r1-Tunnel0/0/0]de
[r1-Tunnel0/0/0]description
[r1-Tunnel0/0/0]destination 45.1.1.1
[r1]int tu0/0/0
[r1-Tunnel0/0/0]ip add 30.1.1.1 24
[r1-Tunnel0/0/0]tu
[r1-Tunnel0/0/0]tunnel-protocol gre p2
[r1-Tunnel0/0/0]so
[r1-Tunnel0/0/0]source 15.1.1.1
[r1-Tunnel0/0/0]nh
[r1-Tunnel0/0/0]nhrp en
[r1-Tunnel0/0/0]nhrp entry mu dy
[r1-Tunnel0/0/0]nhrp nt
[r1-Tunnel0/0/0]nhrp ne
[r1-Tunnel0/0/0]nhrp network-id 100
[r1]rip 1
[r1-rip-1]ver
[r1-rip-1]verify-source
[r1-rip-1]version 2
[r1-rip-1]undo su
[r1-rip-1]undo summary
[r1-rip-1]net
[r1-rip-1]network 192.168.1.0
[r1-rip-1]net
[r1-rip-1]network 10.0.0.0
[r1-rip-1]ne
[r1-rip-1]network 30.0.0.0
[r1-

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值