【实验】华三(H3C)路由器和交换机,静态路由与静态默认路由实验

如需注册 @ccie.engineer、@ccde.engineer、@ccar.engineer、@hcie.engineer、@rhce.engineer 和 @cissp.engineer 邮箱,请点击这里

实验环境:

操作系统:Windows 7 家庭高级版(当时最新正式版),模拟器:HCL 2.0.2.1(当时最新版本)

  • 路由器的型号是:H3C MSR36-20
  • 交换机的型号是:H3C S5820V2-54QS-GE
华三(H3C)路由器和交换机,静态路由与静态默认路由实验
华三(H3C)路由器和交换机,静态路由与静态默认路由实验

实验需求:

  • 在 SW1 上配置 int vlan 10 接口,并在 int vlan 10 接口下根据上图配置相应的  IP 地址,再将 GE_0/1 口划入 vlan 10,最后在 SW1 上配置一个指向 R1 的静态默认路由;
  • 根据上图,在 R1 的相应接口上配置相应的 IP 地址;
  • 根据上图,在 R2 的相应接口上配置相应的 IP 地址,最后在 R2 上配置一个指向 R1 的 10.0.0.0/8 网段的静态路由;
  • 最后,SW1 和 R2 之间能相互 ping 通。

实验步骤:

本实验主要涉及到的命令是:IPv4 地址的配置、VLAN 划分和静态路由,跟思科的命令大同小异,在此不做过多的描述。

SW1:

sys
hostname SW1

vlan 10
port g 1/0/1

int vlan 10
ip add 10.0.0.1 255.0.0.0
undo shutdown

ip route-static 0.0.0.0 0.0.0.0 10.0.0.2
R1:

sys
hostname R1

int g 0/1
ip add 10.0.0.2 255.0.0.0
shutdown
undo shutdown

int g 0/2
ip add 192.168.1.2 255.255.255.0
shutdown
undo shutdown
R2:

sys
hostname R2

int g 0/2
ip add 192.168.1.3 255.255.255.0
shutdown
undo shutdown

ip route-static 10.0.0.0 255.0.0.0 192.168.1.2

测试:

<SW1>ping 192.168.1.3
Ping 192.168.1.3 (192.168.1.3): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.3: icmp_seq=0 ttl=254 time=1.009 ms
56 bytes from 192.168.1.3: icmp_seq=1 ttl=254 time=1.114 ms
56 bytes from 192.168.1.3: icmp_seq=2 ttl=254 time=1.047 ms
56 bytes from 192.168.1.3: icmp_seq=3 ttl=254 time=0.764 ms
56 bytes from 192.168.1.3: icmp_seq=4 ttl=254 time=0.662 ms

--- Ping statistics for 192.168.1.3 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.662/0.919/1.114/0.175 ms
<SW1>%Jun 6 23:07:43:831 2017 SW1 PING/6/PING_STATISTICS: Ping statistics for 192.168.1.3: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.662/0.919/1.114/0.175 ms.

<SW1>
<R2>ping 10.0.0.1
Ping 10.0.0.1 (10.0.0.1): 56 data bytes, press CTRL_C to break
56 bytes from 10.0.0.1: icmp_seq=0 ttl=254 time=1.801 ms
56 bytes from 10.0.0.1: icmp_seq=1 ttl=254 time=1.934 ms
56 bytes from 10.0.0.1: icmp_seq=2 ttl=254 time=2.394 ms
56 bytes from 10.0.0.1: icmp_seq=3 ttl=254 time=1.189 ms
56 bytes from 10.0.0.1: icmp_seq=4 ttl=254 time=1.937 ms

--- Ping statistics for 10.0.0.1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 1.189/1.851/2.394/0.387 ms
<R2>%Jun 6 23:10:10:984 2017 R2 PING/6/PING_STATISTICS: Ping statistics for 10.0.0.1: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 1.189/1.851/2.394/0.387 ms.

<R2>

 

本文完。如有疑问,欢迎在下方留言;如本文有什么错误,欢迎在下方留言指正,谢谢。

打赏作者
这里是 “ CCIE 工程师社区 ” 官方的捐款通道,您是否可以考虑请我们喝杯咖啡呢?

您的支持将鼓励我们继续创作!

[微信] 扫描二维码打赏

[支付宝] 扫描二维码打赏

Was this article helpful?

Leave A Comment?

This site uses Akismet to reduce spam. Learn how your comment data is processed.