router(config)# hostname 路由器的名字配置接口带宽 Router (config-if) # bandwidth 2500,000R1(config)#interface Ethernet 0 R1(config-if)# ip address 192
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)#inte