router(config)# hostname 路由器的名字配置接口带宽 Router (config-if) # bandwidth 2500,000R1(config)#interface Ethernet 0 R1(config-if)# ip address 192.168.1.1 255.255.255.0 //配置以太网口R1(config-if)# no shutdown // 启用该以太网口VLAN 的配置1、在 1900 上的配置Switch_A#show vlan-membership //查看 VLAN 信息在互换机中默认存在一种 VLAN 号码为 1,叫 VLAN 1,不能删除,并且所有的端口都默认在这个 VLAN 中。Switch_A#show vlan 号码产生 VLAN 的命令Switch_A#config terminal //进入到全局模式Switch_A(config)#vlan 号码 name 名字把端口分派 VLAN:Switch_A(config)#interface 某端口Switch_A(config-if)#vlan-membership static 号码Switch_A(config)#interface fa0/26 Switch_A(config-if)#trunk on //默认使用 ISL 封装写2、在 2900 上的配置Switch_A#vlan databaseSwitch_A(vlan)#vlan 号码 name 名字Switch_A(config)#interface 某端口Switch_A(config-if)#switchport mode accessSwitch_A(config-if)# switchport access vlan 号码配置 TRUNKSwitch_A(config)#interface fastethernetSwitch_A(config-if)# switchport mode trunkSwitch_A(config-if)# switchport trunk encapsulation dot1q3、ROUTER 上的配置Router(config)#int fa0/0Router(config-if)#no shutRouter(config-if)#int fa0/0.1Router(config-subif)#encapsulation isl 10Router(config-if)#int fa0/0.2Router(config-subif)#encapsulation isl 20特权模式: router# 权限高,输入 “configure terminal” 命令进入到全局模式设置 CDP 传播定期器和克制定期器是在全局配置模式下完毕,使用的命令有:cdp timer seconds:定义 CDP 传播更新的频率,默认值是每 60 秒;cdp holdtime seconds:定义 CDP 保释接受到的信息的延时,默认状况为 180 秒;当然在设置 cdp timer 的时候不要设得太短,这样的话有也许会导致过度的网络的流量,默认的 60 秒,一般可以满足大部分的网络了;严禁或激活 CDP:CDP 在默认状况下是自己启动的,当然也可以在路由器上严禁,或基于接口来严禁,同样在全局配置模式完毕,使用的命令有::在全局配置模式下键入 no cdp run ,关掉所有接口 CDP;在特权模式下使用 cdp run 激活路由器上所有接...