子网划分器代码 通过子网掩码划分子网( 二 )
——- ——— —————– ——————————————
Switch#conf t 从特权模式转到全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10 创建VLAN 10
Switch(config-vlan)#name vlan10 给新建的VLAN命名
Switch(config-vlan)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#conf t 进入全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int f0/1 进入端口1
Switch(config-if)#sw mo ac 初始化端口
Switch(config-if)#sw ac vlan 10 将端口1加入VLAN 10
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#conf t 进入全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 20 创建VLAN 20
Switch(config-vlan)#name vlan20
Switch(config-vlan)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int f0/2 进入端口2
Switch(config-if)#sw mo ac 初始化端口
Switch(config-if)#sw ac vlan 20 将端口2加入VLAN 20
Switch(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 30 创建VLAN 30
Switch(config-vlan)#name vlan30
Switch(config-vlan)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int f0/3 进入端口3
Switch(config-if)#sw mo ac 初始化端口
Switch(config-if)#sw ac vlan 30 将端口3加入VLAN 30
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sh vlan
VLAN Name Status Ports
—- ——————————– ——— ——————————-
1 default active Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/11
Fa0/12, Fa0/13, Fa0/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24, Gig0/1, Gig0/2
10 vlan10 active Fa0/1
20 vlan20 active Fa0/2
30 vlan30 active Fa0/3
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
【子网划分器代码 通过子网掩码划分子网】结语:好了,以上就是基于IP地址和基于端口两种常用子网划分方法的具体介绍 。
- ipod是啥
- 幼儿生长发育过程中年龄阶段的划分是什么
- 近代现代当代是怎么划分的
- 电暖气哪种好 哪种电暖器质量好
- ie浏览器缓存文件在哪里
- 1KW的电机要用多少安的断路器
- 磬和罄的区别
- 热水器开关在哪
- 1981年的几岁属什么
- 瓷器的种类
