CCNA实验3.单臂路由器

拓扑图:

imageimage

一.交换机配置

通过路由器子接口的方式实现vlan之间的路由.

conf t

vlan 10

vlan 20

int f0/1

switchport access vlan 10

int f0/2

switchport access vlan 20

查看switchport

show int switchport

image 

int f0/24

switchport mode trunk

二.路由器配置

int f0/0.1

encapsulation dot1Q 10

ip address 192.168.1.1 255.255.255.0

exit

int f0/0.2

RTA(config-subif)#encapsulation dot1Q 20

RTA(config-subif)#ip address 192.168.2.1 255.255.255.0

RTA(config-subif)#no sh

RTA(config-subif)#exit

int f0/0

no shutdown

原文地址:https://www.cnblogs.com/jjkv3/p/3788677.html