思科交换机配置方法网络

印迹发布于:2019-2-21 1394

重新配置了网络,笔记如下:

en
configure terminal
hostname aptch-2950
enable password cisco
enable secret ciscolab
进入特权模式
进入全局配置模式
更改主机名称
更改使能口令
更改使能密码
switch(conf)#hostname aptch2950
aptech2950(conf)# interface vlan 2
aptech2950(conf-if)#ip address 10.229.208.116 255.255.255.128
aptech2950(conf-if)#no shut      
aptech2950(conf-if)#exit
aptech2950(conf)#ip default-gateway 10.229.208.126 
主机名
新建vlan1
设置交换机端口IP和子网掩码
重启
退出
设置网关地址
conf t
int fa0/24
进入某一端口
switch> enable
switch# show version  
show interface vlan 1   
show running-configure 
show interface fastethernet 0/1   
show mac-address-table        
show mac-address-table aging-time  
察看系统中的所有版本信息 
查看交换机有关ip 协议的配置信息 
查看交换机当前起作用的配置信息 
察看交换机1接口具体配置和统计信息 
查看mac地址表 
查看mac地址表自动老化时间 
show cdp nei
查看设备上已使用的端口
show ip int br
查看所有端口
do show run int fa0/5
show int vlan2
配置过程中查看网口信息
查看VLAN2的信息
int range f0/1 -15
sw mo ac
sw ac vlan 5
把这些口都划入vlan 5
show vlan
show ip int br
查看所有VLAN信息
查看所有端口信息
查看vlan100的信息

三层交换机,要有以下内容才可上网:

ip default-gateway 10.229.208.126
ip http server
ip http secure-server
ip route 0.0.0.0 0.0.0.0 10.229.208.1

端口限速:

就是说,如果在一个100M的端口上,限制他出口只有90M的外出带宽的话,就在这个端口上写

srr-queue bandwidth limit 90

这个只是对于出口,对入口没有限制。

But if you want to hard-code the port speed on the Ethernet port to 10 Mb, you could also limit the customer to only 10 Mb of bandwidth using the speed 10 command.

如果用"speed 10 "在这个端口上的话,则这个端口进出都是10M了。但你还启用了"srr-queue bandwidth limit 90",则这个端口的外出流量只有9M了。


http://www.virplus.com/thread-120.htm
转载请注明:2019-2-21 于 VirPlus 发表

推荐阅读
最新回复 (0)

    ( 登录 ) 后,可以发表评论!

    返回