2、 3550上创建vlan10与vlan20
时间: 2024-05-07 21:21:44 浏览: 19
要在3550上创建VLAN10和VLAN20,可以按照以下步骤进行操作:
1. 进入3550的全局配置模式:
```
enable
configure terminal
```
2. 创建VLAN10:
```
vlan 10
name VLAN10
```
3. 创建VLAN20:
```
vlan 20
name VLAN20
```
4. 配置端口与VLAN的关联关系,比如将端口1和2分别加入VLAN10和VLAN20:
```
interface fastethernet 0/1
switchport mode access
switchport access vlan 10
exit
interface fastethernet 0/2
switchport mode access
switchport access vlan 20
exit
```
5. 保存配置:
```
end
copy running-config startup-config
```
这样就成功地在Cisco 3550交换机上创建了VLAN10和VLAN20,并且将端口1和2分别与它们关联起来。
相关问题
思科上怎么创建vlan10并命名为teacher
在思科交换机上创建 VLAN 10 并命名为 teacher,可以按照以下步骤进行:
1. 进入交换机的全局配置模式:
```
switch# configure terminal
```
2. 创建 VLAN 10:
```
switch(config)# vlan 10
```
3. 给 VLAN 10 命名为 teacher:
```
switch(config-vlan)# name teacher
```
4. 退出 VLAN 配置模式:
```
switch(config-vlan)# exit
```
5. 保存配置:
```
switch# copy running-config startup-config
```
这样,就成功地在思科交换机上创建了 VLAN 10 并命名为 teacher。
创建vlan10和vlan
创建 VLAN 10 和 VLAN 20 可以通过以下步骤完成:
1. 进入交换机的配置模式:
```
configure terminal
```
2. 创建 VLAN 10:
```
vlan 10
```
3. 分配 VLAN 10 到指定端口(例如端口 1-10):
```
interface range GigabitEthernet 1/0/1-10
switchport mode access
switchport access vlan 10
```
4. 创建 VLAN 20:
```
vlan 20
```
5. 分配 VLAN 20 到指定端口(例如端口 11-20):
```
interface range GigabitEthernet 1/0/11-20
switchport mode access
switchport access vlan 20
```
6. 保存配置并退出配置模式:
```
end
write
```
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)