专题一. 交换机与路由器的基本配置
2008-12-12 09:12
309 查看
一.[/b]交换机的基本配置[/b]
C2950# [/b]
config terminal [/b]进入全局配置模式[/b]
show interface fastethernet0/1 [/b]查看端口0/1[/b]的配置结果[/b]
show interface fastethernet0/1 status [/b]查看端口0/1[/b]的状态[/b]
show mac-address-table [/b]查看整个MAC[/b]地址表[/b]
clear mac-address-table restricted static [/b]清除限定性地址[/b]
[/b]
C2950(config)# [/b]
hostname 2950A [/b]设置主机名为2950A[/b]
interface f0/23 [/b]进入端口23[/b]的配置模式[/b]
enable password cisco [/b]设置enable password[/b]为cisco[/b]
enable secret cisco1 [/b]设置enable secret[/b]为cisco1[/b]
ip address 192.168.1.1 255.255.255.0 [/b]设置交换机IP[/b]地址[/b]
ip default-gateway 192.168.1.254 [/b]设置默认网关[/b]
ip domain-name cisco.com [/b]设置域名[/b]
ip name-server 200.0.0.1 [/b]设置域名服务器[/b]
mac-address-table aging-time 100 [/b]设置超时是时间为100s[/b]
mac-address-table permanent 0000.0c01.cc f0/3 [/b]加入永久地址[/b]
mac-address-table restricted static 0000.0c02.bbcc f0/6 f0/7 [/b]加入静态地址[/b]
C2950(config-if)#speed ? [/b]查看speed[/b]命令的子命令[/b]
speed 100 [/b]设置该端口速率为100Mb/s[/b]
dulplex full/half/auto [/b]设置该端口为全双工 [/b]
description TO_PC1 [/b]设置该端口描述为TO_PC1[/b]
二.[/b]路由器的基本配置[/b]
interface fastethernet0/1 [/b]进入接口F0/1[/b]子配置模式[/b]
interface Ethernet0 [/b]进入以太网口0[/b]子配置模式[/b]
no shutdown [/b]激活接口[/b]
ip address 192.168.1.2 255.255.255.0 [/b]设置接口的IP[/b]地址[/b]
show running-config [/b]检查配置结果[/b]
show sessions [/b]查看终端服务器的会话[/b]
[/b]
[/b]
C2950# [/b]
config terminal [/b]进入全局配置模式[/b]
show interface fastethernet0/1 [/b]查看端口0/1[/b]的配置结果[/b]
show interface fastethernet0/1 status [/b]查看端口0/1[/b]的状态[/b]
show mac-address-table [/b]查看整个MAC[/b]地址表[/b]
clear mac-address-table restricted static [/b]清除限定性地址[/b]
[/b]
C2950(config)# [/b]
hostname 2950A [/b]设置主机名为2950A[/b]
interface f0/23 [/b]进入端口23[/b]的配置模式[/b]
enable password cisco [/b]设置enable password[/b]为cisco[/b]
enable secret cisco1 [/b]设置enable secret[/b]为cisco1[/b]
ip address 192.168.1.1 255.255.255.0 [/b]设置交换机IP[/b]地址[/b]
ip default-gateway 192.168.1.254 [/b]设置默认网关[/b]
ip domain-name cisco.com [/b]设置域名[/b]
ip name-server 200.0.0.1 [/b]设置域名服务器[/b]
mac-address-table aging-time 100 [/b]设置超时是时间为100s[/b]
mac-address-table permanent 0000.0c01.cc f0/3 [/b]加入永久地址[/b]
mac-address-table restricted static 0000.0c02.bbcc f0/6 f0/7 [/b]加入静态地址[/b]
C2950(config-if)#speed ? [/b]查看speed[/b]命令的子命令[/b]
speed 100 [/b]设置该端口速率为100Mb/s[/b]
dulplex full/half/auto [/b]设置该端口为全双工 [/b]
description TO_PC1 [/b]设置该端口描述为TO_PC1[/b]
二.[/b]路由器的基本配置[/b]
interface fastethernet0/1 [/b]进入接口F0/1[/b]子配置模式[/b]
interface Ethernet0 [/b]进入以太网口0[/b]子配置模式[/b]
no shutdown [/b]激活接口[/b]
ip address 192.168.1.2 255.255.255.0 [/b]设置接口的IP[/b]地址[/b]
show running-config [/b]检查配置结果[/b]
show sessions [/b]查看终端服务器的会话[/b]
[/b]
[/b]
相关文章推荐
- 交换机和路由器的基本配置
- 路由器和交换机基本配置及详解
- 交换机和路由器的基本配置命令,VLAN和单臂路由的配置
- 路由器、交换机的基本配置
- 路由器和交换机基本配置命令(一)
- CISICO 路由器和交换机的基本配置命令
- 7.3路由器与交换机的基本配置
- 使用 CLI 执行基本路由器配置、基本交换机配置
- 网络工程师 交换机和路由器基本配置总结
- 交换机和路由器的基本配置
- 关于CCNA的培训课程(2)-- 路由器和交换机的基本配置
- Cisco路由器&交换机基本配置(不定时补充)
- 计算机网络原理--实验二 交换机路由器的基本配置
- Cisco IOS配置环境,路由器和交换机的基本连接配置方法和连通性
- 路由器+交换机基本命令配置参数
- 【计算机网络】路由器和交换机的基本配置
- 实验二 交换机路由器基本配置--自我操作
- 交换机与路由器的基本配置
- 第五---七章 交换机和路由器的基本配置
- 交换机和路由器的基本配置