你好,可以详细告诉我cisco的三层交换机的配置吗 包括vlan的划分,和几个...

发布网友 发布时间:2024-10-21 13:52

我来回答

2个回答

热心网友 时间:5分钟前

3sw1#show run
Building configuration...

Current configuration : 1607 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname 3sw1
!
!
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
enable password aaaaa
!
!
!
ip routing
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/3
switchport access vlan 40
switchport mode access
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!

interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 11.11.11.254 255.255.255.0
!
interface Vlan20
ip address 11.11.12.254 255.255.255.0
!
interface Vlan30
ip address 11.11.13.254 255.255.255.0
!
interface Vlan40
ip address 11.11.14.254 255.255.255.0
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end

热心网友 时间:8分钟前

首先进入全局模式
config t
创建vlan
vlan 1
vlan 10
name --
vlan 20
name --
vlan 30
name --
给vlan配置IP
首先给交换机配置管理地址
interface vlan 1
ip address 192.168.1.1 255.255.255.224
interface vlan 10
ip address 192.168.2.1 255.255.255.0
interface vlan 20
ip address 192.168.3.1 255.255.255.0
interface vlan 30
ip address 192.168.4.1 255.255.255.0
三层交换机与上层连接设备看用的是什么协议
然后启用协议,应用协议

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com