交换机与路由器的基本配置
[/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] good!!!!!!!!!!!!! 虽然还不太懂。。慢慢看。。。 谢了 再顶 恩,不错,虽然这方面知识点我看过了一些,但在这还是又学到几条新的命令的了哈,呵呵,谢谢 有点simple
fghjgj
gfjgfjkjlkj
lkjlkjljklhgjghj
hgjhgj 终于可以看懂不少了``呵呵 谢谢,好资料 谢谢 好东西!!谢谢了
好
讲的可以不过太简单了哈哈 ☆▃▄▅▆▇☆◢█▅▅▅█◣☆☆☆☆☆■☆☆☆☆☆☆◤☆☆☆☆☆
☆☆☆■☆☆☆█▅▅▅▅▅█
☆☆☆■☆☆☆█☆☆☆☆☆█☆☆
☆☆☆■☆☆☆█▅▅▅▅▅█☆☆
☆☆☆■☆☆☆█☆☆☆☆☆█☆☆
☆☆☆■☆☆☆█▅▅▅▅▅█☆☆
☆☆☆■☆☆☆█☆☆☆☆☆█☆☆
☆☆☆■☆☆☆█▅▅▅▅▅█☆☆
☆☆☆■☆☆☆☆█◤☆◥█☆☆☆
☆◥■◤☆☆☆☆◤☆☆☆◥☆☆☆ 好东东哦
不错 ,很实用 就这么简单?
页:
[1]