重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

单臂路由的设置

单臂路由的设置
第一步:先划分vlan
命令:
在config(全局)模式下:vlan + vlan的id(纯数字(数字的范围2-------1000))
sw#conf t
sw(config)#vlan 10,20
sw(config-vlan)#e
第二步:将接口划分到对应的vlan

网站建设哪家好,找创新互联建站!专注于网页设计、网站建设、微信开发、重庆小程序开发公司、集团企业网站建设等服务项目。为回馈新老客户创新互联还提供了无锡免费建站欢迎大家使用!

命令:
1、先进入接口:int +要进入的接口编号(点击绿点就可以看到)
2、config-if(接口模式)sw+tab + ac + tab + vlan + 你要规划的 vlan的编号(让这个接口属于哪个vlan)
sw(config)#int f1/3
sw(config-if)#sw
sw(config-if)#switchport a
sw(config-if)#switchport access vlan 10
sw(config-if)#int f1/2
sw(config-if)#sw
sw(config-if)#switchport a
sw(config-if)#switchport access vlan 20
第三步:打开truck口
命令:
1、先进入接口:int +要进入的接口编号(点击绿点就可以看到)
2、config-if(接口模式)sw + tab + mo+ tab + t+tab
sw(config)#int f1/1
sw(config-if)#sw
sw(config-if)#switchport mo
sw(config-if)#switchport mode t
sw(config-if)#switchport mode trunk
第四步:分装配置ip
命令:
1、在config(全局模式)进入的接口模式:int +要进入的接口编号(点击绿点就可以看到)
2、打开这个物理接口 no shut
3、回到config模式,进入逻辑子接口 int + 接口.1(有个按顺序排从1开始)
4.输入要用什么协议封装 en + tab + d +tab + 选择封装的vlan 的编号
5.配置网关 ip add + 配置的网关 + 子网掩码
R1(config)#int f0/0
R1(config-if)#no shut
R1(config-if)#e
R1(config)#int f0/0.1
R1(config-subif)#en
R1(config-subif)#encapsulation d
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip add 192.168.10.1 255.255.255.0
R1(config-subif)#e
R1(config)#int f0/0.2
R1(config-subif)#en
R1(config-subif)#encapsulation d
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#
只有封装了在通过路由器才可以跨网段通信。
Ping通断
单臂路由的设置
单臂路由的设置


本文名称:单臂路由的设置
本文来源:http://cqcxhl.cn/article/pococd.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP