码迷,mamicode.com
首页 > 其他好文 > 详细

ensp单臂路由学习笔记

时间:2016-06-27 17:49:21      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:interface   交换机   路由器   网络   拓扑图   

交换机vlan路由实验——单臂路由方式

 

技术分享

网络拓扑图:

路由器上的配置:

<R>system-view

[R]interface Ethernet 0/0/0.1

[R-Ethernet0/0/0.1]dot1q termination vid 10

[R-Ethernet0/0/0.1]ip address 192.168.1.1 255.255.255.0

[R-Ethernet0/0/0.1]q

 

[R]interface Ethernet 0/0/0.2

[R-Ethernet0/0/0.2]dot1q termination vid 20

[R-Ethernet0/0/0.2]ip address 192.168.2.1 255.255.255.0

[R-Ethernet0/0/0.2]q

 

[R]display ip interface brief

Interface                         IP Address/Mask      Physical   Protocol  

Ethernet0/0/0                     unassigned           up         down      

Ethernet0/0/0.1                   192.168.1.1/24       up         up        

Ethernet0/0/0.2                   192.168.2.1/24       up         up


交换机上的配置:

[S]interface GigabitEthernet 0/0/1

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

[S-GigabitEthernet0/0/1] port trunk allow-pass vlan 10 20

[S-GigabitEthernet0/0/1]q

 

[S]interface GigabitEthernet0/0/2

[S-GigabitEthernet0/0/2] port link-type access

[S-GigabitEthernet0/0/2] port default vlan 10

[S-GigabitEthernet0/0/2]q

 

[S]interface GigabitEthernet 0/0/3

[S-GigabitEthernet0/0/3]port link-type access

[S-GigabitEthernet0/0/3]port default vlan 20

[S-GigabitEthernet0/0/3]q

 技术分享

实验结果验证:PC1PC2之间可以ping

 技术分享

技术分享

ensp单臂路由学习笔记

标签:interface   交换机   路由器   网络   拓扑图   

原文地址:http://xiayuqiufeng.blog.51cto.com/11205598/1793289

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!