新进化论

道生一,一生二,二生三,三生万物。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

拓扑图:

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

posted on 2014-06-14 20:53  岌岌可危  阅读(215)  评论(0编辑  收藏  举报