这个实验是在思科模拟器上操作完成的,拓扑图如下:
R1#configure terminal R1(config)#interface fastethernet 0/0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface fastethernet 0/0.1 R1(config-subif)#encapsulation dot1Q 10 R1(config-subif)#ip add 10.1.1.1 255.255.255.0 R1(config-subif)#no shutdown R1(config-subif)#exit R1(config)#interface fastethernet 0/0.2 R1(config-subif)#encapsulation dot1Q 20 R1(config-subif)#ip add 20.2.2.2 255.255.255.0 R1(config-subif)#no shutdown R1(config-subif)#exit R1(config)#ip dhcp pool vlan10 R1(dhcp-config)#network 10.1.1.0 255.255.255.0 R1(dhcp-config)#default-router 10.1.1.1 R1(dhcp-config)#exit R1(config)#ip dhcp pool vlan20 R1(dhcp-config)#network 20.2.2.0 255.255.255.0 R1(dhcp-config)#default-router 20.2.2.2 R1(dhcp-config)#dns-server 8.8.8.8 R1(dhcp-config)#exit 交换机SW1配置: SW1#vlan database SW1(vlan)#vlan 20 name vlan20 SW1(vlan)#exit SW1#configure terminal SW1(config)#interface fastethernet 0/2 SW1(config-if)#switchport access vlan 10 SW1(config-if)#exit SW1(config)#interface fastethernet 0/3 SW1(config-if)#switchport access vlan 20 SW1(config-if)#exit SW1(config)#interface fastethernet 0/1 SW1(config-if)#switchport mode trunk 至此,这个实验就大功告成了。这个算是比较简单的,初学者可以自己动手用cisco模拟器来完成这个单臂路由配置。 |
不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流
GMT+8, 2024-5-20 19:07 , Processed in 0.139477 second(s), 15 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.