Ensp模拟器 单臂路由

Ensp模拟器 单臂路由

一:实验要求:要使得VLAN10的PC1与VLAN20的PC2能PING通

二:所需设备:一台AR1220路由器,一台S3700交换机,两台PC机

三:实验拓扑:232138171.png

四:实验步骤

1.开启所有设备

2.给LSW1更改主机名为sw1

<Huawei>SYS

[Huawei]sysname sw1

[sw1]

2.给LSW1添加VLAN10 和 VLAN 20

<sw1>SYS //用户模式

[sw1]VLAN 10 //在特权模式下新建VLAN10

[sw1-vlan10] //进入VLAN10

[sw1-vlan10]VLAN 20 //新建VLAN20

[sw1-vlan20] //进入VLAN20

3.LSW1中将PC1加入VLAN 10 PC2加入VLAN 20

[sw1-vlan20]int e0/0/2

[sw1-Ethernet0/0/2]port link-type access

[sw1-Ethernet0/0/2]port default vlan 10

[sw1-Ethernet0/0/2]int e0/0/3

[sw1-Ethernet0/0/3]port link-type access

[sw1-Ethernet0/0/3]port default vlan 20

[sw1-Ethernet0/0/3]

查看VLAN10 VLAN20

[sw1-Ethernet0/0/3]dis vlan

反馈信息的一部分:

-----------------------------------------------------------------1 common UT:Eth0/0/1(U) Eth0/0/4(D) Eth0/0/5(D) 10 common UT:Eth0/0/2(U)

20 common UT:Eth0/0/3(U)

4.将GE0/0/1接口改成中继口

[sw1]int g0/0/1

[sw1-GigabitEthernet0/0/1]port link-type trunk

[sw1-GigabitEthernet0/0/1]port trunk allow-pass vlan all

5.在AR1中建立子接口0/0/0.1和0/0/0.2并配置网关及掩码

<Huawei>sys

[Huawei]int g0/0/0

[Huawei]undo shut

[Huawei]int g0/0/0.1

[Huawei-GigabitEthernet0/0/0.1]dot1q termination vid 10

[Huawei-GigabitEthernet0/0/0.1]ip add 192.168.10.1 24

[Huawei-GigabitEthernet0/0/0.1]int g0/0/0.2

[Huawei-GigabitEthernet0/0/0.2]dot1q termination vid 20

[Huawei-GigabitEthernet0/0/0.2]ip add 192.168.20.1 24

6.子接口开启ARP功能

[Huawei-GigabitEthernet0/0/0.2]arp broadcast enable

[Huawei-GigabitEthernet0/0/0.2]int g0/0/0.1

[Huawei-GigabitEthernet0/0/0.1]arp broadcast enable

7.验证:能使PC1 ping PC2

PC>ping 192.168.20.10


Ping 192.168.20.10: 32 data bytes, Press Ctrl_C to break

Request timeout!

From 192.168.20.10: bytes=32 seq=2 ttl=127 time=47 ms

From 192.168.20.10: bytes=32 seq=3 ttl=127 time=63 ms

From 192.168.20.10: bytes=32 seq=4 ttl=127 time=47 ms

From 192.168.20.10: bytes=32 seq=5 ttl=127 time=78 ms


--- 192.168.20.10 ping statistics ---

5 packet(s) transmitted

4 packet(s) received

20.00% packet loss

round-trip min/avg/max = 0/58/78 ms

实验完成

魏康平

2013101411:59:26


你可能感兴趣的:(路由器,主机,default,模拟器,交换机)