已阅读5页,还剩17页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
一 标识交换机 二 设置口令及用户 三 配置 VTP Vlan 中继协议 四 配置中继线 Trunk 五 创建 描述 Vlan 及设置 Vlan IP 六 划分 描述及设置 Vlan 端口 七 配置 STP 生成树协议 八 启用 Vlan 间 Router 九 配置 ACL 十 配置 DHCP 中继代理 十一 配置 DHCP 服务器 十二 配置 HSRP 热备路由协议 十三 保存配置 附 1 命令行编辑键 附 2 SHOW 命令 附 7 ACL 例子 一 标识交换机 Switch configure terminal 进入配置状态 Switch config hostname hostname 设置 Switch 名称 Switch config no hostname 取消 Switch 名称 Switch config end 结束本次配置 二 设置口令及用户 Switch configure terminal 进入配置状态 Switch config enable secret password 设置特权模式口令 Switch config no enable secret 取消特权模式口令 Switch config enable password password 设置 EXEC 模式口令 Switch config no enable password 取消 EXEC 模式口令 witch config username username privilege num secret password 建立本地用户 及口令 Switch config no username username 删除本地用户 Switch config service password encryption 加密所有明文口令 Switch config no service password encryption 拒绝加密所有明文口令 Switch config end 结束本次配置 1 配置 console 用户用口令 Switch configure terminal 进入配置状态 Switch config line console 0 进入 console 口配置状态 Switch config line login local 设置登录模式为本地用户验证模式 Switch config line no login local 取消本地用户验证模式 Switch config line end 结束本次配置 或 Switch configure terminal 进入配置状态 Switch config line console 0 进入 console 口配置状态 Switch config line login 设置登录模式为线性登录模式 Switch config line password password 设置线性登录模式口令 Switch config line no login 取消线性登录模式 Switch config line end 结束本次配置 2 配置 tenlnet vty 用户及口令 Switch configure terminal 进入配置状态 Switch config line vty 0 15 进入 vty 配置状态 Switch config line login local 设置登录模式为本地用户验证模式 Switch config line no login local 取消本地用户验证模式 Switch config line end 结束本次配置 或 Switch configure terminal 进入配置状态 Switch config line vty 0 15 进入 vty 配置状态 Switch config line login 设置登录模式为线性登录模式 Switch config line password password 设置线性登录模式口令 Switch config line no login 取消线性登录模式 Switch config line end 结束本次配置 三 配置 VTP Vlan 中继协议 Switch vlan database 进入 vlan 数据库配置状态 Switch vlan vtp domain domainname 设置 vtp 域名称 Switch vlan vtp server client transparent 设置 vtp 模式 Switch vlan vtp password password 设置 vtp 口令 Switch vlan no vtp password 取消 vtp 口令 Switch vlan exit 退出 vlan 数据库配置状态 四 配置 trunk 中继线 Switch configure terminal 进入配置状态 Switch config interface interface mod port 进入端口配置状态 Switch config if switchport trunk encapsulation dot1q isl negotiate 设置干道封装模式 Switch config if switchport mode trunk 设置端口为干道模式 Switch config if no shutdown 启用端口 Switch config if end 结束本次配置 或 Switch configure terminal 进入配置状态 Switch config interface range interface mod port port 进入端口组配置状态 Switch config if range switchport trunk encapsulation dot1q isl negotiate 设置干道封装模式 Switch config if range switchport mode trunk 设置端口为干道模式 Switch config if range no shutdown 启用端口 Switch config if range end 结束本次配置 五 创建 描述 Vlan 及设置 Vlan IP Switch vlan database 进入 vlan 数据库配置状态 Switch vlan vlan vlan num name vlan name 建立 vlan 及名称 Switch vlan no vlan vlan num 删除 vlan Switch vlan exit 退出 vlan 数据库配置状态 Switch configure terminal 进入配置状态 Switch config interface vlan vlan num 进入 vlan 配置状态 Switch config if description description 描述 vlan Switch config if no description 取消描述 Switch config if ip address ip address subnet mask 设置 vlan 网关的 ip 地址 Switch config if no shutdown 启用 vlan Switch config if end 结束本次配置 六 划分 描述及设置 Vlan 端口 Switch configure terminal 进入配置状态 Switch config interface interface mod port 进入端口配置状态 Switch config if description description 描述端口 Switch config if speed auto 100 10 设置端口速率模式 Switch config if duplex auto full half 设置端口双工模式 Switch config if switchport mode access 设置端口为访问模式 Switch config if switchport access vlan vlan num 设置端口所属 Vlan Switch config if no shutdown 启用端口 Switch config if end 结束本次配置 或 Switch configure terminal 进入配置状态 Switch config interface range interface mod port port 进入端口组配置状态 Switch config if range description description 描述端口 Switch config if range speed auto 100 10 设置端口速率模式 Switch config if range duplex auto full half 设置端口双工模式 Switch config if range switchport mode access 设置端口为访问模式 Switch config if range switchport access vlan vlan num 设置端口所属 Vlan Switch config if range no shutdown 启用端口 Switch config if range end 结束本次配置 七 配置 STP 生成树协议 Switch configure terminal 进入配置状态 Switch config spanning tree portfast default 设置所有访问端口为快速模式 Switch config no spanning tree portfast default 取消所有访问端口为快速模式 Switch config spanning tree uplinkfast 设置上行端口为快速模式 Switch config no spanning tree uplinkfast 取消上行端口为快速模式 Switch config end 结束本次配置 或 Switch configure terminal 进入配置状态 Switch config interface interface mod port 进入端口配置状态 Switch config if spanning tree portfast 设置端口为快速模式 Switch config if no shutdown 启用端口 Switch config if end 结束本次配置 或 Switch configure terminal 进入配置状态 Switch config interface range interface mod port port 进入端口组配置状态 Switch config if range spanning tree portfast 设置端口为快速模式 Switch config if range no shutdown 启用端口 Switch config if range end 结束本次配置 八 启用 Vlan 间 Router Switch configure terminal 进入配置状态 Switch config ip routing 启用 ip 路由 Switch config ip route Destination prefix Destination prefix mask Forwarding router s address Switch config end 结束本次配置 九 配置 ACL Switch configure terminal 进入配置状态 Switch config access list standard acl num permit deny source address source wildcard 设置标准 acl Switch config access list extend acl num permit deny ip source add source wildcard Destination add Destination wildcard 设置扩展 acl Switch config end 结束本次配置 Switch configure terminal 进入配置状态 Switch config interface vlan vlan num 进入 vlan 配置状态 Switch config if ip access group acl num in out 应用 acl 到 vlan Switch config if end 结束本次配置 Switch configure terminal 进入配置状态 Switch config line vty 0 15 进入 vty 配置状态 Switch config line access class acl num in out 应用 acl 到 vty Switch config if end 结束本次配置 例 Switch config access list 101 deny ip host 192 168 2 11 host 192 168 10 21 Switch config access list 102 deny ip host 192 168 2 13 192 168 10 0 0 0 0 255 Switch config access list 103 deny ip 192 168 2 0 0 0 0 255 192 168 10 0 0 0 0 255 Switch config access list 104 deny ip 192 168 2 0 0 0 0 255 host 192 168 10 25 十 配置 DHCP 中继代理 Switch configure terminal 进入配置状态 Switch config service dhcp 启用 dhcp 服务 Switch config ip dhcp relay information option 启用 dhcp 代理服务 Switch config interface vlan vlan num 进入 vlan 配置状态 Switch config if ip helper address ip address 启用 dhcp 代理服务器 ip 地址 Switch config if end 结束本次配置 十一 配置 DHCP 服务器 Switch configure terminal 进入配置状态 Switch config ip dhcp pool Pool name 设置 dhcp 地址池名称 Switch dhcp config network Network num Network mask 设置 dhcp 地址池 ip 范围 Switch dhcp config dns server ip address 为客户机分配 DNS 服务器 ip 地址 Switch dhcp config netbios name server ip address 为客户机分配 WINS 服务器 ip 地址 Switch dhcp config default router ip address 为客户机分配默认网关 ip 地址 Switch config if end 结束本次配置 Switch configure terminal 进入配置状态 Switch config service dhcp 启用 dhcp 服务 wyz config ip dhcp excluded address Low ip address High ip address 设置保留 ip 地址 Switch config if end 结束本次配置 十二 配置 HSRP 热备路由协议 Switch configure terminal 进入配置状态 Switch config interface vlan vlan num 进入 vlan 配置状态 Switch config if ip address ip address subnet mask 设置 vlan 物理 ip 地址 Switch config if standby group num ip virtual ip address 设置 vlan 虚拟 ip 地址 Switch config if standby priority Priority value 设置路由器优先等级 Switch config if standby preempt 设置 hsrp 抢占功能 Switch config if standby timers Hello interval in seconds Hold time in seconds 设置 hello 信息 Switch config if end 结束本次配置 十三 保存配置 Switch write memory 或 Switch copy running config startup config 附附 1 1 命令行编辑键 命令行编辑键 TAB 补全命令 查看可用命令 Ctrl P 粘贴历史命令 Ctrl E 将光标移至命令末尾 Ctrl F 将光标向前移动 Ctrl B 将光标向后移动 Ctrl Z 返回 命令模式 Ctrl U Clear Line and Put in Buffer Ctrl W Delete Word Backwards and Put in Buffer Ctrl Y Paste Buffer Contents Ctrl X Clear Line to the Left and Put in Buffer Ctrl T Flip Last 2 Characters Ctrl J Return Ctrl L Refresh Line Ctrl I Refresh Line and Goto End Ctrl K Delete everything on the Right of cursor Ctrl V Allows to type control character Ctrl M Return Ctrl H Backspace Character to the Left Ctrl R 刷新行 附附 2 2 SHOWSHOW 命令命令 Switch show version 显示版本信息 Switch show arp include ip address 显示 ip 地址对应的 mac 地址信息 Switch show mac address table 显示 mac 地址信息 Switch show mac address table include mac address 格式 xxxx xxxx xxxx xxxx Switch show mac address table dynamic address mac address 显示 mac 地址对应 的端口信息 Switch show mac address table dynamic interface interface mod port 显示端口 对应的 mac 地址信息 Switch show tech support 显示技术支持信息 Switch show interfaces 显示接口信息 Switch show vlan 显示 vlan 信息 Switch show startup config 显示启用配置文件 Switch show running config 显示运行配置文件 Switch show ip route 显示 ip 路由状态 Switch clear counters interface interface mod port 清除端口计数器 Switch config default interface interface mod port 恢复端口出厂设置 Switch clear interface interface mod port 重置端口的硬件逻辑 keyada show cdp neighbors interface mod port detail 附 7 ACL 例子 VLAN1 需实现以下效果 1 VLAN1 主机 192 168 1 240 可以访问所有网段 2 VLAN1 其余主机可以访问除 VLAN2 VLAN3 及 VLAN4 外所有网段 VLAN2 需实现以下效果 1 VLAN2 网段只可访问 VLAN3 中的 192 168 3 126 主机 但不能访问 VLAN3 中其它主机 2 VLAN2 网段可以访问除 VLAN1 VLAN3 及 VLAN4 外所有网段 VLAN3 需实现以下效果 1 VLAN3 主机 192 168 3 126 可以访问所有网段 2 VLAN3 其余主机不能访问所有网段 VLAN4 需实现以下效果 1 VLAN4 网段只可访问 VLAN2 网段 interface Vlan1 ip address 192 168 1 1 255 255 255 0 ip access group 101 in interface Vlan2 ip address 192 168 2 1 255 255 255 0 ip access group 102 in interface Vlan3 ip address 192 168 3 1 255 255 255 0 ip access group 103 in interface Vlan4 ip address 192 168 4 1 255 255 255 0 ip access group 104 in access list 101 permit ip host 192 168 1 240 any access list 101 deny ip 192 168 1 0 0 0 0 255 192 168 2 0 0 0 0 255 access list 101 deny ip 192 168 1 0 0 0 0 255 192 168 3 0 0 0 0 255 access list 101 deny ip 192 168 1 0 0 0 0 255 192 168 4 0 0 0 0 255 access list 101 permit ip any any access list 102 permit ip 192 168 2 0 0 0 0 255 host 192 168 3 126 access list 102 deny ip 192 168 2 0 0 0 0 255 192 168 3 0 0 0 0 255 access list 102 permit ip any any access list 103 permit ip host 192 168 3 126 any access list 103 deny ip any any access list 104 permit ip 192 168 4 0 0 0 0 255 192 168 2 0 0 0 0 255 access list 104 deny ip any any Switch config interface port channel 2 Switch config interface range fastEthernet 0 23 24 Switch config if range channel group 2 mode desirable Cisco 3560 配置 DHCP Relay 实例 2010 08 31 09 04 网络环境 一台 3560 交换机 划分 三个 vlan vlan2 为服务器所在网络 命名为 server IP 地址段为 192 168 2 0 子网掩码 255 255 255 0 网关 192 168 2 1 域服务器为 windows2000advanceserver 同时兼作 DHCP 服务器 DNS 服务器 IP 地址为 192 168 2 10 vlan3 为客户机 1 所在网络 IP 地址段为 192 168 3 0 子网掩码 255 255 255 0 网关 192 168 3 1 命名为 work01 vlan4 为客户机 2 所在网络 命名为 work02 IP 地址段为 192 168 4 0 子网掩码 255 255 255 0 网关 192 168 4 1 3560 上端口 1 8 划到 VLAN2 端口 9 16 划分到 VLAN3 端口 17 24 划分到 VLAN4 配置命令及步骤如下 第一步 创建 VLAN Switch VlanDatabase Switch Vlan Vlan2Nameserver Switch Vlan Vlan3Namework01 Switch vlan Vlan4Namework02 第二步 启用 DHCP 中继代理 关键一步 若缺少以下两条命令 在 VLAN 中使用 IPHELPER ADDRESSDHCP 服务器 地址 指定 DHCP 服务器 客户机仍然不能获得 IP 地址 Switch Enable Switch Configt Switch Config ServiceDhcp Switch Config IpDhcpRelayInformationOption 第三步 设置 VLANIP 地址 Switch Config IntVlan2 Switch Config vlan IpAddress192 168 2 1255 255 255 0 Switch Config vlan NoShut Switch Config vlan IntVlan3 Switch Config vlan IpAddress192 168 3 1255 255 255 0 Switch Config vlan NoShut Switch Config vlan IntVlan4 Switch Config vlan IpAddress192 168 4 1255 255 255 0 Switch Config vlan NoShut Switch Config vlan Exit 注意 由于此时没有将端口分配置到 VLAN2 3 4 所以各 VLAN 会 DOWN 掉 待将 端口分配到各 VLAN 后 VLAN 会起来 第四步 设置端口全局参数 Switch Config InterfaceRangeFa0 1 24 Switch Config if range SwitchportModeAccess Switch Config if range Spanning treePortfast 第五步 将端口添加到 VLAN2 3 4 中 将端口 1 8 添加到 VLAN2 Switch Config InterfaceRangeFa0 1 8 Switch Config if range SwitchportAccessVlan2 将端口 9 16 添加到 VLAN3 Switch Config InterfaceRangeFa0 9 16 Switch Config if range SwitchportAccessVlan3 将端口 17 24 添加到 VLAN4 Switch Config InterfaceRangeFa0 17 24 Switch Config if range SwitchportAccessVlan4 Switch Config if range Exit 经过这一步后 各 VLAN 会起来 第六步 在 VLAN3 和 4 中设定 DHCP 服务器地址 VLAN2 中不须指定 DHCP 服务器地址 Switch Config IntVlan3 Switch Config vlan IpHelper address192 168 2 10 Switch Config IntVlan4 Switch Config vlan IpHelper address192 168 2 10 第七步 启用路由 路由启用后 各 VLAN 间主机可互相访问 若需进一步控制访问权限 则需应用到访问 控制列表 Switch Config IpRouting 第八步 结束并保存配置 Switch Config vlan End Switch CopyRunStart 思科思科 35603560 基本配置命令基本配置命令 我这个是 24 口的 3560 三层交换机 他负责拨号 下面连接了 20 台二层交换机 我已经配置了密码和 vlan 但是很长时间不配了 大部分都忘记了 求好心人给我一份完 整的基本配置命令 最好有 adsl 拨号和内部地址转换 非常感谢 最佳答案 cisco 3560 三层交换机 vlan 间路由配置实例 2008 11 17 00 04 下面以实例说明如何在一个典型的快速以太局域网中实现 VLAN 所谓典型局域网就是指由一台具备三层交换功能的核心交换机接几台分支交换机 不一定 具备三层交换能力 我们假设核心交换机名称为 COM 分支交换机分别为 PAR1 PAR2 PAR3 分别通过 Port 1 的光线模块与核心交换机相连 并且假设 VLAN 名称 分别为 COUNTER MARKET MANAGING 需要做的工作 1 设置 VTP DOMAIN 核心 分支交换机上都设置 2 配置中继 核心 分支交换机上都设置 3 创建 VLAN 在 server 上设置 4 将交换机端口划入 VLAN 5 配置三层交换 1 设置 VTP DOMAIN VTP DOMAIN 称为管理域 交换 VTP 更新信息的所有交换机必须配置为相同的管理域 如果所有的交换机都以中继线 相连 那么只要在核心交换机上设置一个管理域 网络上所有的交换机都加入该域 这样 管理域里所有的交换机就能够了解彼此的 VLAN 列表 COM vlan database 进入 VLAN 配置模式 COM vlan vtp domain COM 设置 VTP 管理域名称 COM COM vlan vtp server 设置交换机为服务器模式 PAR1 vlan database 进入 VLAN 配置模式 PAR1 vlan vtp domain COM 设置 VTP 管理域名称 COM PAR1 vlan vtp Client 设置交换机为客户端模式 PAR2 vlan database 进入 VLAN 配置模式 PAR2 vlan vtp domain COM 设置 VTP 管理域名称 COM PAR2 vlan vtp Client 设置交换机为客户端模式 PAR3 vlan database 进入 VLAN 配置模式 PAR3 vlan vtp domain COM 设置 VTP 管理域名称 COM PAR3 vlan vtp Client 设置交换机为客户端模式 注意 这里设置核心交换机为 Server 模式是指允许在该交换机上创建 修改 删除 VLAN 及其他一些对整个 VTP 域的配置参数 同步本 VTP 域中其他交换机传递来的最新的 VLAN 信 息 Client 模式是指本交换机不能创建 删除 修改 VLAN 配置 也不能在 NVRAM 中存储 VLAN 配置 但可同步由本 VTP 域中其他交换机传递来的 VLAN 信息 2 配置中继为了保证管理域能够覆盖所有的分支交换机 必须配置中继 Cisco 交换机能够支持任何介质作为中继线 为了实现中继可使用其特有的 ISL 标签 ISL Inter Switch Link 是一个在交换机之间 交换机与路由器之间及交换机与服务器 之间传递多个 VLAN 信息及 VLAN 数据流的协议 通过在交换机直接相连的端口配置 ISL 封 装 即可跨越交换机进行整个网络的 VLAN 分配和进行配置 在核心交换机端配置如下 COM config interface gigabitEthernet 2 1 COM config if switchport COM config if switchport trunk encapsulation isl 配置中继协议 COM config if switchport mode trunk COM config interface gigabitEthernet 2 2 COM config if switchport COM config if switchport trunk encapsulation isl 配置中继协议 COM config if switchport mode trunk COM config interface gigabitEthernet 2 3 COM config if switchport COM config if switchport trunk encapsulation isl 配置中继协议 COM config if switchport mode trunk 在分支交换机端配置如下 PAR1 config interface gigabitEthernet 0 1 PAR1 config if switchport mode trunk PAR2 config interface gigabitEthernet 0 1 PAR2 config if switchport mode trunk PAR3 config interface gigabitEthernet 0 1 PAR3 config if switchport mode trunk 此时 管理域算是设置完毕了 3 创建 VLAN 一旦建立了管理域 就可以创建 VLAN 了 COM vlan Vlan 10 name COUNTER 创建了一个编号为 10 名字为 COUNTER 的 VLAN COM vlan Vlan 11 name MARKET 创建了一个编号为 11 名字为 MARKET 的 VLAN COM vlan Vlan 12 name MANAGING 创建了一个编号为 12 名字为 MANAGING 的 VLAN 注意 这里的 VLAN 是在核心交换机上建立的 其实 只要是在管理域中的任何一台 VTP 属性为 Server 的交换机上建立 VLAN 它就会通过 VTP 通告整个管理域中的所有的交换机 但如果要将具体的交换机端口划入某个 VLAN 就必须在该端口所属的交换机上进行设置 4 将交换机端口划入 VLAN 例如 要将 PAR1 PAR2 PAR3 分支交换机的端口 1 划入 COUNTER VLAN 端口 2 划入 MARKET VLAN 端口 3 划入 MANAGING VLAN PAR1 config interface fastEthernet 0 1 配置端口 1 PAR1 config if switchport access vlan 10 归属 COUNTER VLAN PAR1 config interface fastEthernet 0 2 配置端口 2 PAR1 config if switchport access vlan 11 归属 MARKET VLAN PAR1 config interface fastEthernet 0 3 配置端口 3 PAR1 config if switchport access vlan 12 归属 MANAGING VLAN PAR2 config interface fastEthernet 0 1 配置端口 1 PAR2 config if switchport access vlan 10 归属 COUNTER VLAN PAR2 config interface fastEthernet 0 2 配置端口 2 PAR2 config if switchport access vlan 11 归属 MARKET VLAN PAR2 config interface fastEthernet 0 3 配置端口 3 PAR2 config if switchport access vlan 12 归属 MANAGING VLAN PAR3 config interface fastEthernet 0 1 配置端口 1 PAR3 config if switchport access vlan 10 归属 COUNTER VLAN PAR3 config interface fastEthernet 0 2 配置端口 2 PAR3 config if switchport access vlan 11 归属 MARKET VLAN PAR3 config interface fastEthernet 0 3 配置端口 3 PAR3 config if switchport access vlan 12 归属 MANAGING VLAN 5 配置三层交换 到这里 VLAN 已经基本划分完毕 但是 VLAN 间如何实现三层 网络层 交换呢 这时就 要给各 VLAN 分配网络 IP 地址了 给 VLAN 分配 IP 地址分两种情况 其一 给 VLAN 所 有的节点分配静态 IP 地址 其二 给 VLAN 所有的节点分配动态 IP 地址 下面就这两种情 况分别介绍 假设给 VLAN COUNTER 分配的接口 Ip 地址为 172 16 58 1 24 网络地址为 172 16 58 0 VLAN MARKET 分配的接口 Ip 地址为 172 16 59 1 24 网络地址为 172 16 59 0 VLAN MANAGING 分配接口 Ip 地址为 172 16 60 1 24 网络地址为 172 16 60 0 如果动态分配 IP 地址 则设网络上的 DHCP 服务器 IP 地址为 172 16 1 11 1 给 VLAN 所有的节点分配静态 IP 地址 首先在核心交换机上分别设置各 VLAN 的接口 IP 地址 核心交换机将 vlan 做为一种接口对 待 就象路由器上的一样 如下所示 COM config interface vlan 10 COM config if ip address 172 16 58 1 255 255 255 0 VLAN10 接口 IP COM config interface vlan 11 COM config if ip address 172 16 59 1 255 255 255 0 VLAN11 接口 IP COM config interface vlan 12 COM config if ip address 172 16 60 1 255 255 255 0 VLAN12 接口 IP 再在各接入 VLAN 的计算机上设置与所属 VLAN 的网络地址一致的 IP 地址 并且把默认网关 设置为该 VLAN 的接口地址 这样 所有的 VLAN 也可以互访了 2 给 VLAN 所有的节点分配动态 IP 地址 首先在核心交换机上分别设置各 VLAN 的接口 IP 地址和同样的 DHCP 服务器的 IP 地址 如 下所示 COM config interface vlan 10 COM config if ip address 172 16 58 1 255 255 255 0 VLAN10 接口 IP COM config if ip helper address 172 16 1 11 DHCP Server IP COM config interface vlan 11 COM config if ip address 172 16 59 1 255 255 255 0 VLAN11 接口 IP COM config if ip helper address 172 16 1 11 DHCP Server IP COM config interface vlan 12 COM config if ip address 172 16 60 1 255 255 255 0 VLAN12 接口 IP COM config if ip helper address 172 16 1 11 DHCP Server IP 再在 DHCP 服务器上设置网络地址分别为 172 16 58 0 172 16 59 0 172 16 60 0 的作用 域 并将这些作用域的 路由器 选项设置为对应 VLAN 的接口 IP 地址 这样 可以保证 所有的 VLAN 也可以互访了 最后在各接入 VLAN 的计算机进行网络设置 将 IP 地址选项设置为自动获得 IP 地址即可 3 启用中继代理 COM config service dhcp COM config ip dhcp replay infomation option 4 启用路由 COM config ip routing 注意 在各个交换机上配置完后 一定要保存 copy run start 三 总结 本文是笔者在实际工作中的一些总结 笔者力图用通俗易懂的文字来阐述创建 VLAN 的全过 程 并且给出了详细的设置步骤 只要你对 Cisco 交换机的 IOS 有所了解 看懂本文并不 难 按照本文所示的步骤一步一步地做 你完全可以给一个典型的快速以太网络建立多个 VLAN 比较全面的三层交换机配置 2009 04 28 16 04Enable 进入私有模式 Configure terminal 进入全局模式 service password encryption 对密码进行加密 hostname Catalyst 3550 12T1 给三层交换机定义名称 enable password 123456 enable 密码 Enable secret 654321 enable 的加密密码 应该是乱码而不是 654321 这样 Ip subnet zero 允许使用全 0 子网 默认都是打开的 Ip name server 172 16 8 1 172 16 8 2 三层交换机名字 Catalyst 3550 12T1 对应的 IP 地址是 172 16 8 1 Service dhcp 提供 DHCP 服务 ip routing 启用三层交换机上的路由模块 Exit Vtp mode server 定义 VTP 工作模式为 sever 模式 Vtp domain centervtp 定义 VTP 域的名称为 centervtp Vlan 2 name vlan2 定义 vlan 并给 vlan 取名 如果不取名的话 vlan2 的名字应该是
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 产前遗传学诊断虚拟操作标准化教程
- 肩膝髋特殊体位拍片技巧只是分享
- 2025年普通高中生物学业水平选择性考试仿真卷二pdf含解析
- 第二章中文医学文献检索工具
- 临床试验风险防控培训体系构建
- 石油大学模拟电路教学视频配套模拟电子技术04(文档)
- 临床路径模拟教学在肿瘤化疗安全管理中的应用
- 2025年中国物流行业发展研究报告
- 临床路径管理模拟教学应用
- 研究生参加学术活动总结报告
- 《高中生职业生涯规划指导》课件
- 磁共振技术知识讲解课件
- 学校征订教辅合同协议
- 新疆准噶尔盆地西缘(克拉玛依市)历史遗留废弃矿山生态修复示范工程(白碱滩区)建设项目环境影响报告表
- 校园舆情管理制度
- 2022城市轨道交通列车驾驶员技能及素质要求第1部分:地铁、轻轨和单轨
- 2025内蒙古民族幼儿师范高等专科学校辅导员考试题库
- T-CECS 10400-2024 固废基胶凝材料
- 《亲情永驻》课件
- 卡车充换电站建议书可行性研究报告备案
- 2025年广东南油服务有限公司招聘笔试参考题库含答案解析
评论
0/150
提交评论